https://upload.wikimedia.org/wikipedia/commons/thumb/4/46/CS...
Eh, I don't know. Munroe in Ballarat is a residential road but doesn't have sidewalks or street parking either. I mean, the gutter is nicer, but that might be down to a soil/landscape difference. Pine St might have the better drainage because it's been built up so high from the ground.
https://www.google.com/maps/@-37.5573014,143.8142714,3a,75y,...
It's a lot more expensive to maintain "good" roads in climates that have wide temperature cycles throughout their seasons.
I live in rural Australia, in a town with a population less than 20% of the town referenced in the post, and I regularly drive the the nearest town which has a population of 0.2% of the US town, and the road in the post look absolutely dilapidated to me.
Even the fixed up road, if I drove through that in my town, I would think "the council need to do something about that"
Your comment reminded me of playing GeoGuessr when it was first released, I remember being absolutely shocked at some of the random locations in the US, the streetview looked about like I would expect a town here with a population of 100 people to look, and the map would show it as being part of an urban sprawl, 50km from a city center.
McKinney is a town that has apparently undergone rapid expansion in the past 20-30 years and I'm willing to bet that Pine St was initially build well before McKinney reached its current population. If you believe that every single residential road needs to have a certain width and have sidewalks as a matter of course, I don't know that I can dissuade you, but I'm willing to bet that the residents on that road are not eager to give up a portion of their yards for a wider road and sidewalk and they almost certainly would rather that road not receive more traffic as a result of 'improvement'.
That said, there are definitely roads in Townsville Qld (your example of an Australian town that should have good infrastructure,) that look as 'bad' if not worse than Pine St: https://www.google.com/maps/@-19.3152528,146.8315158,3a,75y,...
But there's no potholes in those pictures. Are you referring to others? Though there are really bad streets in some places. Generally seems to happen when the streets are not as needed as they were previously (e.g. urban decay where businesses and people left the area), and the city doesn't have good options about what to do with it.
Street parking and walkways are optional things anywhere depending on whether they're useful. More of a dependence on the population density. Really expensive subdivisions often lack them too.
Potholes all over, lacking (or practically lacking) a footpath, drainage, or space for on-street parking.
Pine St looks like something I'd expect to find in a developing nation in South America or Asia, not a developed industrial nation like the USA.