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
#2601LLM Bot Tracker – AI Crawler Detection & Analytics401890700Database parameter is not escaped
#2602Logbook4033592k+Nonce verification recommended
#2603Mass Email To Users408481800Output is not escaped
#2604Modal Window – create popup modal window40417010k+Non-prefixed global variable
#2605Multiple Featured Images4050225k+Output is not escaped
#2606Customize My Account for WooCommerce – Custom Tabs, Login, Registration, 2FA & Design4077167800Non-prefixed global variable
#2607NextGEN Gallery Sidebar Widget405910600Output is not escaped
#2608Page Comments Off Please4017291k+Nonce verification recommended
#2609Paystack MemberPress407176400Output is not escaped
#2610Plugin Load Filter40761127k+Text Domain Mismatch
#2611Requirements Checklist4020022900Output is not escaped
#2612Private Google Calendars40227371k+Output is not escaped
#2613Quiz Cat – WordPress Quiz Plugin40151695k+Output is not escaped
#2614Random Banner40591251k+Output is not escaped
#2615Redirector4048327k+Output is not escaped
#2616Responsive Plus – Elementor Templates & Starter Sites404630510k+Non-prefixed global variable
#2617REST API Custom Fields404416800Text Domain Mismatch
#2618Role Based Redirect4020962k+Non-prefixed global variable
#2619Sales Tax Reports For WooCommerce405065900Output is not escaped
#2620Select Post Export405118500Output is not escaped
#2621Serviceform Pixel401822400Output is not escaped
#2622Multipage407228900Unsafe printing function
#2623Shortcodes Finder40221884k+Nonce verification recommended
#2624Show Pages URL List40292341k+Non-prefixed global variable
#2625Simple Statistics for Feeds4064131800Nonce verification recommended
#2626Simple Page Sidebars40556520k+Output is not escaped
#2627Statify Widget4052134k+Output is not escaped
#2628Tealium407319700Unsafe printing function
#2629Thin Out Revisions409335800Non Singular String Literal Domain
#2630Timeline History403117500Output is not escaped
#2631Track Geolocation Of Users Using Contact Form 74017173900Nonce verification recommended
#2632Ultimate Member – ForumWP forum integration403173500Nonce verification recommended
#2633UTM Leads Tracker – XLPlugins402138400Output is not escaped
#2634Visibility Control for LearnDash4055231k+Missing Arg Domain
#2635Visibility Control for LearnPress405219700Missing Arg Domain
#2636WC Search Orders By Product404766800Nonce verification recommended
#2637Payment Gateway – nexi Alpha Bank for WooCommerce4028451k+Missing nonce verification
#2638Total Sales Counts for WooCommerce4012162700SQL query is not prepared
#2639Word Balloon402012510k+Request data is not unslashed
#2640WP Discord Invite407342400Unsafe printing function
#2641WP All Import – Job Listing Import for WP Job Manager4035272k+Output is not escaped
#2642Media Library Categories40294920k+Output is not escaped
#2643WP Multisite Content Copier/Updater4019144800Interpolated SQL is not prepared
#2644WP Reroute Email401411061k+Output is not escaped
#2645WPC Force Sells for WooCommerce403897600Output is not escaped
#2646WPC Smart Price Filter for WooCommerce402362600Nonce verification recommended
#2647WPFront Notification Bar402224450k+Output is not escaped
#2648WPS Menu Exporter40472210k+Output is not escaped
#2649Yektanet Ecommerce40451031k+Request data is not unslashed
#2650My YouTube Channel4054385k+Output is not escaped