Reputation: 83
When inheriting the maintenance programming of a large web application that has many php5 scripts (4000+), what is the best way to determine which scripts are no longer in use and can probably be removed?
Upvotes: 4
Views: 74
Reputation: 23948
There is a project Dead Code Detector (DCD).
It finds functions that are never called, which may help to clean up even the files you keep in production.
For finding out unused files, no firm software/algorithm exists for PHP (at least as per my knowledge).
For finding unused files, I think we should do it manually.
Upvotes: 1