Power dissipation is something like (Vin-Vo)*I = (12-5) * 225mA = 1.575 watt assuming all parameters are right, usually wall wart provide higher voltage than specified (depending at least of current load).

You have few choices, move on a switching regulator, reduce Vin, compensate the temperature in software...