At firs I was thinking along the same lines as anyone else. As an ex Panel Builder I was disgusted with the looks and design of it. But after taking a step back, I think I was a bit hasty in my judgment. Let me explain before throwing rocks my way...
- We don't know from this picture what the motor sizes are. If, for instance, they are all of a size that fits the code criteria, it is entirely conceivable that there is a 15A branch circuit feeding the motor starters, all of the wiring is 14ga minimum and the OL relays are properly set for the proper FLA of each motor. For example, let's say each motor is rated 4A. The 15A CB is within the acceptable range to protect the circuit, the aggregate FLC is under 80% of the CB rating, and each OLR is set for 4A. That is technically OK.
- The box doesn't absolutely NEED to have a local disconnect if the box can be locked from the outside and there is a disconnect somewhere else within sight of each motor and there is a locking attachment on that 15A feeder CB.
- The location is clean and dry. Somewhere that, in spite of it being a NEMA 12 enclosure, only needed to be NEMA 1 so the octagon box on top for that "poor man's stack light" is theoretically OK. (not absolutely sure of this one though)
Hey, I know it's a stretch and the "what if's" are numerous, but it could happen.
Still ugly though, and I would have refused to work on it without bringing it up to minimum acceptable levels of safety even if things were technically not forbidden. I've taken on worse and convinced the cheapskate owners that my fees were far less than his lawyers. But I have also walked away from things like this, not wanting to be in any way associated with someone who would have accepted it in the first place.