If he'd moved the cord out of the way there wouldn't be any problem with that. Those heaters are usually 1500W, so no prob with the socket rating. Maybe it's a bit close to the shower, ok. But no problem with the wiring. See those connected to Schuko plugs all the time.