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 | Updated | Top Issue |
|---|---|---|---|---|---|---|---|
| #2301 | Simple Spoiler | 95 | 1 | 8 | 2k+ | Non Prefixed Variable Found | |
| #2302 | LiveChat – Live Chat Plugin for WP Websites | 95 | 62 | 9 | 10k+ | Text Domain Mismatch | |
| #2303 | WPGlobus for WPBakery Visual Composer | 95 | 4 | 7 | 2k+ | trademarked term | |
| #2304 | Yoast Test Helper | 95 | 2 | 43 | 60k+ | Direct Query | |
| #2305 | Transient Cleaner | 96 | 3 | 64 | 1k+ | Non Prefixed Variable Found | |
| #2306 | Bulk Datetime Change | 96 | 3 | 18 | 6k+ | Non Prefixed Variable Found | |
| #2307 | Disable Media Pages | 96 | 8 | 10 | 10k+ | Missing Translators Comment | |
| #2308 | Edit Custom Fields | 96 | 10 | 19 | 2k+ | Direct Query | |
| #2309 | Fixed Bottom Menu | 96 | 15 | 45 | 5k+ | Non Prefixed Hookname Found | |
| #2310 | GenerateBlocks | 96 | 10 | 10 | 200k+ | file system operations is writable | |
| #2311 | VK Dynamic If Block | 96 | 8 | 6 | 3k+ | date date | |
| #2312 | Custom Product tabs for WooCommerce | 96 | 25 | 6 | 10k+ | wp function not compatible with requires wp | |
| #2313 | Display Eventbrite Events | 96 | 31 | 3k+ | error log print r | ||
| #2314 | Variation Images Gallery for WooCommerce | 96 | 87 | 10k+ | Non Prefixed Variable Found | ||
| #2315 | WP Job Manager – Company Profiles | 96 | 3 | 10 | 2k+ | trademarked term | |
| #2316 | Base (formerly BaseLinker) – 300+ marketplaces, 150+ carriers & PIM & OMS & WMS in one | 97 | 2 | 16 | 4k+ | Direct Query | |
| #2317 | Disable New User Notification Emails | 97 | 2 | 6 | 4k+ | Non Prefixed Hookname Found | |
| #2318 | Organize Media Folder | 97 | 3 | 35 | 2k+ | Direct Query | |
| #2319 | Simple Blog Card | 97 | 6 | 18 | 3k+ | Non Prefixed Variable Found | |
| #2320 | Simple Content Templates for Blog Posts & Pages | 97 | 5 | 8 | 1k+ | Direct Query | |
| #2321 | Surfer – WordPress Plugin | 97 | 1 | 25 | 6k+ | Direct Query | |
| #2322 | SVG Support | 97 | 1 | 27 | 1m+ | Non Prefixed Variable Found | |
| #2323 | Remote Website Management by Watchful | 97 | 4 | 12 | 4k+ | Direct Query | |
| #2324 | WPMR Google Feed Manager for WooCommerce – Sell on Google Merchant Center & Shopping | 97 | 1 | 7 | 10k+ | trademarked term | |
| #2325 | WPC Product Size Chart for WooCommerce | 97 | 19 | 2k+ | Non Prefixed Class Found | ||
| #2326 | Broken Link Checker by AIOSEO – Find & Fix Broken Internal, External & Video Links | 98 | 1 | 15 | 300k+ | Non Prefixed Variable Found | |
| #2327 | Disable Generate Thumbnails | 98 | 1 | 14 | 6k+ | Non Prefixed Variable Found | |
| #2328 | Easyship WooCommerce Shipping Rates | 98 | 1 | 16 | 2k+ | Direct Query | |
| #2329 | HBAgency | 98 | 1 | 16 | 9k+ | Non Prefixed Variable Found | |
| #2330 | Local Fonts Uploader – Upload & Host Any Font Locally for GDPR | 98 | 1 | 10 | 4k+ | Direct Query | |
| #2331 | Mime Types Plus | 98 | 1 | 12 | 10k+ | Non Prefixed Variable Found | |
| #2332 | Plus WebP or AVIF | 98 | 24 | 5k+ | Non Prefixed Variable Found | ||
| #2333 | Trust Badges | 98 | 1 | 4 | 1k+ | Direct Query | |
| #2334 | WP Database Reset | 98 | 1 | 10 | 5k+ | Direct Query | |
| #2335 | Machete | 99 | 7 | 7k+ | Direct Query | ||
| #2336 | Statify Filter | 99 | 6 | 2k+ | Direct Query | ||
| #2337 | VS Meta Description | 99 | 1 | 3 | 3k+ | Direct Query |