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
#1201MAS Companies For WP Job Manager33623081k+Non Prefixed Hookname Found
#1202Members – Membership & User Role Editor Plugin33234244300k+Output Not Escaped
#1203Mollie Payments for WooCommerce3370123100k+Dynamic Hookname Found
#1204News Announcement Scroll332372592k+Non Prefixed Variable Found
#1205PhonePe Payment Solutions337610510k+missing direct file access protection
#1206Pixelgrade Assistant336651412k+Text Domain Mismatch
#1207Post Lists View Custom334621502k+Missing Arg Domain
#1208PublishPress Checklists: Pre-Publishing Approval Checklist – Validate Post Requirements331401823k+Missing Translators Comment
#1209Frisbii Pay33912921k+Non Prefixed Variable Found
#1210Schema & Structured Data for WP & AMP3363246100k+Non Prefixed Variable Found
#1211SMTP2GO for WordPress – Email Made Easy3318611130k+Output Not Escaped
#1212Social Rocket – Social Sharing Plugin331,0162551k+Unsafe Printing Function
#1213Spiffy Calendar334732433k+Output Not Escaped
#1214WP Twitter Auto Publish334421714k+Output Not Escaped
#1215Variation Swatches for WooCommerce3346911650k+Text Domain Mismatch
#1216Website Monetization by MageNet33608720k+Output Not Escaped
#1217White Label CMS33411207200k+Unsafe Printing Function
#1218Rich Showcase for Google Reviews33230227100k+Output Not Escaped
#1219Wonder Slider Lite332731878k+Output Not Escaped
#1220Product Addons for Woocommerce – Product Options with Custom Fields3312411430k+Output Not Escaped
#1221Min Max Control – Min Max Quantity & Step Control for WooCommerce339621510k+Non Prefixed Variable Found
#1222Hyyan WooCommerce Polylang Integration331412209k+Recommended
#1223CartBounty – Save and recover abandoned carts for WooCommerce3337039910k+Output Not Escaped
#1224CatalogX – Catalog Mode, Enquiry & Quotes for WooCommerce332291055k+Text Domain Mismatch
#1225Pay. Payment Methods for WooCommerce333161043k+Non Singular String Literal Domain
#1226PDF Invoices Italian Add-on for WooCommerce333252005k+Non Singular String Literal Domain
#1227WOW Slider331761013k+Output Not Escaped
#1228Books Gallery – Book Showcase, Library & Affiliate Plugin331,7531782k+Output Not Escaped
#1229WP Edit3333713740k+Unsafe Printing Function
#1230Connector for Gravity Forms and Google Sheets336921553k+Text Domain Mismatch
#1231WP Multilang – Translation and Multilingual Plugin335111810k+Unescaped DBParameter
#1232WP-UserOnline3311116110k+Output Not Escaped
#1233XML Sitemaps3365622k+Output Not Escaped
#1234Advanced Coupons for WooCommerce Coupons & Store Credit347421420k+Non Prefixed Variable Found
#1235AI WP Writer – SEO content generator, chatGPT, Gemini345815093k+Text Domain Mismatch
#1236Assistant – Every Day Productivity Apps34124974k+Exception Not Escaped
#1237Audit Trail349010710k+Unsafe Printing Function
#1238AyeCode Connect3417825310k+Recommended
#1239BoldGrid Easy SEO – Simple and Effective SEO3414910450k+Text Domain Mismatch
#1240CM Search And Replace – Optimize content edits with a powerful search and replace tool342861112k+Output Not Escaped
#1241Cornerstone3416117430k+Recommended
#1242CSS JS Manager, Async JavaScript, Defer Render Blocking CSS34761061k+Input Not Validated
#1243Custom Sidebars – Dynamic Sidebar Classic Widget Area Manager3432307100k+Non Prefixed Variable Found
#1244Datafeedr API34307486k+Output Not Escaped
#1245Document Library Lite34149854k+Text Domain Mismatch
#1246Download After Email – Subscribe & Download Form Plugin34223567k+Input Not Validated
#1247Easy Social Sharing34162401k+Non Prefixed Variable Found
#1248ECS – Ele Custom Skin for Elementor3499205100k+Text Domain Mismatch
#1249ePayco Plugin for WooCommerce341551363k+Text Domain Mismatch
#1250Meta for WooCommerce3466186400k+Non Prefixed Hookname Found