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
#2251Multiple Featured Images4050225k+Output is not escaped
#2252Page Comments Off Please4017291k+Nonce verification recommended
#2253Plugin Load Filter40761127k+Text Domain Mismatch
#2254Requirements Checklist4020022900Output is not escaped
#2255Private Google Calendars40227371k+Output is not escaped
#2256Quiz Cat – WordPress Quiz Plugin40151695k+Output is not escaped
#2257Random Banner40591251k+Output is not escaped
#2258Redirector4048327k+Output is not escaped
#2259Responsive Plus – Elementor Templates & Starter Sites404630510k+Non-prefixed global variable
#2260REST API Custom Fields404416800Text Domain Mismatch
#2261Role Based Redirect4020962k+Non-prefixed global variable
#2262Sales Tax Reports For WooCommerce405065900Output is not escaped
#2263Multipage407228900Unsafe printing function
#2264Shortcodes Finder40221884k+Nonce verification recommended
#2265Show Pages URL List40292341k+Non-prefixed global variable
#2266Simple Statistics for Feeds4064131800Nonce verification recommended
#2267Simple Page Sidebars40556520k+Output is not escaped
#2268Statify Widget4052134k+Output is not escaped
#2269StifLi Flex MCP – MCP Server with undo for ChatGPT, Claude & Gemini4071111k+Interpolated SQL is not prepared
#2270Thin Out Revisions409335800Non Singular String Literal Domain
#2271Track Geolocation Of Users Using Contact Form 74017173900Nonce verification recommended
#2272Visibility Control for LearnDash4055231k+Missing Arg Domain
#2273Visibility Control for LearnPress405219700Missing Arg Domain
#2274WC Search Orders By Product404766800Nonce verification recommended
#2275Payment Gateway – nexi Alpha Bank for WooCommerce4028451k+Missing nonce verification
#2276Total Sales Counts for WooCommerce4012162700SQL query is not prepared
#2277Word Balloon402012510k+Request data is not unslashed
#2278WP All Import – Job Listing Import for WP Job Manager4035272k+Output is not escaped
#2279Media Library Categories40294920k+Output is not escaped
#2280WP Multisite Content Copier/Updater4019144800Interpolated SQL is not prepared
#2281WP Reroute Email401411061k+Output is not escaped
#2282WPFront Notification Bar402224450k+Output is not escaped
#2283WPS Menu Exporter40472210k+Output is not escaped
#2284Yektanet Ecommerce4045103900Request data is not unslashed
#2285My YouTube Channel4054385k+Output is not escaped
#2286Zippy4043319k+Output is not escaped
#2287AMP for WP – Accelerated Mobile Pages416562,40180k+Non-prefixed global variable
#2288Alma – Pay in installments or later for WooCommerce41116681k+Exception output is not escaped
#2289Authenticator4159441k+Output is not escaped
#2290Auto Focus Keyword for SEO4112382k+Input is not validated
#2291Auto Image Attributes From Filename With Bulk Updater (Add Alt Text, Image Title For Image SEO)4117526100k+Unsafe printing function
#2292Beautiful Cookie Consent Banner41337640k+Non-prefixed global variable
#2293BuddyPress Xprofile Custom Field Types41391894k+Missing nonce verification
#2294Custom Post Type Cleanup4170121k+Output is not escaped
#2295Database for CF74137322k+Text Domain Mismatch
#2296DevVN Local Store4184281k+Unsafe printing function
#2297Disable Everything41901630k+Output is not escaped
#2298Duplicate Post Page Menu & Custom Post Type41351110k+Text Domain Mismatch
#2299Duplicate Page and Post41262180k+Unsafe printing function
#2300Multiple Themes411124110k+Output is not escaped