Is this weird wiring in outlet safe?
This is obviously unsafe. There are two problems:


Safety: the wires are uninsulated at their joints and present a shock hazard.
Connection: the wires are twisted together with no screw clamping. As they oxidise the resistance will increase and may over time develop into a hotspot with arcing and potential to start a fire.