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
#201Simple Newsletter Plugin – Noptin227359910k+Non-prefixed global variable
#202Newsletters222,9772,2612k+Text Domain Mismatch
#203NinjaFirewall (WP Edition) – Advanced Security Plugin and Firewall221,2632,046100k+Non-prefixed global variable
#204NinjaScanner – Virus & Malware scan2259655130k+Non-prefixed global variable
#205WP OAuth Server (OAuth Authentication)221893473k+Non-prefixed function
#206oik224891802k+Non Singular String Literal Domain
#207PagBank / PagSeguro Connect para WooCommerce225057574k+Non-prefixed global variable
#208PAYCOMET for WooCommerce221,2234232k+Text Domain Mismatch
#209PDF Builder for WPForms22321266900SQL query is not prepared
#210Smart Popup by Supsystic223,02843910k+Non Singular String Literal Domain
#211Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App221,5812,326300k+Non-prefixed global variable
#212Premium Addons for Elementor – Elementor Templates, Widgets & MCP Tools222051,140700k+Non-prefixed hook name
#213Product Catalog Feed by PixelYourSite225813578k+Output is not escaped
#214PageSpeed Ninja – Cache, Minify, Defer CSS JavaScript, Critical CSS, Optimize Images, Convert WebP229844075k+Unsafe printing function
#215RealPress – Real Estate Plugin226041,167400Non-prefixed global variable
#216Restrict User Access – Ultimate Membership & Content Protection229771,84010k+Non-prefixed global variable
#217Salon Booking System – Appointment Booking for Salons, Barbershops & Spas221867602k+Non-prefixed global variable
#218Social Sharing Plugin – Sassy Social Share221,689233100k+wp function not compatible with requires wp
#219Sellsy22586490400Non Singular String Literal Domain
#220Seraphinite Accelerator2259525550k+Output is not escaped
#221ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF221,044800300k+Non-prefixed global variable
#222Simple Job Board226341,35510k+Non-prefixed global variable
#223Slick Popup: Contact Form 7 Popup Plugin222,3223161k+Text Domain Mismatch
#224Slim Jetpack222,5861,9472k+Text Domain Mismatch
#225SNS Count Cache229181207k+Non Singular String Literal Domain
#226NextScripts: Social Networks Auto-Poster222,4081,13320k+Output is not escaped
#227SSL Zen — SSL Certificate Installer & HTTPS Redirects227511,60510k+Non-prefixed global variable
#228Swift Performance Lite222,3461,3256k+Text Domain Mismatch
#229Tablesome Table – Contact Form DB – WPForms, CF7, Gravity, Forminator, Fluent222255198k+error log error log
#230Ultimate Carousel For Divi225901,566800Non-prefixed global variable
#231Ultimeter227511,3441k+Non-prefixed global variable
#232Uncanny Toolkit for LearnDash2253999420k+Output is not escaped
#233Unlimited Elements Blocks Library227081,822400Non-prefixed global variable
#234RapidLoad AI – Optimize Web Vitals Automatically2281840700Nonce verification recommended
#235Search & Replace Everything – Quick and Easy Way to Find and Replace Text, Links221,0421,80820k+Non-prefixed global variable
#236UpStream: a Project Management Plugin for WordPress22683703600Non-prefixed global variable
#237Welcart e-Commerce2210,36810,88210k+Text Domain Mismatch
#238Walker Core221,3511,436800Non-prefixed global variable
#239WCFM – Frontend Manager for WooCommerce224,7315,05720k+Non-prefixed global variable
#240WCFM Marketplace – Multivendor Marketplace for WooCommerce221,9502,10810k+Non-prefixed global variable
#241WCFM Membership – WooCommerce Memberships for Multivendor Marketplace2255967510k+Non-prefixed global variable
#242Easy Appointment Booking & Scheduling System – Webba Booking Calendar221,6173,3802k+Non-prefixed global variable
#243Wenprise WeChatPay Payment Gateway For WooCommerce22443178400Exception output is not escaped
#244Fraud Prevention For WooCommerce and EDD225721,3945k+Non-prefixed global variable
#245WooCommerce221,3436,2107m+Non-prefixed global variable
#246Advanced AJAX Product Filters222,8401,25250k+Text Domain Mismatch
#247CoDesigner – All in One Elementor WooCommerce Builder224,1317745k+Text Domain Mismatch
#248Simple Shopping Cart2280054110k+Unsafe printing function
#249WP Affiliate Disclosure221,3581,5041k+Non-prefixed global variable
#250Asset CleanUp: Page Speed Booster222,0302,485100k+Non-prefixed global variable