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
#851Booking Package251,7003,97710k+Missing nonce verification
#852Online Scheduling and Appointment Booking System – Bookly253,52887060k+Text Domain Mismatch
#853Breeze Cache25217790400k+Non-prefixed global variable
#854Broken Link Checker25727600500k+Output is not escaped
#855BuddyPress Docs252844217k+Nonce verification recommended
#856PublishPress Capabilities – User Role Editor, Access Permissions, User Capabilities, Admin Menus253621,586100k+Non-prefixed global variable
#857SilentShield – Captcha & Anti-Spam for WordPress (CF7, WPForms, Elementor, WooCommerce)2523521410k+Database parameter is not escaped
#858GSheetConnector for CF7 – Connect Contact Form 7 to Google Sheets and Send Form Submissions in Real Time256141,43140k+Non-prefixed global variable
#859CheckoutWC Lite251,3598503k+Text Domain Mismatch
#860CheckView – Form & Checkout Testing25663371k+Direct Query
#861Admin Columns25613995100k+Non-prefixed namespace
#862Colissimo shipping methods for WooCommerce251,75555710k+Text Domain Mismatch
#863Website Builder by SeedProd — Theme Builder, Landing Page Builder, Coming Soon Page, Maintenance Mode25991,035700k+Non-prefixed global variable
#864Disable Comments & Delete All Comments255031859k+Output is not escaped
#865Coinbase Business Gateway for WooCommerce255691,317800Non-prefixed global variable
#866Conditional Payment Methods for WooCommerce255481,3981k+Non-prefixed global variable
#867Contact Form DB Divi255331,2993k+Non-prefixed global variable
#868Contact Form Email254098989k+Non-prefixed global variable
#869Coupon Creator256984121k+Output is not escaped
#870CP Contact Form with PayPal25466936800Unsafe printing function
#871Cryptocurrency Payment Gateway251,963589400Text Domain Mismatch
#872CSS & JavaScript Toolbox2515561710k+Non-prefixed class
#873Smash Balloon Social Post Feed – Simple Social Feeds for WordPress25554982200k+Output is not escaped
#874DecaLog259432361k+Exception output is not escaped
#875Demo Importer Plus255823910k+Non-prefixed hook name
#876Disable Admin Notices – Hide Dashboard Notifications25465195100k+Output is not escaped
#877Docket Cache – Object Cache Accelerator2533348120k+Output is not escaped
#878ELEX WooCommerce Dynamic Pricing and Discounts25478748800Text Domain Mismatch
#879WEB-Translation – eTranslation Multilingual252171,057400Non-prefixed function
#880Show Eventbrite Events – Event Feed for Eventbrite255951,525900Non-prefixed global variable
#881Event Genius – Event Management, Events Calendar, Registration, and RSVP251801,560500Non-prefixed global variable
#882Events Made Easy255076,2991k+Non-prefixed function
#883F4 Post Tree255361,332500Non-prefixed global variable
#884胖鼠采集(Fat Rat Collect)25630190900Missing Arg Domain
#885FlatPM – Ad Manager, AdSense and Custom Code253,01755710k+Text Domain Mismatch
#886FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler253194667k+Non-prefixed global variable
#887Lightbox & Modal Popup WordPress Plugin – FooBox256101,365100k+Non-prefixed global variable
#888Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel258761,798100k+Non-prefixed global variable
#889AnWP Football Leagues253,2871,954900Text Domain Mismatch
#890WP Fast Total Search – The Power of Indexed Search252092911k+Non-prefixed global variable
#891FunnelKit – Funnel Builder for WooCommerce Checkout253,1642,62430k+Text Domain Mismatch
#892Photo Gallery by Ays – Responsive Image Gallery254668202k+Output is not escaped
#893GD Rating System251,5111,0431k+Output is not escaped
#894GD Security Headers254075211k+Output is not escaped
#895GeekyBot — AI Copilot, Chatbot, WooCommerce Lead Gen & Zero-Prompt Content25878636k+Non-prefixed global variable
#896Genesis Club Lite25513317900Output is not escaped
#897Gift Cards (Gift Vouchers and Packages) (WooCommerce Supported)25501,0431k+Non-prefixed global variable
#898Simple Giveaways – Grow your business, email lists and traffic with contests259562,384400Non-prefixed global variable
#899WPBruiser {no- Captcha anti-Spam}2564625910k+Non Singular String Literal Domain
#900MonsterInsights – Google Analytics Dashboard for WordPress (Website Stats Made Easy)251164412m+Nonce verification recommended