Safer than a lot I have seen. Decent isolation slots between the mains and LV side, but no RF suppression capacitor ( though the board is marked for one but it is not installed, top of the first pic), and the input actually uses a fusible resistor and a real bridge rectifier.
Might not pass insulation test on the transformer, but likely will work well enough as a simple poorly regulated supply, as there is no secondary side feedback so the output voltage is going to vary with load somewhat, depending on the primary side regulation to keep it reasonably constant. You might find that at no load it might deliver closer to 6V than 5V, though likely at 500mA it likely will only deliver 4V5.