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
#2451Bogo393013910k+Request data is not unslashed
#2452BuddyPress Notification Widget395431600Output is not escaped
#2453Bulk Auto Image Alt Text (Alt tag, Alt attribute) optimizer (image SEO)39164710k+Request data is not unslashed
#2454Cache Images3972271k+Unsafe printing function
#2455Calculator Builder – Create an Online Calculator39162211k+Non-prefixed global variable
#2456CatFolders Document Gallery & PDF Library3966323k+Output is not escaped
#2457Constant Contact + WooCommerce3927911k+Nonce verification recommended
#2458Image CAPTCHA for Contact Form 7 and WPForms by HookAndHook (DSGVO/GDPR)39284580k+Missing nonce verification
#2459Content Visibility for Divi Builder39184592k+Non Singular String Literal Domain
#2460Custom Post Type Auto Menu395433500Text Domain Mismatch
#2461Custom Related Posts39131343k+Output is not escaped
#2462Custom Thank You for WooCommerce3910757400Output is not escaped
#2463Datalogics Ecommerce Delivery – Datalogics3913115500Nonce verification recommended
#2464DefendWP Firewall39162033k+Non-prefixed global variable
#2465Drip for Gravity Forms394121500Unsafe printing function
#2466Duplicate Killer – Prevent Duplicate Form Submissions39571031k+Non-prefixed global variable
#2467Caldera Forms styler for Elementor Page Builder3917312800Text Domain Mismatch
#2468ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor39733501m+Non-prefixed global variable
#2469Email Marketing by EmailOctopus3943623k+Non-prefixed global variable
#2470BestWebSoft's Like & Share – Posts, Pages and Widget Social Extension plugin for WordPress394802264k+Text Domain Mismatch
#2471Favorites3918712310k+Unsafe printing function
#2472First Order Discount Woocommerce3955301k+Output is not escaped
#2473Fix Duplicates397673800Output is not escaped
#2474Flamix: Bitrix24 and WooCommerce Orders integration398131500Output is not escaped
#2475Gallery Widget3912211500Output is not escaped
#2476GL Import External Images3911819800wp function not compatible with requires wp
#2477GS Only PDF Preview3946361k+Output is not escaped
#2478Maintenance Mode39861097k+Output is not escaped
#2479Improved Save Button3944524k+Missing Translators Comment
#2480Insert Html Snippet3915920520k+Output is not escaped
#2481JJ NextGen JQuery Carousel391229400Output is not escaped
#2482JJ NextGen JQuery Slider392217800Output is not escaped
#2483LH Add Media From Url3942262k+Output is not escaped
#2484Magazine Blocks – Blog Designer, Magazine & Newspaper Website Builder, Page Builder with Posts Blocks, Post Grid3965726k+block api version too low
#2485Mail Subscribe List3917943k+Input is not validated
#2486Manage Enrollment for LearnDash394879400Unsafe printing function
#2487Markup by Attribute for WooCommerce39461022k+Direct Query
#2488Menubar39171461k+Output is not escaped
#2489Movable Type and TypePad Importer39422520k+Output is not escaped
#2490Social Proof Popups & Real-Time Notifications – Herd Effects3951811k+Non-prefixed global variable
#2491payever – WooCommerce Gateway39263131700Text Domain Mismatch
#2492Paystack Add-On for Gravity Forms399631400Text Domain Mismatch
#2493Query Multiple Taxonomies395541500Output is not escaped
#2494Quform Mailchimp3965147800Nonce verification recommended
#2495Quform Zapier39601231k+Nonce verification recommended
#2496Redirect 404 Error Page to Homepage or Custom Page with Logs39275310k+Nonce verification recommended
#2497Re Gallery – Responsive Image & Photo Gallery3916121700Missing nonce verification
#2498Reorder by Term3920841k+Request data is not unslashed
#2499Responsify WP399011600Unsafe printing function
#2500REST API Helper3910885500Unsafe printing function