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
#2701WPC Product Bundles for WooCommerce412314130k+Request data is not unslashed
#2702Country Based Restrictions for WooCommerce4127675k+Request data is not unslashed
#2703WP Lorem ipsum413729500Unsafe printing function
#2704WP Media folders4119743k+Direct Query
#2705WP Test Email41322820k+Unsafe printing function
#2706WPS Hide Login4134722m+Nonce verification recommended
#2707Agoda Affiliate Partners Text Link Generator42440500Interpolated SQL is not prepared
#2708Post Grid Master — Post Grids & AJAX Filters42441151k+Non-prefixed global variable
#2709BP Auto Group Join425555700Output is not escaped
#2710Comment Reply Email422123500Unsafe printing function
#2711Companion Revision Manager – Revision Control4218284k+Unsafe printing function
#2712Custom Admin Page by BestWebSoft – Configurable WordPress Dashboard Pages Plugin42472181400Text Domain Mismatch
#2713Custom Fields for Gutenberg4224241k+Output is not escaped
#2714Custom Taxonomy Order42205650k+Output is not escaped
#2715Delete Expired Transients4249655k+Direct Query
#2716Enable Classic Editor & Widgets4210663k+Non Singular String Literal Domain
#2717Etsy Shop4258213k+Unsafe printing function
#2718Exclude Pages42311430k+Non Singular String Literal Domain
#2719FormCraft – Form Builder421861562k+Text Domain Mismatch
#2720Gelato Integration for WooCommerce4236325k+Output is not escaped
#2721Geo Blocker – Control Site Access by Region and IP421064900Direct Query
#2722Hide Cart Functions4212503k+Nonce verification recommended
#2723Image Uploader for Welcart4227243k+Output is not escaped
#2724WP All Import – Import SEO Settings for Rank Math SEO4218447k+Nonce verification recommended
#2725LeadSnap4214841k+Input is not validated
#2726Manage User Columns4215271k+Request data is not unslashed
#2727Mass Delete Unused Tags42219900Output is not escaped
#2728Nav Menu Collapse4217393k+Missing nonce verification
#2729PDF Thumbnail Generator4226162k+Output is not escaped
#2730Post Types Order424543600k+wp function not compatible with requires wp
#2731WP Email Log – PostBox42281700Nonce verification recommended
#2732Product Price History for WooCommerce42101800Nonce verification recommended
#2733Proxy & VPN Blocker4210721k+Nonce verification recommended
#2734Rename wp-admin login4223388k+Output is not escaped
#2735Republish Old Posts4283242k+Output is not escaped
#2736Reusable Blocks Extended42381520k+Output is not escaped
#2737Secure Passkeys42146761k+Exception output is not escaped
#2738Sendcloud Shipping4278565k+Output is not escaped
#2739Set All First Images As Featured424413700Text Domain Mismatch
#2740Simple Googlebot Visit4232671k+Non Singular String Literal Domain
#2741Speed Contact Bar4253205k+Output is not escaped
#2742Starter Sites4262251k+Output is not escaped
#2743Transients Manager42455020k+Output is not escaped
#2744Ultimate Category Excluder42222650k+Missing nonce verification
#2745Ultimate Coming Soon Page, Maintenance Mode & Under Construction – Gutenberg Block Builder & Landing Page4215899k+Non-prefixed global variable
#2746WC Price History4218214k+Database parameter is not escaped
#2747Auto Coupons for WooCommerce4281684k+Output is not escaped
#2748WPC Order Notes for WooCommerce422441900Output is not escaped
#2749WP Author Security424013500Output is not escaped
#2750WP Before After Image Slider – Interactive Image and Video Comparison Plugin for WordPress42112171k+Text Domain Mismatch