Pattern: Use of high pagination limit
Issue: -
Using posts_per_page
(or numberposts
) with the value set to -1 or an unreasonably high number or setting nopaging
to true
opens up the potential for scaling issues if the query ends up querying thousands of posts.