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
#3351WP Event Manager – Events Calendar, Registrations, Sell Tickets with WooCommerce902020k+Non-prefixed function
#3352WPML to Polylang901456k+Direct Query
#3353MultiManager WP – Manage All Your WordPress Sites Easily9128111k+Missing Arg Domain
#3354Sticky Banner91217700Non-prefixed global variable
#3355Viva.com | Smart Checkout for WooCommerce91306k+Direct Query
#3356Min Max Quantities – Set Minimum/Maximum Quantity & Price Limits with Step Control for WooCommerce9123010k+Non-prefixed hook name
#3357Commerce7 for WordPress912931k+Non-prefixed global variable
#3358Custom Product Tabs for WooCommerce & WordPress Tabs Builder – Smart Tabs9141210k+Non-prefixed global variable
#3359WP Session Manager915162k+Direct Query
#3360WPC Custom Related Products for WooCommerce91261k+Non-prefixed class
#3361WPSSO Tune WP Image Editors913510900Missing Translators Comment
#3362XPS Ship Integration9158201k+Text Domain Mismatch
#3363Add Code To Head92283k+Non-prefixed global variable
#3364Autoload Optimizer9213500Direct Query
#3365BetterDocs – AI Documentation, Knowledge Base, Docs, Wikis, FAQ with Chatbot9223030k+Non-prefixed global variable
#3366Cookie Consent – GDPR & CCPA Cookie Banner & Consent Manager921610k+Direct Query
#3367Fluent Forms Block924182k+Non-prefixed global variable
#3368Hoot Import921101k+Direct Query
#3369PhotoSwipe92491k+Not In Footer
#3370MWW Scheduled Post Trigger924260k+Direct Query
#3371MediaMan – Where is this Image Used?92212500Direct Query
#3372WooCommerce Accommodation Bookings921911k+Non-prefixed global variable
#3373WP Quick Post Duplicator923103k+trademarked term
#3374Advanced Post Block – Showcase Posts with Grid, List, Card Layouts and Filters931810k+Direct Query
#3375Advanced Responsive Video Embedder for Rumble, Odysee, YouTube, Vimeo, Kick …93253220k+Missing direct file access protection
#3376Custom Post Type Sticky93106900Text Domain Mismatch
#3377League Table – WordPress Table Plugin931091k+Missing direct file access protection
#3378Version Info – Server Health Monitor, PHP & MySQL Version Display, Environment Indicators931310k+Request data is not unslashed
#3379Serial Numbers – Ultimate License Manager for Selling, Licensing & Securely Delivering Digital Content with WooCommerce9341281k+Direct Query
#3380WooCommerce Analytics932520k+Direct Query
#3381Gravity Forms Zero Spam9449100k+trademarked term
#3382JobBoardWP – Job Board Listings and Submissions9412441k+slow db query meta query
#3383LLMs.txt and LLMs-Full.txt Generator941494k+Non-prefixed global variable
#3384LovedByAI – Generative Engine Optimization, AI Search, GEO, AEO9416600Direct Query
#3385Media from ZIP94516600Non-prefixed global variable
#3386Moving Media Library943272k+Direct Query
#3387Seamless Sticky Custom Post Types94851k+Missing Arg Domain
#3388TrueRanker944918400wp function not compatible with requires wp
#3389Shortcode94645500Direct Query
#3390WPBean Form Popup for WPForms and Contact Form 7 – Create Popup Forms Easily9422600Direct Query
#3391Bulk Media Register958358k+Non-prefixed hook name
#3392Statify – Extended Evaluation95211920k+Non-prefixed global variable
#3393Live Chat Plugin for WooCommerce – LiveChat9562101k+Text Domain Mismatch
#3394Manage – Centralized site maintenance and monitoring9554760k+Direct Query
#3395Mystery Themes Demo Importer95767k+Non-prefixed global variable
#3396Pixelavo – Server Side Tracking & Pixel + AI Ads Tools95122k+Direct Query
#3397Simple No Comments95781k+Direct Query
#3398Simple Spoiler95182k+Non-prefixed global variable
#3399LiveChat – Live Chat Plugin for WP Websites9562910k+Text Domain Mismatch
#3400WPGlobus for WPBakery Visual Composer95472k+trademarked term