WordPress.DB.SlowDBQuery.slow_db_query_tax_query
slow db query tax query
A query pattern is likely to be slow on larger WordPress sites.
Why It Shows Up
The scan found query arguments such as broad meta queries, tax queries, or unindexed lookups that commonly become expensive as content grows.
Why It Matters
A query that feels fine on a small test site can become a production bottleneck on large stores, membership sites, or publishers.
How to Fix
- Avoid broad `meta_query`, `tax_query`, and unindexed searches on front-end requests when possible.
- Cache expensive results with transients, object cache, or precomputed data.
- Add narrower constraints, pagination, and indexes when custom tables are appropriate.
References
Affected Plugins
| Rank | Plugin | Score | Errors | Warnings | Installs | Added | Updated | Top Issue |
|---|---|---|---|---|---|---|---|---|
| #651 | FAQ Concertina | 40 | 43 | 16 | 600 | Output is not escaped | ||
| #652 | Flamingo | 40 | 15 | 228 | 800k+ | Nonce verification recommended | ||
| #653 | Internal Linking of Related Contents | 40 | 714 | 47 | 1k+ | Output is not escaped | ||
| #654 | Invite Anyone | 40 | 32 | 130 | 1k+ | Non-prefixed hook name | ||
| #655 | PE Recent Posts | 40 | 292 | 11 | 2k+ | Output is not escaped | ||
| #656 | PT Theme Addon | 40 | 67 | 21 | 1k+ | Output is not escaped | ||
| #657 | Random Post Plugin – Redirect URL to Post | 40 | 28 | 74 | 3k+ | Nonce verification recommended | ||
| #658 | Same Category Posts | 40 | 183 | 8 | 3k+ | Output is not escaped | ||
| #659 | Search with Typesense | 40 | 81 | 122 | 700 | Non-prefixed global variable | ||
| #660 | Simple Restrict | 40 | 35 | 13 | 1k+ | Output is not escaped | ||
| #661 | SiteSEO – SEO Simplified | 40 | 36 | 119 | 500k+ | Nonce verification recommended | ||
| #662 | WPC Frequently Bought Together for WooCommerce | 40 | 63 | 109 | 10k+ | Output is not escaped | ||
| #663 | Media Library Categories | 40 | 29 | 49 | 20k+ | Output is not escaped | ||
| #664 | WP Posts Carousel | 40 | 199 | 12 | 3k+ | Unsafe printing function | ||
| #665 | WPC Force Sells for WooCommerce | 40 | 38 | 97 | 600 | Output is not escaped | ||
| #666 | WPC Smart Price Filter for WooCommerce | 40 | 23 | 62 | 600 | Nonce verification recommended | ||
| #667 | DevVN Local Store | 41 | 84 | 28 | 1k+ | Unsafe printing function | ||
| #668 | Flexible Posts Widget | 41 | 136 | 33 | 7k+ | Output is not escaped | ||
| #669 | Mihdan: Yandex Turbo Feed | 41 | 65 | 39 | 1k+ | Output is not escaped | ||
| #670 | Live Chat & AI Chatbot – onWebChat | 41 | 31 | 91 | 700 | error log error log | ||
| #671 | Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News | 41 | 537 | 20k+ | Non-prefixed global variable | |||
| #672 | Service Box | 41 | 150 | 230 | 400 | Missing nonce verification | ||
| #673 | Super Testimonial – Testimonial & Customer Review Slider Plugin for WordPress | 41 | 27 | 168 | 2k+ | Request data is not unslashed | ||
| #674 | WPC Product Bundles for WooCommerce | 41 | 21 | 93 | 30k+ | Missing nonce verification | ||
| #675 | WP Media folders | 41 | 19 | 74 | 3k+ | Direct Query | ||
| #676 | Post Grid Master — Post Grids & AJAX Filters | 42 | 44 | 115 | 1k+ | Non-prefixed global variable | ||
| #677 | Fusion Page Builder : Extension – Gallery | 42 | 29 | 30 | 600 | Output is not escaped | ||
| #678 | Simple Download Counter | 42 | 58 | 46 | 2k+ | Output is not escaped | ||
| #679 | Staffer | 42 | 88 | 42 | 600 | Output is not escaped | ||
| #680 | StifLi Flex MCP – MCP Server with undo for ChatGPT, Claude & Gemini | 42 | 2 | 110 | 1k+ | Interpolated SQL is not prepared | ||
| #681 | WP Media Category Management | 42 | 10 | 176 | 6k+ | Nonce verification recommended | ||
| #682 | Advanced FAQ Manager | 43 | 8 | 59 | 2k+ | Input is not sanitized | ||
| #683 | Directorist – WPML Integration | 43 | 10 | 134 | 400 | Non-prefixed hook name | ||
| #684 | Floating Awesome Button (Sticky Button, Popup, Toast) & 200+ Website Custom Interactive Element | 43 | 66 | 109 | 800 | Missing direct file access protection | ||
| #685 | Logo Slider WP – Responsive Logo Carousel, Logo Gallery & Logo Showcase | 43 | 22 | 255 | 10k+ | Non-prefixed global variable | ||
| #686 | Post Carousel Slider for Elementor | 43 | 133 | 23 | 3k+ | Text Domain Mismatch | ||
| #687 | Post Grid | 44 | 33 | 208 | 30k+ | Non-prefixed global variable | ||
| #688 | SKT Addons for Elementor | 44 | 611 | 383 | 1k+ | Text Domain Mismatch | ||
| #689 | WP Club Manager – WordPress Sports Club Plugin | 44 | 171 | 682 | 600 | Non-prefixed global variable | ||
| #690 | Wpazure Kit | 44 | 136 | 140 | 800 | Missing direct file access protection | ||
| #691 | Related Posts By PickPlugins | 45 | 4 | 84 | 3k+ | Non-prefixed global variable | ||
| #692 | PickPlugins Product Designer for WooCommerce | 46 | 14 | 123 | 500 | Missing nonce verification | ||
| #693 | Simple Sitemap – Create a Responsive HTML Sitemap | 46 | 33 | 48 | 60k+ | Non-prefixed hook name | ||
| #694 | Groups 404 Redirect | 47 | 35 | 33 | 1k+ | Non Singular String Literal Domain | ||
| #695 | AnWP Post Grid and Post Carousel Slider for Elementor | 48 | 758 | 171 | 20k+ | Text Domain Mismatch | ||
| #696 | CookieFox – Cookie Notice | 48 | 14 | 19 | 400 | Output is not escaped | ||
| #697 | ThemeFarmer Companion | 48 | 54 | 51 | 2k+ | Missing Version | ||
| #698 | Category Posts in Custom Menu | 49 | 19 | 18 | 2k+ | Output is not escaped | ||
| #699 | OneClick Chat to Order | 49 | 677 | 41 | 40k+ | Text Domain Mismatch | ||
| #700 | Product Slider, Product Grid, Product Masonry | 49 | 55 | 144 | 10k+ | wp function not compatible with requires wp |