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
#2401Simple Expires383239500Non Singular String Literal Domain
#2402Simple Google Sitemap XML383882k+Output is not escaped
#2403Simple Visitor Counter384127700Output is not escaped
#2404SimpleShop3852511k+date date
#2405Slickplan Importer384058400Non-prefixed global variable
#2406Smart Maintenance Mode381371281k+Output is not escaped
#2407Social Icons38728310k+Output is not escaped
#2408Social Snap — Social Share Buttons & Click to Tweet38616910k+Direct Query
#2409SRS Simple Hits Counter3843988k+Output is not escaped
#2410Tag Manager – Header, Body And Footer389731920k+Non-prefixed global variable
#2411Templatiq383194900Non-prefixed hook name
#2412Variation Swatches for WooCommerce3845652k+Output is not escaped
#2413Broadcast38211071k+Direct Query
#2414Accessibility Tools & Alt Text Finder3836563k+Text Domain Mismatch
#2415TopList.cz381387400Output is not escaped
#2416Trackserver3817356400Input is not sanitized
#2417Plugin Name: Traffic Stats Widget Plugin3869107600Output is not escaped
#2418Trash Duplicate and 301 Redirect38131031k+Nonce verification recommended
#2419Ultimate Member Widgets for Elementor – Login Form, Register Form & User Directory3817110400Non-prefixed namespace
#2420Unconfirmed3820791k+Nonce verification recommended
#2421Vertical News Scroller38118605k+Output is not escaped
#2422VidShop – Shoppable Videos for WooCommerce38491441k+Database parameter is not escaped
#2423Visual Admin Customizer382051500Input is not sanitized
#2424Shipping Packages for WooCommerce – Dropship from multiple locations like AliExpress, eBay, Amazon, Etsy389426900Non Singular String Literal Domain
#2425Affiliate Sales in Google Analytics and other tools3823841k+Request data is not unslashed
#2426White Label – WordPress Custom Admin, Custom Login Page, and Custom Dashboard382053110k+Output is not escaped
#2427WishSuite – Wishlist for WooCommerce38761331k+Output is not escaped
#2428Products Coming Soon for WooCommerce3815162700Output is not escaped
#2429Wholesale for WooCommerce38541221k+Output is not escaped
#2430Connect WooCommerce Shop to ERP/CRM, Verifactu and EU/VAT Compliance38231041k+Direct Query
#2431WP 404 Auto Redirect to Similar Post381664830k+Text Domain Mismatch
#2432WP Accessibility Helper (WAH)38618810k+Missing direct file access protection
#2433WP-DraftsForFriends38141711k+Output is not escaped
#2434WP Media Categories3840103800Nonce verification recommended
#2435Native PHP Sessions38309210k+Direct Query
#2436Real-Time Post Statistics for WordPress3863681k+SQL query is not prepared
#2437WP-ServerInfo381625510k+Output is not escaped
#2438Responsive Vertical Icon Menu3818885700Output is not escaped
#2439ZeroBounce Email Verification & Validation38299162900Text Domain Mismatch
#2440Zoho Campaigns3831293k+Non-prefixed global variable
#2441Smart Custom 404 Error Page399044100k+Output is not escaped
#2442Ad Invalid Click Protector (AICP)39785710k+Text Domain Mismatch
#2443Add-on Gravity Forms – MailPoet 3393133600Output is not escaped
#2444Additional Order Filters for WooCommerce39792552k+Nonce verification recommended
#2445Advanced Woo Labels – Product Labels & Badges for WooCommerce3917112510k+Output is not escaped
#2446Affiliate Links – Link Cloaking and Management39231133k+Non-prefixed global variable
#2447Load More Anything3938735k+Output is not escaped
#2448Accessibility by AllAccessible39200822k+Unsafe printing function
#2449Alt Magic: AI Image Alt Text Generator for WP & Image Rename39611121k+Direct Query
#2450Andreani WooCommerce392186800Non-prefixed global variable