Let's ask the other way round: what of the stuff we see here is actually acceptable according to the NEC and to your local code?
Stapling cable to the wall would be perfectly acceptable here, feeding fixed installations with cord and plug too, although only if proper strain relief is provided. Of course the angle plug with half-torn cord is inacceptable just about anywhere.
Tex: None of what is in the pic is compliant with the NEC.
NM as in the pic must be protected from physical damage. Using cord for permanent wiring methods is non-compliant. The EGC (Equipment ground conductor) must be present and connected properly. Polarity must be correct.
'Cord caps' do not provide proper strain relief and are not listed for #12 NM (solid conductors). The angle plug is a factory item on the microwave.
Going deeper into it, box fill, cable entry, etc. could be addressed, but....why beat a dead horse.
This is in the laundry area; others are in vending areas, and guest laundry areas & fitness room of a 100+ room hotel.
All is the "quality" electrical work of the maintenance guys!
It will be corrected to compliance, as the property is being sold.
Tex: NEC Article 400 covers cord applications. 400.7 and 400.8 are the permitted uses for cord, and the prohibited use of cord.
The exhaust fan is wired with cord which is 'sleeved' in EMT. The yellow cord plugged into the receptacle is a rather nice 100' HD extension cord that powers a small fan that the laundry ladies use to help keep cool.
Also, the BX/MC cable that is tapped off of the circuit behind the emergency light requires straps to the wall.