OK guys, uhhh, a MUCH older friend of mine, barely hanging onto life anymore, told me the way some things used to be done.
Anyone who began the trade in a rural area, ahem, some years ago, has seen and is familiar with "Non-metallic extensions". It looks like romex, works like romex, only NO GROUND. Article 342 in the 99 code.
Older, and especially rural, houses, had a single outlet somewhere in the room, if you were lucky. You ran this stuff along baseboards, much like phone cable and either surface mounted a box, or like the one in the pic, you popped into the wall and flush mounted.
This stuff is thermoplastic in nature, and even though it looks ugly in the pic, it's probably still just fine. Though I do agree if you've remodeled it's a pity it wasn't replaced.
Except for a few minor violations, there's really nothing wrong with the install provided it IS NM extension.
At least....THAT'S what the old guy I know says, but what does he know?????