From the point of view of the informativeness and textual cohesiveness of preposed theme, the stronger its informativeness, the weaker its cohesiveness, and vice versa.
If you have no tests and cruddy code, then you should probably throw it away and start again because you'll have to do all the testing, as opposed to if you have cruddy code with many tests.