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
#3101Reusable Gutenberg Blocks Widget68249500Output is not escaped
#3102Russian Post and EMS for WooCommerce6816471k+Non-prefixed global variable
#3103Shiptastic Integration for DHL68543610k+Missing Translators Comment
#3104Thank You Page for WooCommerce6862710k+Non-prefixed global variable
#3105WiserReview Product Reviews for WooCommerce6821110900Non-prefixed global variable
#3106Ever Accounting – Accounting & Invoicing Solution for Small Businesses68696611k+Non-prefixed hook name
#3107WP Sanitize Accented Uploads681516800Quoted Simple Placeholder
#3108AdOpt | Easy Multi-Regulations Cookie Banner.6922277k+Missing direct file access protection
#3109Auto Update Post Date6911231k+Input is not validated
#3110Bulk menu creator692741k+Text Domain Mismatch
#3111Burst Statistics – Simple WordPress Analytics (Google Analytics Alternative)6933379200k+Direct Query
#3112CDN Enabler6914710k+Output is not escaped
#3113Contact Form 769563910m+Missing direct file access protection
#3114CryptX69113010k+Missing nonce verification
#3115DOKU Payment695346400wp function not compatible with requires wp
#3116GZSEO69366400Direct Query
#3117PDF.js Viewer69143820k+Non-prefixed global variable
#3118Scroll Down Arrow693030800Missing Arg Domain
#3119Search by SKU for Woocommerce69131010k+Direct Query
#3120Easy Username Updater69192810k+Missing Arg Domain
#3121Export WordPress Menus6994221k+wp function not compatible with requires wp
#3122AppScenic – Smart AI Dropshipping7016413k+Dynamic hook name
#3123FAZ Cookie Manager70315600Non-prefixed hook name
#3124Portfolio Post Type7071150k+Nonce verification recommended
#3125Search and Replace707910k+Input is not sanitized
#3126Simple Login Captcha70201910k+date date
#3127Smart WYSIWYG Blocks Of Content703641k+Output is not escaped
#3128Spocket ‑ US & EU Dropshipping7015311k+Direct Query
#3129Export Users With Meta7013132k+Direct Query
#3130Download Manager Addons for Elementor70272136k+Non Singular String Literal Domain
#3131BuddyPress Default Data71821400Interpolated SQL is not prepared
#3132GPX Viewer711026900Missing Version
#3133Multiple Roles717205k+Non-prefixed global variable
#3134Nginx Helper714760200k+Non-prefixed global variable
#3135Privyr CRM – Instant Lead Alerts for Contact Forms712254k+Non-prefixed function
#3136SmartSMTP718422k+Nonce verification recommended
#3137WooCommerce Shipping714870k+Direct Query
#3138Bulk Term Editor72199400Output is not escaped
#3139Disable Title7220152k+Text Domain Mismatch
#3140Discontinued Product Stock Status for WooCommerce72151500Missing nonce verification
#3141EU Order Withdrawal Button for WooCommerce72524063k+Non-prefixed hook name
#3142Media Library Organizer – Folders, File Manager & Media Categories722013020k+Non-prefixed global variable
#3143Responsive Blocks – Page Builder for Blocks & Patterns7247433k+badly named files
#3144Shipping Rate By Cities72421700Direct Query
#3145Templ Optimizer726631k+Direct Query
#3146Starter Templates & Sites Pack by ThemeGrill72285170k+Non-prefixed hook name
#3147TinyPNG – JPEG, PNG & WebP image compression724073100k+Non-prefixed global variable
#3148Ultimate Member Custom Tab Builder Lite721215500Output is not escaped
#3149Place Order Without Payment for WooCommerce72244623k+Text Domain Mismatch
#3150Direct Checkout for WooCommerce72773580k+Text Domain Mismatch