I've got a large Yii2 project. Due to heavy development over a long time there have been many refactorings of code. In order to speed up development, not all functions or classes were removed properly although they are definitively not used any more.
How can I detect classes, methods or functions in Yii2 which are not used anymore?
Unfortunately there are not automated tests with a high degree of code coverage. So I have to execute all features of the applications with a mouseclick. Any ideas how to automate this in order to generate high code coverage without extensively writing tests?