WordPress.DB.DirectDatabaseQuery.NoCaching
No Caching
The plugin runs a direct database query instead of using a higher-level WordPress API or cache-aware pattern.
Why It Shows Up
Plugin Check found `$wpdb` access that queries the database directly, changes schema, or bypasses normal caching expectations.
Why It Matters
Direct queries can be correct, but they are easier to make unsafe, slower at scale, and harder for WordPress to cache or filter.
How to Fix
- Use WordPress APIs such as post, term, metadata, option, or user functions when they fit the task.
- If direct SQL is necessary, prepare dynamic values and add a clear caching strategy for repeated reads.
- Keep schema changes in activation or upgrade routines and make them idempotent.
References
Affected Plugins
| Rank | Plugin | Score | Errors | Warnings | Installs | Added | Updated | Top Issue |
|---|---|---|---|---|---|---|---|---|
| #2601 | LLM Bot Tracker – AI Crawler Detection & Analytics | 40 | 18 | 90 | 700 | Database parameter is not escaped | ||
| #2602 | Logbook | 40 | 33 | 59 | 2k+ | Nonce verification recommended | ||
| #2603 | Mass Email To Users | 40 | 84 | 81 | 800 | Output is not escaped | ||
| #2604 | Modal Window – create popup modal window | 40 | 4 | 170 | 10k+ | Non-prefixed global variable | ||
| #2605 | Multiple Featured Images | 40 | 50 | 22 | 5k+ | Output is not escaped | ||
| #2606 | Customize My Account for WooCommerce – Custom Tabs, Login, Registration, 2FA & Design | 40 | 77 | 167 | 800 | Non-prefixed global variable | ||
| #2607 | NextGEN Gallery Sidebar Widget | 40 | 59 | 10 | 600 | Output is not escaped | ||
| #2608 | Page Comments Off Please | 40 | 17 | 29 | 1k+ | Nonce verification recommended | ||
| #2609 | Paystack MemberPress | 40 | 71 | 76 | 400 | Output is not escaped | ||
| #2610 | Plugin Load Filter | 40 | 76 | 112 | 7k+ | Text Domain Mismatch | ||
| #2611 | Requirements Checklist | 40 | 200 | 22 | 900 | Output is not escaped | ||
| #2612 | Private Google Calendars | 40 | 227 | 37 | 1k+ | Output is not escaped | ||
| #2613 | Quiz Cat – WordPress Quiz Plugin | 40 | 151 | 69 | 5k+ | Output is not escaped | ||
| #2614 | Random Banner | 40 | 59 | 125 | 1k+ | Output is not escaped | ||
| #2615 | Redirector | 40 | 48 | 32 | 7k+ | Output is not escaped | ||
| #2616 | Responsive Plus – Elementor Templates & Starter Sites | 40 | 46 | 305 | 10k+ | Non-prefixed global variable | ||
| #2617 | REST API Custom Fields | 40 | 44 | 16 | 800 | Text Domain Mismatch | ||
| #2618 | Role Based Redirect | 40 | 20 | 96 | 2k+ | Non-prefixed global variable | ||
| #2619 | Sales Tax Reports For WooCommerce | 40 | 50 | 65 | 900 | Output is not escaped | ||
| #2620 | Select Post Export | 40 | 51 | 18 | 500 | Output is not escaped | ||
| #2621 | Serviceform Pixel | 40 | 18 | 22 | 400 | Output is not escaped | ||
| #2622 | Multipage | 40 | 72 | 28 | 900 | Unsafe printing function | ||
| #2623 | Shortcodes Finder | 40 | 22 | 188 | 4k+ | Nonce verification recommended | ||
| #2624 | Show Pages URL List | 40 | 29 | 234 | 1k+ | Non-prefixed global variable | ||
| #2625 | Simple Statistics for Feeds | 40 | 64 | 131 | 800 | Nonce verification recommended | ||
| #2626 | Simple Page Sidebars | 40 | 55 | 65 | 20k+ | Output is not escaped | ||
| #2627 | Statify Widget | 40 | 52 | 13 | 4k+ | Output is not escaped | ||
| #2628 | Tealium | 40 | 73 | 19 | 700 | Unsafe printing function | ||
| #2629 | Thin Out Revisions | 40 | 93 | 35 | 800 | Non Singular String Literal Domain | ||
| #2630 | Timeline History | 40 | 31 | 17 | 500 | Output is not escaped | ||
| #2631 | Track Geolocation Of Users Using Contact Form 7 | 40 | 17 | 173 | 900 | Nonce verification recommended | ||
| #2632 | Ultimate Member – ForumWP forum integration | 40 | 31 | 73 | 500 | Nonce verification recommended | ||
| #2633 | UTM Leads Tracker – XLPlugins | 40 | 21 | 38 | 400 | Output is not escaped | ||
| #2634 | Visibility Control for LearnDash | 40 | 55 | 23 | 1k+ | Missing Arg Domain | ||
| #2635 | Visibility Control for LearnPress | 40 | 52 | 19 | 700 | Missing Arg Domain | ||
| #2636 | WC Search Orders By Product | 40 | 47 | 66 | 800 | Nonce verification recommended | ||
| #2637 | Payment Gateway – nexi Alpha Bank for WooCommerce | 40 | 28 | 45 | 1k+ | Missing nonce verification | ||
| #2638 | Total Sales Counts for WooCommerce | 40 | 121 | 62 | 700 | SQL query is not prepared | ||
| #2639 | Word Balloon | 40 | 20 | 125 | 10k+ | Request data is not unslashed | ||
| #2640 | WP Discord Invite | 40 | 73 | 42 | 400 | Unsafe printing function | ||
| #2641 | WP All Import – Job Listing Import for WP Job Manager | 40 | 35 | 27 | 2k+ | Output is not escaped | ||
| #2642 | Media Library Categories | 40 | 29 | 49 | 20k+ | Output is not escaped | ||
| #2643 | WP Multisite Content Copier/Updater | 40 | 19 | 144 | 800 | Interpolated SQL is not prepared | ||
| #2644 | WP Reroute Email | 40 | 141 | 106 | 1k+ | Output is not escaped | ||
| #2645 | WPC Force Sells for WooCommerce | 40 | 38 | 97 | 600 | Output is not escaped | ||
| #2646 | WPC Smart Price Filter for WooCommerce | 40 | 23 | 62 | 600 | Nonce verification recommended | ||
| #2647 | WPFront Notification Bar | 40 | 222 | 44 | 50k+ | Output is not escaped | ||
| #2648 | WPS Menu Exporter | 40 | 47 | 22 | 10k+ | Output is not escaped | ||
| #2649 | Yektanet Ecommerce | 40 | 45 | 103 | 1k+ | Request data is not unslashed | ||
| #2650 | My YouTube Channel | 40 | 54 | 38 | 5k+ | Output is not escaped |