There is a Dead Code Detector (DCD) project .
It finds functions that are never called, which can help clear even the files that you store during production.
To search for unused files for PHP there is no solid software / algorithm (at least, according to my information).
, , .