These are valid examples but then you can find dozens of US allied countries, say, in Latin America that were (still are) doing much worse than East Germany.
Also, notice how Russia is now a major food exporter too (for example, they export 2x the amount of wheat compared to Ukraine) whereas USSR was importing wheat. They also started exporting pork, chicken and some other stuff.
Also, while Ukraine lost its industry, Russia did not (or at least not to the same extent).
A lot of this has to do with the socialist experiment. Russia just happened to be at the center of it. The socialist camp got isolated from the rest of the world. Under such circumstances any social system probably would not fare well. But look at the communist China today - the biggest economy in the world (by PPP)
Or take an example or Baltic States. They joined EU long ago. How are they doing? Not so well. They all lost 10 to 30% of their population after becoming independent in 1991. Their economies are not doing great either (even with huge EU subsidies). They do not have any industries to speak of (granted they are small) and mostly make money on agriculture and railroad and sea port services servicing Russian needs.
I am just saying that this is complicated. A lot of information we get in our (western) press is too one sided. The criticism is often valid but exaggerated and serious analysis is just not available (at least not in the mainstream press).