With the modern age of version control systems and the like, we see managers using things like number of commits to git. Or new features added. Etc...
Which on the face of it sounds great. Except you encourage people with your bonus structure to write more, to add to the code base. This doesn't make for the best quality of code base.
To quote the bankers after 2008. "The incentives were wrong".
4/n