Per the article, what managers often actually want to know is "How do I detect when a developer is so unproductive that they should not be retained?".
What are some behaviors that developers have when they've "checked out"? Not showing up to work or logging in is an obvious example. Lines of code might be a poor metric, but maybe the bottom 1% of coders in that metric is a sufficient detection for poor performance?
...at least as a detection mechanism to highlight for further investigation?
But if the case is that the developer needs to be "managed out," you need to build the case as a manager. This is where those metrics help.
For a manager there is no universal metric other than the hard work of understanding what your employees are actually doing.