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
#2651My YouTube Channel4054385k+Output is not escaped
#2652Zippy4043319k+Output is not escaped
#2653AMP for WP – Accelerated Mobile Pages416562,40180k+Non-prefixed global variable
#2654Alma – Pay in installments or later for WooCommerce41116681k+Exception output is not escaped
#2655Antispam411141400Missing nonce verification
#2656Authenticator4159441k+Output is not escaped
#2657Auto Focus Keyword for SEO4112382k+Input is not validated
#2658Auto Image Attributes From Filename With Bulk Updater (Add Alt Text, Image Title For Image SEO)4117526100k+Unsafe printing function
#2659Beautiful Cookie Consent Banner41337640k+Non-prefixed global variable
#2660BuddyPress Xprofile Custom Field Types41391894k+Missing nonce verification
#2661Bulk Auto Image Title Attribute (Image Title tag) optimizer (Image SEO)4116371k+Missing nonce verification
#2662Cache control by Cacholong418730500Non Singular String Literal Domain
#2663CMS Tree Page View – Reorder Pages with a Drag-and-Drop Tree411219650k+Unsafe printing function
#2664Custom Post Type Cleanup4170121k+Output is not escaped
#2665Database for CF74137322k+Text Domain Mismatch
#2666DevVN Local Store4184281k+Unsafe printing function
#2667Disable Everything41901630k+Output is not escaped
#2668Duplicate Post Page Menu & Custom Post Type41351110k+Text Domain Mismatch
#2669Duplicate Page and Post41262180k+Unsafe printing function
#2670SNORDIAN's H5PxAPIkatchu4111988500SQL query is not prepared
#2671Multiple Themes411124110k+Output is not escaped
#2672Log cleaner for Solid Security4165478k+Text Domain Mismatch
#2673Mobile Contact Bar41943610k+Unsafe printing function
#2674Mollie Forms41145653k+Request data is not unslashed
#2675Most Popular Categories41672600Output is not escaped
#2676Native Emoji4154375k+Unsafe printing function
#2677Social Login4181105k+Input is not sanitized
#2678Omnibus — show the lowest price41353710k+Output is not escaped
#2679Optimus – WordPress Image Optimizer41522030k+Unsafe printing function
#2680OSS Aliyun4119403k+Request data is not unslashed
#2681Page & Post Notes4112771k+Non-prefixed global variable
#2682Plugin Activation Tracker413624900Text Domain Mismatch
#2683Pods – Custom Content Types and Fields415233100k+Direct Query
#2684Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News4153720k+Non-prefixed global variable
#2685Posts 2 Posts41427310k+Non Singular String Literal Domain
#2686Product Expiry for WooCommerce4131852k+Request data is not unslashed
#2687Simple Product Options for WooCommerce4162413k+Output is not escaped
#2688ShinyStat Analytics4188251k+Output is not escaped
#2689Simple Google Photos Grid414821k+Output is not escaped
#2690Simple Lightbox412148100k+Nonce verification recommended
#2691Simple Page Access Restriction4166516k+Unsafe printing function
#2692Simple Revision Control4134431k+Dynamic hook name
#2693Smoove connector for Elementor forms412260600Nonce verification recommended
#2694Squeeze – Image Optimization & Compression, WEBP Conversion4120702k+Nonce verification recommended
#2695StifLi Flex MCP – MCP Server with undo for ChatGPT, Claude & Gemini4121111k+Interpolated SQL is not prepared
#2696Feedback Company416336800Output is not escaped
#2697Threat Scan Plugin412917400Output is not escaped
#2698Visibility Logic for Elementor41274330k+Output is not escaped
#2699Abandoned Cart Recovery for WooCommerce41202024k+Request data is not unslashed
#2700M-Pesa(Kenya) Checkout for Woocommerce4146381k+Text Domain Mismatch