Code Review Part 3 – Building & Refactoring the Posts Generator
In the last article, I walked you through a code review and refactoring process for the FilterWPQuery class in Josh Pollock’s plugin. We made his class more readable and performant. But we did not cover the posts generator code in the getPosts() method; rather, I left that review for this article. Why? There are two reasons. First, …