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 | Updated | Top Issue |
|---|---|---|---|---|---|---|---|
| #451 | Shapely Companion | 38 | 49 | 39 | 10k+ | Output Not Escaped | |
| #452 | Shared Files – Frontend File Upload Form & Secure File Sharing | 38 | 5 | 188 | 4k+ | Recommended | |
| #453 | WPC Frequently Bought Together for WooCommerce | 38 | 80 | 162 | 10k+ | Output Not Escaped | |
| #454 | HD Quiz | 39 | 252 | 81 | 7k+ | Output Not Escaped | |
| #455 | If Menu – Visibility control for Menus | 39 | 281 | 63 | 50k+ | Output Not Escaped | |
| #456 | Magazine Blocks – Blog Designer, Magazine & Newspaper Website Builder, Page Builder with Posts Blocks, Post Grid | 39 | 65 | 72 | 6k+ | block api version too low | |
| #457 | Sydney Toolbox | 39 | 84 | 62 | 50k+ | Unsafe Printing Function | |
| #458 | Wicked Folders – Folder Organizer for Pages, Posts, and Custom Post Types | 39 | 89 | 117 | 20k+ | Unsafe Printing Function | |
| #459 | Combo Offers WooCommerce | 39 | 38 | 89 | 2k+ | Missing | |
| #460 | WPC Product Bundles for WooCommerce | 39 | 33 | 141 | 30k+ | Missing Unslash | |
| #461 | WooCommerce Product Dependencies | 39 | 44 | 60 | 3k+ | Missing | |
| #462 | WP Accessibility | 39 | 199 | 104 | 60k+ | Unsafe Printing Function | |
| #463 | Admin Search | 40 | 31 | 47 | 1k+ | Output Not Escaped | |
| #464 | Bulk Move | 40 | 85 | 44 | 9k+ | Unsafe Printing Function | |
| #465 | Custom Simple Rss | 40 | 73 | 130 | 2k+ | Recommended | |
| #466 | Dashboard Welcome for Beaver Builder | 40 | 38 | 24 | 2k+ | Output Not Escaped | |
| #467 | Flamingo | 40 | 15 | 228 | 800k+ | Recommended | |
| #468 | Internal Linking of Related Contents | 40 | 714 | 47 | 1k+ | Output Not Escaped | |
| #469 | PE Recent Posts | 40 | 292 | 11 | 2k+ | Output Not Escaped | |
| #470 | Random Post Plugin – Redirect URL to Post | 40 | 28 | 74 | 4k+ | Recommended | |
| #471 | Same Category Posts | 40 | 183 | 8 | 3k+ | Output Not Escaped | |
| #472 | Super Testimonial – Testimonial & Customer Review Slider Plugin for WordPress | 40 | 28 | 167 | 2k+ | Missing Unslash | |
| #473 | Media Library Categories | 40 | 29 | 49 | 20k+ | Output Not Escaped | |
| #474 | WP Posts Carousel | 40 | 199 | 12 | 3k+ | Unsafe Printing Function | |
| #475 | WPC Grouped Product for WooCommerce | 40 | 19 | 95 | 3k+ | Missing Unslash | |
| #476 | DevVN Local Store | 41 | 84 | 28 | 1k+ | Unsafe Printing Function | |
| #477 | Flexible Posts Widget | 41 | 136 | 33 | 8k+ | Output Not Escaped | |
| #478 | Mihdan: Yandex Turbo Feed | 41 | 65 | 39 | 1k+ | Output Not Escaped | |
| #479 | Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News | 41 | 537 | 20k+ | Non Prefixed Variable Found | ||
| #480 | SiteSEO – SEO Simplified | 41 | 20 | 110 | 500k+ | Recommended | |
| #481 | WP Media folders | 41 | 19 | 74 | 3k+ | Direct Query | |
| #482 | Advanced FAQ Manager | 42 | 9 | 59 | 2k+ | Input Not Sanitized | |
| #483 | Post Grid Master — Post Grids & AJAX Filters | 42 | 44 | 115 | 1k+ | Non Prefixed Variable Found | |
| #484 | Simple Download Counter | 42 | 58 | 46 | 2k+ | Output Not Escaped | |
| #485 | WP Media Category Management | 42 | 9 | 180 | 6k+ | Recommended | |
| #486 | Post Carousel Slider for Elementor | 43 | 133 | 23 | 3k+ | Text Domain Mismatch | |
| #487 | Post Grid | 44 | 33 | 208 | 30k+ | Non Prefixed Variable Found | |
| #488 | Related Posts By PickPlugins | 45 | 4 | 84 | 4k+ | Non Prefixed Variable Found | |
| #489 | Logo Slider – Logo Carousel, Client Logo Slider & Brand Showcase for WordPress | 46 | 16 | 247 | 10k+ | Non Prefixed Variable Found | |
| #490 | Simple Sitemap – Create a Responsive HTML Sitemap | 46 | 33 | 48 | 60k+ | Non Prefixed Hookname Found | |
| #491 | AnWP Post Grid and Post Carousel Slider for Elementor | 48 | 758 | 171 | 20k+ | Text Domain Mismatch | |
| #492 | ThemeFarmer Companion | 48 | 54 | 51 | 2k+ | Missing Version | |
| #493 | Category Posts in Custom Menu | 49 | 19 | 18 | 2k+ | Output Not Escaped | |
| #494 | OneClick Chat to Order | 49 | 677 | 41 | 40k+ | Text Domain Mismatch | |
| #495 | Product Slider, Product Grid, Product Masonry | 49 | 55 | 144 | 10k+ | wp function not compatible with requires wp | |
| #496 | Page Builder Gutenberg Blocks – CoBlocks | 50 | 167 | 36 | 300k+ | block api version too low | |
| #497 | HT Slider For Elementor | 50 | 884 | 40 | 20k+ | Text Domain Mismatch | |
| #498 | Gutenverse – WordPress Blocks, Page Builder & Site Editor | 51 | 17 | 47 | 20k+ | Non Prefixed Hookname Found | |
| #499 | Quotes and Tips by BestWebSoft | 51 | 485 | 190 | 1k+ | Text Domain Mismatch | |
| #500 | VK Filter Search | 51 | 35 | 71 | 6k+ | Recommended |