Every time I work on a project for a client (or a side project for myself), I try to keep in mind each of the five SOLID principles.
These are often talked about by developers on numerous blogs (and I’ve done so myself on this site), so I’m not about to teach of them in this post.

Instead, I’ve been looking at how the Single Responsible Principle applies with working with various aspects of the WordPress API. And what I’ve found is that, in my experience, using this principle consistently results is far smaller classes.
My most recent experience has been in a very simple use case: Working with the WordPress API to create a submenu item and a corresponding submenu page.



