The access opening should be located in a hallway or other readily accessible location and minimum 22 x 30.
Attic receptacle requirements.
This switch can control either a ceiling light a wall light or a receptacle for plugging in a lamp.
Gfci receptacles are required in bathrooms garages crawl spaces basements laundry rooms and areas where a water source is present.
5 hollow spaces of walls ceilings and attics where such spaces are insulated by loose rolled or foamed inplace insulating material that envelops the conductors.
The receptacle shall be located on the same level and within 7 5 m 25 ft of the heating air conditioning and refrigeration equipment.
210 70 c in other than dwelling units at least one one lighting outlet containing a switch or controlled by a wall switch shall be installed in attics or underfloor spaces containing equipment requiring servicing such as heating air conditioning and refrigeration equipment.
The receptacle outlet shall not be connected to the load side of the equipment disconnecting means.
As noted in sec.
Monday june 18 2018 the nec national electrical code specifies at 210 70 a 3 that any attics underfloor spaces utility rooms and basements have at least one lighting outlet but only where these spaces are used for storage or contain equipment requiring servicing.
Concealed knob and tube wiring shall not be used in the following.
Receptacle outlets shall be installed as specified in sections 210 52 through 210 64.
The ceiling fixture must be controlled by a wall switch rather than a pull chain.
Minimum vertical height of 30 inches measured from the top of the ceiling framing members to the bottom of the roof framing members.
The attic wiring should be protected and secured to ceiling joists or other wood structural supports.
Also it may not be as simple as stapling the wiring to the structural members.
Yes this should be corrected and it would be good to have the wiring and all the circuit connections inspected as well.
Nec 2008 394 12 uses not permitted.
Wall receptacles may be placed no farther than 12 feet apart on any wall surface.
The following links will assist you with your electrical question.