Sorry for not responding sooner.
I've seen this type of plumbing several times; and as a plumber it just turns my stomach.
There is no reason for putting bends from the the washer box to the trap wier. This defeats and obstructs the flow and may cause a backup and flooding when the washing machine drains.
Unfortunately, a plumber can make the entire standpipe out of bends and it is not a code violation.
Most of you may not remember when the standpipe was 1 1/4 inches. The washing machine manufacturers decided that the machines did not drain fast enough and increased the size of the motors. This caused a lot of problems with backup and flooding because the the drain was not large enough to allow for proper drainage; and in new construction the size of the standpipe, trap and drain was increased to 2" to prevent backup and flooding.
As for the bends between the standpipe and the trap wier; most of the time this happens because the underground drain installation placed the drain too close to where the washer box outlet would have to be placed; making it impossible to place the trap correctly.
In this case; the washer box is not installed in accordance with the manufacturer's installation instructions (note, the wings on the washer box that are for securing the box to the studs). This causes an undue strain on the drain pipe, and the bends restricting the flow to the trap wier add to the problem.
If you looking for code violation you may want to see;
2006/2009 IRC, P2705.1, Number 2. Wall-hung fixtures shall be rigidly supported so that the strain is not transmitted to the plumbing system.
In this case, if the washing machine box had been correctly installed between the studs; there would have been no need to use bends between the box and the trap wier.
The picture is really just an example of really bad plumbing; which, unfortunately is not a code violation. Hopefully, the bends will not cause a backup and flooding.
Uncle Bob