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

RankPluginScoreErrorsWarningsInstallsUpdatedTop Issue
#1BulletProof Security05,0484,94920k+Output Not Escaped
#2Plugin Check (PCP)012813210k+Exception Not Escaped
#3Themify Builder95,1952,0965k+Text Domain Mismatch
#4JetBackup – Backup, Restore & Migrate101,559145100k+Exception Not Escaped
#5Easy WP SMTP – WordPress SMTP and Email Logs: Gmail, Office 365, Outlook, Custom SMTP, and more1532163500k+Direct Query
#6Visual Composer Website Builder168232040k+Non Prefixed Variable Found
#7AnyComment174454495k+Output Not Escaped
#8JetFormBuilder — Dynamic Blocks Form Builder172,0941,58890k+Text Domain Mismatch
#9wpForo Forum174,0332,92220k+Unsafe Printing Function
#10WPtouch – Make your WordPress Website Mobile-Friendly171,46632550k+Text Domain Mismatch
#11Prime Slider Addons for Elementor183,500230100k+Text Domain Mismatch
#12Shopping Cart & eCommerce Store185,45917,2984k+Non Prefixed Variable Found
#13WP Import Export Lite1873897940k+Non Prefixed Variable Found
#14Element Pack – Widgets, Templates & Addons for Elementor199,448517100k+Text Domain Mismatch
#15Block Slider – Responsive Image Slider, Video Slider & Post Slider195551,2913k+Non Prefixed Variable Found
#16Download Monitor194251,36480k+Non Prefixed Hookname Found
#17Event Organiser191,10654420k+Text Domain Mismatch
#18Advanced File Manager – Ultimate File Manager for WordPress And Document Library Solution191,218901100k+Exception Not Escaped
#19Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)193,2753,22810k+Output Not Escaped
#20Matomo Analytics – Powerful, Privacy-First Insights for WordPress191,909878100k+Exception Not Escaped
#21Search Atlas SEO – Premier SEO Plugin for One-Click WP Publishing & Integrated AI Optimization191,2952,6799k+Output Not Escaped
#22Really Simple Security – Simple and Performant Security (formerly Really Simple SSL)195413853m+Missing Translators Comment
#23Membership Plugin – Kadence Memberships195,0822,9829k+Text Domain Mismatch
#24Scrollsequence – Cinematic Scroll Image Animation Plugin198781,5284k+Non Prefixed Variable Found
#25SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments195261,11990k+Non Prefixed Variable Found
#26BetterDocs – AI Documentation, Knowledge Base, Docs, Wikis, FAQ with Chatbot205081,40630k+Non Prefixed Variable Found
#27Brizy – Page Builder2058972070k+Output Not Escaped
#28Filter Everything — WordPress & WooCommerce Filters2056873050k+Output Not Escaped
#29GiveWP – Donation Plugin and Fundraising Platform203,4353,580100k+Output Not Escaped
#30Link Library201,9411,39710k+Unsafe Printing Function
#31Brevo – Email, SMS, Web Push, Chat, and more.20460646100k+Missing Unslash
#32Microthemer Lite – Visual Editor to Customize CSS201,0041,69910k+Non Prefixed Variable Found
#33Nimble Page Builder201,5911,68430k+Missing Arg Domain
#34Pix por Piggly (para Woocommerce)205471954k+Exception Not Escaped
#35Remove Add to Cart WooCommerce206161,3784k+Non Prefixed Variable Found
#36Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF20557541100k+Output Not Escaped
#37Razorpay for WooCommerce20974855100k+Non Prefixed Function Found
#38WPJAM Basic203283564k+Output Not Escaped
#39Store Locator WordPress212,3721,57210k+Text Domain Mismatch
#40Backup Migration219811,09380k+Non Prefixed Variable Found
#41bbPress219293,672100k+Non Prefixed Function Found
#42Captcha Them All213003236k+Output Not Escaped
#43CartFlows – Funnel Builder & Checkout Plugin for WooCommerce21461614200k+Text Domain Mismatch
#44Smart Grid-Layout Design for Contact Form 7211,12673410k+Output Not Escaped
#45Comet Cache2185724520k+Output Not Escaped
#46Cost Calculator Builder2132276530k+Non Prefixed Variable Found
#47Free Downloads WooCommerce214303594k+Output Not Escaped
#48Duplicator – Backups & Migration Plugin – Cloud Backups, Scheduled Backups, & More212,5721,2771m+Output Not Escaped
#49Envo Extra2187860020k+Text Domain Mismatch
#50eRoom – Webinar & Meeting Plugin for Zoom, Google Meet, Microsoft Teams211864379k+Non Prefixed Variable Found