You most likely don't make glaringly obvious mistakes like villain did here, but I can say with confidence that your game is nowhere near perfect (few people's games are), and there are leaks that need to be plugged (this hand being an example).
There really isn't much of a misplay here except by the villain. I think the OP played the hand well. He gave villain bad
odds to see one card. Calling a pot size bet to try and catch a pair that will miss 88% of the time on the turn = hoping that your mistake will pay off.
This is probably one of the best flops you can get. You're only worried about one set here, the 22, instead of three possible sets. You shouldn't be much worried about AA-QQ given the call preflop, and Ten is something you should be less worried about.
Shoving all in on this kind of flop can accomplish two good things:
1. Gets most players to fold overcards, however with this type of callstationish villain, I don't think you could escape this inevitable outcome
2. Makes small pairs think you're buying the pot with AK and call you
Don't consider smallball here, you don't have a marginal hand, you have a premium hand, which will usually hold up more times than it won't on the flop, you're not playing deepstack vs. deepstack, and you'll be letting small pairs and overcards see cheap flops too often and get away for practically nothing when they miss.