China is a very big place. Lots of modern clean areas and lots of areas that are best described as cesspools. Neither is truly reflective of the entire country. Pretty much the same can be said about the United States and many other countries.
I showed someone a picture of one of China's metropoles a while ago and asked where they thought it was. Everywhere but China apparently. It is surprising how hard it is for people to let go of such badly outdated information.
granted, at the street-level it is mostly not so glamorous - but gosh reading comments online makes me feel like people are still operating on an early 2000s conception of China.
Most of the press coverage about China in the US focuses on pollution, sewage, labor practices, authoritarianism, etc. It's not surprising that many have such a one-sided view and forget how easy it would be to present the US in similar (or worse) light to an unbiased audience.
Yes, my wife is Chinese and unfortunately there is actually some truth to that comment. I've seen Chinese public toilets with piles of human excrement around them, because the stink was so bad inside people just did what they needed to do nearby. Animal markets can be truly noxious, and the conditions animals are kept in can be hard to believe.