Marx was very clear that socialism requires worker ownership over the means of production via democracy. Workers did not own or control the means of production in the USSR. There was no democracy in the USSR. Therefore, the USSR was not socialist.
It was also definitely not communist either. Communism is classless, stateless, democratic and worker-controlled. The Fujian tulou of China are an example of true communism: True Anarcho-Communism