When writing code for WordPress plugins, one of the things that you need to do is to hook everything into the appropriate WordPress hooks. When working with OOP code, this typically means that each class is responsible for its own hooks. The result of this is that each class needs to be instantiated so that it can attach its hooks, regardless of whether those hooks will be loaded in the current request.
The result is a bunch of objects instantiated in memory, but they’re never used. I’d like to look into a good solution to this problem.