I'm going to change the dimensions of these but use the same concept for food storage in my man room.
Myself with the studs behind that sheet rock. I would have mounted the back 2x's with lag bolts to the studs / wall and used the back 2'x as an additional . Eithe rway that's whay makes the DIY forum a nice place to bounce ideas off each other.