RE: Help needed with 52cc Hobby King engine
The vibration the loose plug suffered while loose might have harmed the electrode, the gap might have been changed while banging around, or and most possible, the plug wire could have suffered damage from the plug shaking around while loose.
A plug wire exhibits missfire at high rpm when they go bad.
Me thinks you will be buying a new plug and ignition.