You're right, it has no diagonal bracing, didn't pay much attention to it. Add a vertical 2 x 4 between the upper and lower horizontals at the corner 4 x 4s with a 12" square gusset of 1/2" plywood at each corner screwed in place would take care of it.
gussets.jpg