Well those LEDs are obviously super-low power so I don't see much of a risk. We've had isolation transformer shaver outlets that supplied up to 20 VA with a near-identical setup for decades without problems. The wires are connected to spring-terminals in the box and the actual socket with transformer just snaps in and is fixed with two screws.