More specifically, what I am looking for is a program that will read through my source code file and find any unused variables, unmatched 'new's, and unoptimized loops.

Thank you.