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
#3051Min Max Quantities – Set Minimum/Maximum Quantity & Price Limits with Step Control for WooCommerce9123010k+Non-prefixed hook name
#3052Commerce7 for WordPress91293900Non-prefixed global variable
#3053Custom Product Tabs for WooCommerce & WordPress Tabs Builder – Smart Tabs9141210k+Non-prefixed global variable
#3054WP Session Manager915162k+Direct Query
#3055WPSSO Tune WP Image Editors913510900Missing Translators Comment
#3056XPS Ship Integration9158201k+Text Domain Mismatch
#3057Add Code To Head92283k+Non-prefixed global variable
#3058Cookie Consent – GDPR & CCPA Cookie Banner & Consent Manager921610k+Direct Query
#3059Fluent Forms Block924182k+Non-prefixed global variable
#3060Hoot Import921101k+Direct Query
#3061PhotoSwipe92491k+Not In Footer
#3062MWW Scheduled Post Trigger924260k+Direct Query
#3063WooCommerce Accommodation Bookings921911k+Non-prefixed global variable
#3064WP Quick Post Duplicator923103k+trademarked term
#3065Advanced Post Block – Showcase Posts with Grid, List, Card Layouts and Filters931810k+Direct Query
#3066Advanced Responsive Video Embedder for Rumble, Odysee, YouTube, Vimeo, Kick …93253220k+Missing direct file access protection
#3067Custom Post Type Sticky93106900Text Domain Mismatch
#3068League Table – WordPress Table Plugin931092k+Missing direct file access protection
#3069Version Info – Server Health Monitor, PHP & MySQL Version Display, Environment Indicators931310k+Request data is not unslashed
#3070Serial Numbers – Ultimate License Manager for Selling, Licensing & Securely Delivering Digital Content with WooCommerce9341281k+Direct Query
#3071WooCommerce Analytics932520k+Direct Query
#3072Gravity Forms Zero Spam9449100k+trademarked term
#3073JobBoardWP – Job Board Listings and Submissions9412441k+slow db query meta query
#3074LLMs.txt and LLMs-Full.txt Generator941494k+Non-prefixed global variable
#3075LovedByAI – Generative Engine Optimization, AI Search, GEO, AEO9416600Direct Query
#3076Media from ZIP94516600Non-prefixed global variable
#3077Moving Media Library943272k+Direct Query
#3078Photo Gallery – Image Gallery & Portfolio94361k+Nonce verification recommended
#3079Seamless Sticky Custom Post Types94851k+Missing Arg Domain
#3080Shortcode94645500Direct Query
#3081WPBean Form Popup for WPForms and Contact Form 7 – Create Popup Forms Easily9422600Direct Query
#3082Bulk Media Register958358k+Non-prefixed hook name
#3083Statify – Extended Evaluation95211920k+Non-prefixed global variable
#3084Live Chat Plugin for WooCommerce – LiveChat9562101k+Text Domain Mismatch
#3085Manage – Centralized site maintenance and monitoring9554760k+Direct Query
#3086Mystery Themes Demo Importer95767k+Non-prefixed global variable
#3087Pixelavo – Server Side Tracking & Pixel + AI Ads Tools95122k+Direct Query
#3088Simple No Comments95781k+Direct Query
#3089Simple Spoiler95182k+Non-prefixed global variable
#3090LiveChat – Live Chat Plugin for WP Websites9562910k+Text Domain Mismatch
#3091WPGlobus for WPBakery Visual Composer95472k+trademarked term
#3092Yoast Test Helper9524360k+Direct Query
#3093Allow Numeric Slugs9652900Direct Query
#3094Transient Cleaner963641k+Non-prefixed global variable
#3095Bulk Datetime Change963186k+Non-prefixed global variable
#3096Reduce Unused CSS Solution with Critical CSS For WP9648121k+wp function not compatible with requires wp
#3097Delete Post with Attachments962151k+Direct Query
#3098Disable Media Pages9681010k+Missing Translators Comment
#3099Edit Custom Fields9610192k+Direct Query
#3100Fixed Bottom Menu9615455k+Non-prefixed hook name