I've recently had a kitchen renovation done - actually swapping the kitchen and dining rooms. The electricians were subs working for the company doing the reno.
They ran some new circuits for the recessed and hanging lights, but also wired some of that up to wiring that existed for the old dining room, which also had recessed lighting.
They tied some of the wiring together in the attic. In most places, they put the connections in a junction box (I corrected one or places where connections (wire nuts) were just dangling in the air). But, in all cases the junction boxes are not covered and are not fastened to anything. They were just left lying on the insulation. Here's a couple of pictures of what I found:
This first one shows where they used one of old recessed light fixture to join tie so wiring together. I cut off the gooseneck to the light fixture itself.
This next picture shows a 3-gang box being used to connect another group of cables together. I have no idea why they would foam the box penetrations but leave off a cover.
So basically two related questions.
- Should these boxes have covers on them?
- Should they be be fastened to a joist, rafter, or some other structural member?
Edit 1 - Replaced plastic box
I took the advice here and replaced the plastic 3-gang box with a 4"x4" metal box, using appropriate through-the-box cable clamps. I will post a picture of the final product.
Here's the promised picture, before the cover went on.