Does this j-box follow NEC electrical code?
ecmag.com's interpretation of 314.16(B)(1) Conductor Fill:


  There is an exception under the conductor-fill provision that pertains to luminaire (fixture) conductors. An equipment-grounding conductor or four or fewer luminaire (fixture) wires smaller than 14 AWG, or both, entering a box from a domed luminaire (fixture) or similar canopy and terminating within that box, can be omitted from box-fill calculations. Under certain conditions, up to four luminaire (fixture) conductors and one equipment-grounding conductor can be installed but not counted in the box-fill calculation. The conductors must be 16 AWG or smaller and must enter the box from a domed luminaire (fixture) or similar canopy.


I always wondered why the wires on lights are so flimsy; that's why, so you don't have to count them in box fills.