This question already has an answer here:
I've inherited a site with a Sandbox Solution but no documentation nor the original solution package. How can I extract the .wsp to get the solution? I tried renaming it to a .cab file and extracting it and importing the solution to Visual Studio. In both cases, I'm missing the .cs files for the Web Parts. I can only see the .webpart file and the .elements file. Thanks for the help!