Ability to find what's not used (dependencies, methods, etc.)

would be great to have a report or some other way to identify what dependencies you might have include but not used, what methods you have defined but aren’t referenced, what environment variables aren’t ever referenced, etc.
Just to keep things clean, reduce deployment size, etc.