You will be fine if you replaced the plug with one of the same configuation. Are the prongs on the new plug the same as the old one?
What code would be violated?Except that the current installation could violate code & Mfg recommendations
The cord and plug are not warm to the touch and it is #14ga cord...
And the installation is less than 3 years old.
This installation is riddled with violations and obviously was not inspected. Not that that matters to some folks.It's 10 ft