It looks like this wiring was originally code compliant, but at some point in
time it was altered.
The splice connecting the well pump wiring to the pressure switch wiring
in hanging in the open. I think it would need a 2x4 attached to the wall,
then a junction box attached to the board, and...