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.

medium weight

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.

Affected Plugins

RankPluginScoreErrorsWarningsInstallsAddedUpdatedTop Issue
#2351Datafeedr WooCommerce Importer38112565k+Text Domain Mismatch
#2352Availability Datepicker – Booking Calendar for Contact Form 7 – Input WP383443020k+Text Domain Mismatch
#2353Decent Comments3893282k+Output is not escaped
#2354Product Badge, Label, Countdown Timer for WooCommerce – Sale Booster38371025k+Interpolated SQL is not prepared
#2355Easy WP Cleaner38581242k+Non-prefixed global variable
#2356Export User Data38187626k+Text Domain Mismatch
#2357Front-end Editor387862500Output is not escaped
#2358Goal Tracker – Custom Event Tracking for GA438541252k+Output is not escaped
#2359GoDaddy Payments for WooCommerce3858652k+Output is not escaped
#2360GoodBarber3838731k+Nonce verification recommended
#2361GoUrl WooCommerce – Bitcoin Altcoin Payment Gateway Addon3827924600Non Singular String Literal Domain
#2362Great Caroussel3860131500SQL query is not prepared
#2363Greek Multi Tool – Greeklish Slugs, Permalinks & Transliteration38160821k+Unsafe printing function
#2364HashThemes Demo Importer3871446k+Output is not escaped
#2365Icegram Mailer – Reliable Email Deliverability, No-code SMTP Replacement & Email logs38361062k+Non-prefixed global variable
#2366ThumbPress – Compress Images, Manage Thumbnails, Detect Image Issues, WebP/AVIF, Lazy Loading, Hotlinking & More38218830k+Direct Query
#2367Import to Photo Gallery from NextGen gallery388083400Direct Query
#2368Coding Chicken – JetEngine Importer385529400Missing direct file access protection
#2369Insert PHP Code Snippet3816422790k+Output is not escaped
#23703D FlipBook – PDF Embedder, PDF Flipbook Viewer, Flipbook Image Gallery383537780k+Non Singular String Literal Domain
#2371JC Submenu38279324k+Output is not escaped
#2372Maintenance Redirect3824413210k+Missing Arg Domain
#2373Jock On Air Now (JOAN)38121224500Output is not escaped
#2374jQuery Pin It Button for Images381293610k+Output is not escaped
#2375Kali Forms — Contact Form & Drag-and-Drop Builder38425210k+Dynamic hook name
#2376Lana Downloads Manager38146783k+Unsafe printing function
#2377Log Deprecated Notices389273900Text Domain Mismatch
#2378LWS Cleaner388112920k+Direct Query
#2379Majestic Support – The Leading-Edge Help Desk & Customer Support Plugin3824573k+Input is not sanitized
#2380Most And Least Read Posts Widget38130241k+Output is not escaped
#2381Customize My Account for WooCommerce – Custom Tabs, Login, Registration, 2FA & Design3878172800Non-prefixed global variable
#2382Name Directory385203093k+Output is not escaped
#2383Contact Form Widget38541071k+Request data is not unslashed
#2384Ozh' Better Feed384535600Heredoc Output Not Escaped
#2385Page Links To383140100k+Unsafe printing function
#2386YAPE A1 Tiendas382443900Missing nonce verification
#2387Podlove Subscribe button38148452k+Output is not escaped
#2388PopCash Code Integration Tool3877109400Nonce verification recommended
#2389Popular Widget386130700Unsafe printing function
#2390Post views Stats3837511k+Non-prefixed global variable
#2391PostLinks3810710700Output is not escaped
#2392qTranslate X Cleanup and WPML Import38167102800Text Domain Mismatch
#2393Quick Download Button38341232k+Non-prefixed global variable
#2394RDP Wiki Embed386926400Output is not escaped
#2395Restrict Widgets38135404k+Non Singular String Literal Domain
#2396Like This3860171k+Output is not escaped
#2397Invoice1233813988400Text Domain Mismatch
#2398Schema App Structured Data3835867k+Nonce verification recommended
#2399Author Image3851331k+Output is not escaped
#2400LinkBoss – Semantic AI Internal Linking3828572k+Missing Arg Domain