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
#251WCFM Marketplace – Multivendor Marketplace for WooCommerce221,9341,96610k+Non-prefixed global variable
#252WCFM Membership – WooCommerce Memberships for Multivendor Marketplace2255967510k+Non-prefixed global variable
#253Wenprise WeChatPay Payment Gateway For WooCommerce22443178400Exception output is not escaped
#254Fraud Prevention For WooCommerce and EDD225721,3945k+Non-prefixed global variable
#255WooCommerce221,3596,1727m+Non-prefixed global variable
#256Advanced AJAX Product Filters222,6831,20550k+Text Domain Mismatch
#257CoDesigner – All in One Elementor WooCommerce Builder224,1317745k+Text Domain Mismatch
#258Simple Shopping Cart2279653610k+Unsafe printing function
#259ManageWP Worker225075651m+Non-prefixed class
#260WP Affiliate Disclosure221,3581,5041k+Non-prefixed global variable
#261Asset CleanUp: Page Speed Booster222,0302,485100k+Non-prefixed global variable
#262Master Accordion ( Former WP Awesome FAQ Plugin )221,7741,286700Non-prefixed global variable
#263WP Easy Pay – Payment and Donation form Builder for Square229101,8351k+Non-prefixed global variable
#264WP Express Checkout (Fast Payments via PayPal & Stripe)225916271k+Output is not escaped
#265File Manager227405201m+Unsafe printing function
#266WP Fusion Lite – Marketing Automation and CRM Integration for WordPress222756835k+Nonce verification recommended
#267WP Umbrella: Update Backup Restore & Monitoring2292191970k+Exception output is not escaped
#268SchedulePress – Auto Post & Publish, Auto Social Share, Schedule Posts with Editorial Calendar & Missed Schedule Post Publisher2230724510k+Output is not escaped
#269NotifSMS – SMS Notifications OTP & 2FA for WordPress & WooCommerce221,3531,4122k+Non-prefixed global variable
#270User Frontend: AI Powered Frontend Posting, User Directory, Profile Builder, Membership & User Registration222871,43220k+Non-prefixed global variable
#271WP-WebAuthn229573962k+Exception output is not escaped
#272WPBITS Addons For Elementor Page Builder229961,3992k+Non-prefixed global variable
#273WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell226,0022,7905k+Text Domain Mismatch
#274ShopWP22430225700Text Domain Mismatch
#275WPSSO Core – Complete Schema Markup and Meta Tags221,4074125k+Missing Translators Comment
#276WUPO Group Attributes for WooCommerce225921,391400Non-prefixed global variable
#277YaySMTP – WP Mail SMTP with Email Logs, Tracking & Reports2265443510k+Exception output is not escaped
#278YITH WooCommerce Ajax Search224081,65930k+Non-prefixed global variable
#279ЮKassa для WooCommerce225901689k+Short PHP open tag found
#280Recipe Cards For Your Food Blog from Zip Recipes221,1261,7311k+Non-prefixed global variable
#281Print Labels with Barcodes. Create price tags, product labels, order labels for WooCommerce231,1851,0271k+Text Domain Mismatch
#282Gutenberg Blocks – ACF Blocks Suite231,0971,449400Non-prefixed global variable
#283Advanced Custom Fields: Extended231,885329100k+Text Domain Mismatch
#284Frontend Admin by DynamiApps235,9383,2089k+Text Domain Mismatch
#285Custom WooCommerce Checkout Fields Editor237551,3862k+Non-prefixed global variable
#286Admin and Site Enhancements (ASE)23136331200k+Nonce verification recommended
#287Advanced Menu Manager Pro – Built for Content-heavy WordPress Sites to Add, Filter, Lock, and Edit Menus Easily235451,397400Non-prefixed global variable
#288Advanced Ads – Ad Manager & AdSense23559719100k+Non-prefixed global variable
#289Advanced Custom Fields (ACF®)232,4561,2182m+Text Domain Mismatch
#290Advanced Product Labels for WooCommerce2392155920k+Text Domain Mismatch
#291AI Engine – The Chatbot, AI Framework & MCP for WordPress23408539100k+error log error log
#292Fullscreen Menu235371,2872k+Non-prefixed global variable
#293AR for WordPress23151499400Non-prefixed global variable
#294Autocomplete Address and Location Picker for WooCommerce236301,2992k+Non-prefixed global variable
#295Autoptimize23288191800k+Output is not escaped
#296Shortcodes and extra features for Phlox theme2341242490k+Output is not escaped
#297B2BKing — Ultimate WooCommerce B2B and Wholesale Plugin — Wholesale Prices, Bulk Order Form & More231,34740910k+Text Domain Mismatch
#298BA Book Everything231,1841,08610k+Output is not escaped
#299Kadence Security – Password, Two Factor Authentication, and Brute Force Protection231,053967700k+Missing Translators Comment
#300Booking calendar, Appointment Booking System231,0791,1253k+Output is not escaped