Assuming the inspector came to have a look at that and found a properly strained cord plugged into a neatly trimmed receptacle would he have:

Called it for grandfathered internal bonding that they made a no no in 1999?
Pulled the cover plate and even the device to check for mis wiring, conductor sizing and grounding of any metal boxes?
Checked the over current protection rating at the panel feeding this device?
Crawled every inch of the branch conductor to insure it was properly supported and any splices were done in an appropriate box(grounded) with cover?
Just said "Looks good from here." and taken the citizens money without a real and true inspection?

I'm not saying having third party verification of a contractors work is unnecessary. I'm sure without any inspectors quality would suffer.
I'm just saying that the ultimate responsibility for a code compliant and safe install falls upon the installer in the end and anyone who's livelihood is on the line is probably going to take that seriously or go out of business.
And even then who's to stop someone from going in behind you and modifying your work rendering it illegal? I saw that it had happened to me just this morning.

How many people will live with a loose receptacle or an iffy switch or even a fixture dangling from the conductors because they can't afford an electrician much less a permit.
Then there's the scheduling process than even seasoned GCs can't get right sometimes and it becomes a very daunting thought to some people. They just might and probably do choose to live with the fire hazard rather than the unknown of what the city/county might throw at them. Or they may attempt it themselves.

And above all nothing short of outright fascism is ever going to stop the motivated homeowner and his neighbor who "knows how" from performing work that varies from very scary to quite impressive.

my 2 cents

Vince