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
#2201Additional Order Filters for WooCommerce39792552k+Nonce verification recommended
#2202Advanced Woo Labels – Product Labels & Badges for WooCommerce3917212210k+Output is not escaped
#2203Load More Anything3938735k+Output is not escaped
#2204Accessibility by AllAccessible39200822k+Unsafe printing function
#2205Andreani WooCommerce392186700Non-prefixed global variable
#2206Anything Order by Terms3948931k+Direct Query
#2207Better Random Redirect398840700Text Domain Mismatch
#2208Better Search Replace3996431m+Unsafe printing function
#2209Better User Search392444700SQL query is not prepared
#2210Billplz for WooCommerce39289656k+Text Domain Mismatch
#2211Blackhole for Bad Bots391236930k+Output is not escaped
#2212Blogger Importer Extended3955454k+Output is not escaped
#2213Bogo393013910k+Request data is not unslashed
#2214BuddyPress Notification Widget395431600Output is not escaped
#2215Bulk Auto Image Alt Text (Alt tag, Alt attribute) optimizer (image SEO)39175010k+Request data is not unslashed
#2216Cache Images3972271k+Unsafe printing function
#2217Calculator Builder – Create an Online Calculator39162211k+Non-prefixed global variable
#2218CatFolders Document Gallery & PDF Library3966323k+Output is not escaped
#2219Constant Contact + WooCommerce3927911k+Nonce verification recommended
#2220Image CAPTCHA for Contact Form 7 and WPForms by HookAndHook (DSGVO/GDPR)39284580k+Missing nonce verification
#2221Content Visibility for Divi Builder39184592k+Non Singular String Literal Domain
#2222Cryptocurrency Widgets Pack3924648700Unsafe printing function
#2223Custom Contact Forms39131066k+Missing nonce verification
#2224Custom Related Posts39131343k+Output is not escaped
#2225DefendWP Firewall39162033k+Non-prefixed global variable
#2226Duplicate Killer – Prevent Duplicate Form Submissions39571031k+Non-prefixed global variable
#2227Caldera Forms styler for Elementor Page Builder3917312800Text Domain Mismatch
#2228ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor39733481m+Non-prefixed global variable
#2229Email Marketing by EmailOctopus3943623k+Non-prefixed global variable
#2230BestWebSoft's Like & Share – Posts, Pages and Widget Social Extension plugin for WordPress394802264k+Text Domain Mismatch
#2231First Order Discount Woocommerce3955301k+Output is not escaped
#2232Fix Duplicates397673800Output is not escaped
#2233GL Import External Images3911819800wp function not compatible with requires wp
#2234GS Only PDF Preview3946361k+Output is not escaped
#2235Maintenance Mode39861097k+Output is not escaped
#2236Improved Save Button3944524k+Missing Translators Comment
#2237Insert Html Snippet3915920520k+Output is not escaped
#2238JJ NextGen JQuery Slider392217800Output is not escaped
#2239LH Add Media From Url3942262k+Output is not escaped
#2240Magazine Blocks – Blog Designer, Magazine & Newspaper Website Builder, Page Builder with Posts Blocks, Post Grid3965726k+block api version too low
#2241Mail Subscribe List3917943k+Input is not validated
#2242Markup by Attribute for WooCommerce39461022k+Direct Query
#2243Menubar39171461k+Output is not escaped
#2244Movable Type and TypePad Importer39422520k+Output is not escaped
#2245Social Proof Popups & Real-Time Notifications – Herd Effects3951811k+Non-prefixed global variable
#2246payever – WooCommerce Gateway39263131700Text Domain Mismatch
#2247Permalink Manager for WooCommerce39116248k+Short PHP open tag found
#2248Quform Mailchimp3965147800Nonce verification recommended
#2249Quform Zapier39601231k+Nonce verification recommended
#2250Redirect 404 Error Page to Homepage or Custom Page with Logs39275310k+Nonce verification recommended