When I'm measuring developer performance I look at one stat: Do they make reasonable deadlines without generating a ton of bugs?
Why is this? Well, it's because the amount of tickets, code, or even time spent "logged in" doesn't matter. The only thing that matters to a business is if they can deliver on time so the product can keep moving forward and others aren't waiting for them.