There are any number of counter examples to most of these metrics, but I think the extreme counter examples are often in bad faith. You can’t convince me that a JavaScript engineer who consistently authors 1 commit a month is productive. At some point, you need to stop talking about stuff and actually build stuff
Of course you can’t determine the best person by lines of code (package.lock files lol) but you can often make a guess at the worst person