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
#3201Posts List7711157k+Non-prefixed hook name
#3202SureRank SEO – Smart Assistant with Meta Tags, Social Preview, XML Sitemap, and Schema775895300k+Non-prefixed hook name
#3203Table Of Contents Block7715810k+wp function not compatible with requires wp
#3204Tagembed Social Feeds Widget772113710k+Non-prefixed function
#3205Taggbox – Free Social Media Widgets, Review Badges & Shoppable UGC77231131k+Direct Query
#3206Unattach77411900Nonce verification recommended
#3207Username7758800Deprecated function: screen_icon
#3208WP Comment Notification772810400Missing Arg Domain
#3209X-Currency – The Ultimate WooCommerce currency switcher for a smoother shopping experience7717771k+Non-prefixed global variable
#3210Claspo – Popups, Spin the Wheel & Email Capture78107161k+wp function not compatible with requires wp
#3211Web3 Crypto Payments by DePay for WooCommerce7861011k+Direct Query
#3212Image Alt Text785199k+Nonce verification recommended
#3213Recent Posts7872400Database parameter is not escaped
#3214RSS Includes Pages784810k+Output is not escaped
#3215WooCommerce Square78626680k+Non-prefixed hook name
#3216Auto Featured Image (Auto Post Thumbnail)7953050k+Non-prefixed hook name
#3217Boxzilla – WordPress Popup Builder7946420k+Non-prefixed global variable
#3218Klaviyo792686100k+Non-prefixed function
#3219Location Weather – WordPress Weather Forecast, Air Quality & Weather Widget7956710k+Non-prefixed global variable
#3220Real Category Management: Content Management in Category Folders794732k+Non-prefixed constant
#3221Notifima – WooCommerce Stock Manager, Inventory Management, Waitlist79121423k+Text Domain Mismatch
#3222WP Last Modified Info79453240k+Short PHP open tag found
#3223WP Referral Code791819600Missing direct file access protection
#3224Antispam Bee80438700k+Nonce verification recommended
#3225ShopEngine Gutenberg WooCommerce Builder Blocks Addon – All in One WooCommerce Solution804247353k+Non-prefixed global variable
#3226Eli's PHP Compatibility Scanner80122400Missing nonce verification
#3227Flipbox8014172k+wp function not compatible with requires wp
#3228Pro Mime Types – Manage file media types8055982k+Non-prefixed global variable
#3229Random Content801083k+Output is not escaped
#3230SureMail – SMTP and Email Logs Plugin with Amazon SES, Postmark, and Other Providers804565200k+Non-prefixed hook name
#3231Product Feed PRO for WooCommerce by AdTribes – Product Feeds for WooCommerce80945080k+Non-prefixed hook name
#3232GoCardless for WooCommerce80601k+Non-prefixed class
#3233Discounts Per Payment Method on WooCommerce80881k+Missing Translators Comment
#3234WP Social Ninja – Embed Social Feeds, User Reviews & Chat Widgets80261830k+Missing direct file access protection
#3235Change Permalink Helper8155900Direct Query
#3236Countdown Block8114104k+wp function not compatible with requires wp
#3237Joinchat – Enhanced "click to chat"811732700k+wp function not compatible with requires wp
#3238eCommerce Shipping Dashboard by UPS for WooCommerce816351k+Non-prefixed constant
#3239LoftLoader81171970k+Missing direct file access protection
#3240OG — Better Share on Social Media81145130k+Non-prefixed hook name
#3241Price Table Block811516900file system operations mkdir
#3242Progress Bars811514500file system operations mkdir
#3243Orphans8114350k+Dynamic hook name
#3244Stream8158080k+Direct Query
#3245Team Member Block8115141k+file system operations mkdir
#3246Toggle Content811612700file system operations mkdir
#3247Typing Text811516600file system operations mkdir
#3248VS Event List8112598k+Non-prefixed global variable
#3249ShipStation for WooCommerce813440k+Non-prefixed class
#3250Accordion Toggle8217112k+Non-prefixed class