I was on the fence about this fireplace.  After asking a few question (I’ll list below) and Wayfair support getting back to me I decided to pull the trigger. Overall the fireplace is awesome. For the price, it’s better than expected.  
Questions I asked
1) is this rated and to code for installation in a 2x4 wall ANSWER yes it is 
2) can it be hard wired  ANSWER yes. Truth yes, it can be hardwired but not easily. Not with out taking it apart and performing minor surgery. 
I gave 4 stars because of the answer to question 2 above. And also because the mounting for in wall is in the back of the fireplace where they suggest to drill holes ans put anchors into the wall. Which doesn’t make much sense when going into a 2x4 wall. Anchors and lab bolts will be sticking out the other side.  Pretty simple fix by drilling some new holes. Not much real estate for new holes though.  Overall, it’s worth the price.