The states in the middle east, which had democracy forced upon them, aren't doing that well either.
It takes a while to get there, and not all stages of development of a country is a good match for democracy.
And you say that it is not that hard to do things less badly than before. I disagree. The CCP is literally the first functional and competent government they've had in 150 years. I think you are massively underestimating how difficult it is to develop China.
I am not saying economic concerns should forever be their number one priority. At some point that has to change. But is democracy really the best path for China right now? Do they deserve no credit for what they have already achieved?