When working on control panels, it's important to check compliance to reduce the risk of the panel failing, including the risk of catching fire.

Number one of the list for us is the neutral not terminated. We so often get sent photos of an old panel that needs replacing and in the bottom of the panel is a loose 4th incoming cable. This is dangerous. The neutral can become live so anyone touching it would get a 230V shock, or if the neutral is touching the exterior of the panel that can become live so an operative doesn't even need to open the panel to get a shock.
Now admittedly the neutral should have the same potential as ground and the RCD should protect against the neutral staying live, but as most would know, sometimes this doesn't happen. Also if the neutral does touch the panel and there is an RCD on the circuit, the RCD will trip cutting the supply to the pump, this could lead to a flood if it's a waste water panel!
So to overcome this issue, make sure when you order a panel you know the supply, if there is a neutral make sure there is a 4th pole on the isolator.

Another small known issue is maintenance of screw terminals - it's a requirement in BS EN 60439 to check the torque of screw terminals. However, this is so commonly not done it's frightening! The best solution we've found is not to use terminals that require maintenance - for example the Wago lever terminals. These are both maintenance-less, but also come with another big compliance benefit....

Now all electricians know that cables need to be ferruled, a basic requirement in 18th Edition. However when it's 10pm on a Saturday and the crimps and ferrules are in the van, it's raining and there is one connection to do - there is a pretty solid chance that stranded cable is going straight into that terminal. The danger here, apart from being non-compliant, is that the termination will have a poor connection, causing a high resistance joint which has the potential to get extremely hot, risking a fire. However, Wago lever terminals do away with the requirement to have screw terminals, making them both substantially faster and a big risk reduction.
The final point we're going to cover off is safe isolation. There are great training courses on this so I'd thoroughly recommend anyone working with electrics should have this training. Essentially anyone working on equipment has to lock off the isolation if they move more than 2m away from the isolation point. From the point of the engineer on site, the temptation is to briefly look at the other side or down a bit when the isolator is off but not locked. We get the temptation but it's not compliant. Nearly all isolators are door interlocked, so just have a sample padlock and a tag, or a MCB lock and tag. Simple things can mean you are compliant - and much more importantly, you're safe!
What about plastic enclosures? We've got a separate blog post on that, which covers what is the legal requirement on non-combustible enclosures.