In the first two photos, the cord cap missing a back has been replaced with a new cord cap.
However, it makes that a flexible cord which would appear to make it a violation of NEC 400.7.
What about the third photo with a plug strip and so many extension cords running under this wood riser?