Hey everybody, im breaking my post cherry here, so take it easy on me.
It looks like there is no connector in that black receptacle. a lot of the wires are not secured within 12".
Code summary in short is… all romex should be strapped within 8" of the enclosure unless there is a mechanical clamp, then it has to be secured within 12".
The space in front of the panel has to be clear of obstructions for 36" in this case. (there are 4 exceptions)
If the wires that were bored through those holes were installed after Jan. of 2008 then there could only be 2 romex conductors ran through them.
(4 current carrying conductors have to be de-rated for ampacity if they are ran through a raceway, bored holes, etc. size of the hole or raceway plays a factor in that also)
Like blaine stated, any breakers, switches, etc. should not be energized in the down position. This helps prevent against a breaker falling down on its own (it happens). Some switches and breakers lose their “switching” strength over time and can fall in the on position.
The bored holes should not be within 1 1/4" of the edge of the stud. Which is clearly depicted on the third stud to the right of the panel.
Last but not least, make sure the breakers are labeled.
Ya, im not smart, I’m just a full time electrician. haha
All in all it looks like a real ****ty installation, I suspect the homeowner wired mostly all of this. I would hope most electricians would not cross wires, and strap them accordingly, just for aesthetics sake.