I think I see one serious safety issue. Not entirely clear but it appears that the ground wire from the mains lead is trimmed shorter than the live and neutral. It also looks like it isn’t secured with a Wago and is just stuffed up the spade connector.
If that’s the case, if the lead gets pulled a little bit, the ground could come loose, but live and neutral stay connected. There is the potential for the machine to be operating with no safety ground.
When hard wiring best practice is to leave the ground wire the longest - so if the cable gets tugged it is the last to be dislodged.