Not only is the thermal insulation crowding the light, (it needs 3″ of clearance- see warning), the wiring is improper as no connectors are used.
This also represents a thermal bypass as air and moisture can leak into the attic causing other issues.