I'm aware of neither an explicit prohibition of "naked" installation, nor an explicit requirement for a rear enclosure, so on that basis it is allowed by BS7671 (subject to catch-all stuff abut workmanship, access to live parts etc).
It's rarely an issue of genuine concern, so tricky is it (I know, I've tried) to cut a hole large enough for a socket but small enough to leave material for screwing into.
It's rarely an issue of genuine concern, so tricky is it (I know, I've tried) to cut a hole large enough for a socket but small enough to leave material for screwing into.