Not really a total basket case. They had a long and fantastic history actually of institution building, including credible tax services etc.
It was really the Zuma years that messed things up and the new folks don't seem interested in any cleanup (the ANC has had a lock on power a long time). They are still a great country relatively speaking in Africa, with incredible potential.