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
#3401WPGlobus for WPBakery Visual Composer95472k+trademarked term
#3402Yoast Test Helper9524360k+Direct Query
#3403Allow Numeric Slugs9652900Direct Query
#3404Transient Cleaner963641k+Non-prefixed global variable
#3405BetterDocs – AI Documentation, Knowledge Base, Docs, Wikis, FAQ with Chatbot9622730k+Non-prefixed global variable
#3406Bulk Datetime Change963186k+Non-prefixed global variable
#3407Reduce Unused CSS Solution with Critical CSS For WP9648121k+wp function not compatible with requires wp
#3408Delete Post with Attachments962151k+Direct Query
#3409Disable Media Pages9681010k+Missing Translators Comment
#3410Edit Custom Fields9610192k+Direct Query
#3411Fixed Bottom Menu9615455k+Non-prefixed hook name
#3412PayPlus Payment Gateway96871k+Non-prefixed class
#3413Plugins Condition963301k+Non-prefixed global variable
#3414PrettyLinks – Affiliate Link Management, URL Shortener, Link Cloaking, Tracking & Branded Short Links9614200k+Database parameter is not escaped
#3415VK Dynamic If Block96863k+date date
#3416Custom Product tabs for WooCommerce9625610k+wp function not compatible with requires wp
#3417Display Eventbrite Events96313k+error log print r
#3418Variation Images Gallery for WooCommerce968710k+Non-prefixed global variable
#3419WP Job Manager – Company Profiles963102k+trademarked term
#3420Base (formerly BaseLinker) – 300+ marketplaces, 150+ carriers & PIM & OMS & WMS in one972164k+Direct Query
#3421Disable New User Notification Emails97264k+Non-prefixed hook name
#3422Exif Caption97325600Non-prefixed global variable
#3423GenerateBlocks9798200k+file system operations is writable
#3424Geo to Lat97311500Direct Query
#3425Reviewkit – Trustpilot Reviews Widget & Embed97328700Non-prefixed global variable
#3426Organize Media Folder973352k+Direct Query
#3427Page Management Dropdown9733600Direct Query
#3428Quform WPML9728700trademarked term
#3429Simple Blog Card976183k+Non-prefixed global variable
#3430Simple Content Templates for Blog Posts & Pages97581k+Direct Query
#3431Surfer – WordPress Plugin971256k+Direct Query
#3432SVG Support971271m+Non-prefixed global variable
#3433Remote Website Management by Watchful974123k+Direct Query
#3434WPMR Google Feed Manager for WooCommerce – Sell on Google Merchant Center & Shopping971710k+trademarked term
#3435WP REST Yoast Meta97281k+trademarked term
#3436WPC Product Size Chart for WooCommerce97192k+Non-prefixed class
#3437WPC Share Cart for WooCommerce97321k+Non-prefixed hook name
#3438ZIP from Media97416400Non-prefixed global variable
#3439Broken Link Checker by AIOSEO – Find & Fix Broken Internal, External & Video Links98115300k+Non-prefixed global variable
#3440Change Author Link Structure9815800Direct Query
#3441Disable Generate Thumbnails981146k+Non-prefixed global variable
#3442Easyship WooCommerce Shipping Rates981162k+Direct Query
#3443HBAgency981169k+Non-prefixed global variable
#3444Local Fonts Uploader – Upload & Host Any Font Locally for GDPR981104k+Direct Query
#3445Mime Types Plus9811210k+Non-prefixed global variable
#3446Plus WebP or AVIF98245k+Non-prefixed global variable
#3447ProvenExpert98810900wp function not compatible with requires wp
#3448Swift Switcher — Bulk & Custom Post Type Converter9815600Direct Query
#3449Trust Badges98141k+Direct Query
#3450WP Database Reset981105k+Direct Query