For example, if you measure my performance on the number of PRs, I'd attempt to create as many PRs as possible even at the detriment of productivity for the team.
If you measure me on the number of lines of code I write, I will deliberately write code that maximizes the number of lines even if the quality of my code goes down. And I will sign up for tasks that I think will allow me to easily write a large number of lines of code even if it isn't the most important tasks for the company.
Can we really measure developer performance using discrete code numbers?
I've always found that it's better to measure performance through the following means:
1. Are you making improvements to the code?
2. Are you completing projects on agreed time? If not, are you giving valid reasons for why they're delayed?
3. Are you giving accurate and sensible estimates for projects?
4. Are you helping the team?
To that, I believe you can make some OKRs:
* Research and implement x ways to speed up the web app
* Complete x number of medium sized projects
* Complete x number of large sized projects
* Review x% of PRs within x amount of time