That's not the worst thing to do but is game able the same way a lot of the proposed methods are. The developer who brings donuts to morning meetings is likely to score very high on this measure. Also given the diversity challenges a lot of teams have it's possible unconscious (or even overt) prejudices will affect scoring.
It's something to add to the toolbox, and a consistently low score for one person is a sure sign of trouble, but ithe does have some of the same shortcomings the other approaches do.