This talk will introduce tools to analyze PHP code in an automated fashion allowing developers to write better quality software. Then explain key metrics to help understand what needs to be refactored using code smells to highlight bugs before end-users discover them.