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
#651Mail Mint – Email Marketing, Newsletter, Email Automation & WooCommerce Emails244,6961,4805k+Text Domain Mismatch
#652Mailchimp for WooCommerce24523663200k+Non-prefixed global variable
#653MailerPress – Newsletter, email marketing & AI automation248053,9311k+Direct Query
#654Mailjet Email Marketing2443520610k+Unsafe printing function
#655Mang Board WP241,2494,7209k+Non-prefixed global variable
#656Admin Tweaks241,5072061k+Text Domain Mismatch
#657Mass Pages/Posts Creator247361,3641k+Non-prefixed global variable
#658Media Library Folders2488980710k+Text Domain Mismatch
#659Receive customer payments on Woocommerce245491,4191k+Non-prefixed global variable
#660Timetable and Event Schedule by MotoPress2445623230k+Output is not escaped
#661MT Addons for Elementor243,0731,4422k+Text Domain Mismatch
#662Music Player for Elementor – Audio Player & Podcast Player246081,30210k+Non-prefixed global variable
#663MxChat – AI Chatbot & Content Generation for WordPress243,2201,3992k+Text Domain Mismatch
#664My WP Customize Admin/Frontend241,2492928k+Unsafe printing function
#665My Agile Privacy® – CMP, Cookie Consent & Privacy Tools241,1706747k+Text Domain Mismatch
#666New User Approve246521,41520k+Non-prefixed global variable
#667Newsletter – Send awesome emails from WordPress248982,214200k+Non-prefixed global variable
#668Simple Newsletter Plugin – Noptin246659110k+Non-prefixed global variable
#669Newsletter Subscription Form – User Subscriptions Form, Capture Email243858291k+Non-prefixed global variable
#670Ninja Forms – The Contact Form Builder That Grows With You247491,525600k+Nonce verification recommended
#671Omnipress24169245800Non-prefixed global variable
#672Opt-Out for Google Analytics (DSGVO / GDPR)242901,9783k+Non-prefixed global variable
#673Overlay Image Divi Module245761,3012k+Non-prefixed global variable
#674Pagar.me para WooCommerce245491165k+Text Domain Mismatch
#675Page Builder: Pagelayer – Drag and Drop website builder24769556400k+Output is not escaped
#676Participants Database249518947k+SQL query is not prepared
#677Paymob for WooCommerce243482886k+Text Domain Mismatch
#678PDF for Gravity Forms + Drag And Drop Template Builder241,457260400wp function not compatible with requires wp
#679PDF Generator for WordPress Elementor245132711k+Exception output is not escaped
#680PixelYourSite – Your smart PIXEL (TAG) & API Manager241,1602,407500k+Non-prefixed namespace
#681Post Export Import with Media246191,3341k+Non-prefixed global variable
#682Post Slider and Post Carousel with Post Vertical Scrolling Widget – A Responsive Post Slider245991,53210k+Non-prefixed global variable
#683Product Catalog Simple241,5551,9821k+Output is not escaped
#684Post Affiliate Pro24293335500Nonce verification recommended
#685Premium Blocks – Gutenberg Blocks, Patterns & Templates241403082k+Non-prefixed function
#686Premmerce Brands for WooCommerce247001,3442k+Non-prefixed global variable
#687Premmerce Product Filter for WooCommerce248171,4862k+Non-prefixed global variable
#688PrettyLinks – Affiliate Links, Link Branding, Link Tracking, Marketing and Stripe Payments Plugin244491,137200k+Nonce verification recommended
#689Product Editor Pro – WooCommerce Bulk Edit: Prices, Stock, Images, Titles, CSV Import & More242,1544,8331k+Non-prefixed global variable
#690Products Compare for WooCommerce241,0336921k+Output is not escaped
#691ProfileGrid – User Profiles, Groups and Communities244742,4606k+Non-prefixed global variable
#692Co-Authors, Multiple Authors and Guest Authors in an Author Box with PublishPress Authors2436982020k+Nonce verification recommended
#693Pz-LinkCard249511,58120k+Non-prefixed global variable
#694PickPlugins Question Answer24321,413400Non-prefixed global variable
#695Quiz and Survey Master (QSM) – Easy Quiz and Survey Maker244072,58740k+Non-prefixed hook name
#696reGenerate Thumbnails Advanced2422012270k+Unsafe printing function
#697Registrations for the Events Calendar – Event Registration Plugin244059437k+Non-prefixed global variable
#698Reviews Feed – Add Testimonials and Customer Reviews From Google Reviews, Yelp, TripAdvisor, and More24141685100k+Non-prefixed global variable
#699RS WP Book Showcase – A Complete Book Catalogue & Library System249103431k+Text Domain Mismatch
#700RSFirewall!245635214k+Output is not escaped