Yes, this is very bad Bangkok-tier work, just hack-n-slash it in.
Here are the rules with boxes:
- Every splice must happen inside a junction box.
- The cable sheath must come into the junction box at least 1/4" past the cable clamp.
- The individual wires must be 6" long past the endpoint of theentry (including sheath).
Now in a case like this, either fixing this mess or just properly tapping a thru-wire, you typically have 2 boxes about 18" apart. You strategically choose where to cut the wire so the necessary length will be inside the box when you are done. Then you add an additional stretch of cable (30"?) between the two boxes, again assuring it has the 6" length inside the box.
Do your splices first-rate, and you'll never have trouble. For novices, I recommend metal boxes; because if you accidentally do your splices not first-rate and they create heat, a plastic box will melt and drip molten box onto flammables. The steel box is a good heat conductor, and will effectively use the whole box as a heat radiator to reduce the chance of it reaching flammable levels. It's not a silver bullet, but it buys you time.
But yes. You generally expect Person X will do Person X style work throughout. Expect more of the same.