For starters, you'd secure those NM cables within 8 inches of exiting those plastic boxes, or you'd secure them to the box with a clamp and secure them within 12 inches of the box exit.
After the author began the article by whining about the previous owner's outlet wiring, I expected better attention to detail.