Its ingenious for its simplicity for its intended purpose, charging a shaver. Pulse DC is acceptable.
At 50/60 Hz, sure. But not at 20-30kHz where it'll broadcast a lot of interference. Given the size of that transformer, maybe much higher, the simulation using guessed values shows it works at 98kHz easily.
There is isolation given the small transformer separates mains from output, however, there is no overload protection and your safety depends on isolation provided by the transformer.
There is the small fact that the PCB will arc over that tiny gap between primary and secondary easily. Any contamination there is a risk, too.
Shorting the output will blow the mains fuse, if the fusible resistor is actually one. Otherwise, it will pop the transistor, and make a nice explosion. (I have played around with the slightly improved 2-transistor adapter, which will blow its fuse and main transistor if you short the output. Poor design.)
The device is suitable for intermittent duty only due to the small transformer and inadequate components (5kV on the transistor's collector, for example.)
All this really needs in a fuse in the primary line
I suspect the resistor is fusible, so it is the fuse.