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

RankPluginScoreErrorsWarningsInstallsUpdatedTop Issue
#2301Simple Spoiler95182k+Non Prefixed Variable Found
#2302LiveChat – Live Chat Plugin for WP Websites9562910k+Text Domain Mismatch
#2303WPGlobus for WPBakery Visual Composer95472k+trademarked term
#2304Yoast Test Helper9524360k+Direct Query
#2305Transient Cleaner963641k+Non Prefixed Variable Found
#2306Bulk Datetime Change963186k+Non Prefixed Variable Found
#2307Disable Media Pages9681010k+Missing Translators Comment
#2308Edit Custom Fields9610192k+Direct Query
#2309Fixed Bottom Menu9615455k+Non Prefixed Hookname Found
#2310GenerateBlocks961010200k+file system operations is writable
#2311VK Dynamic If Block96863k+date date
#2312Custom Product tabs for WooCommerce9625610k+wp function not compatible with requires wp
#2313Display Eventbrite Events96313k+error log print r
#2314Variation Images Gallery for WooCommerce968710k+Non Prefixed Variable Found
#2315WP Job Manager – Company Profiles963102k+trademarked term
#2316Base (formerly BaseLinker) – 300+ marketplaces, 150+ carriers & PIM & OMS & WMS in one972164k+Direct Query
#2317Disable New User Notification Emails97264k+Non Prefixed Hookname Found
#2318Organize Media Folder973352k+Direct Query
#2319Simple Blog Card976183k+Non Prefixed Variable Found
#2320Simple Content Templates for Blog Posts & Pages97581k+Direct Query
#2321Surfer – WordPress Plugin971256k+Direct Query
#2322SVG Support971271m+Non Prefixed Variable Found
#2323Remote Website Management by Watchful974124k+Direct Query
#2324WPMR Google Feed Manager for WooCommerce – Sell on Google Merchant Center & Shopping971710k+trademarked term
#2325WPC Product Size Chart for WooCommerce97192k+Non Prefixed Class Found
#2326Broken Link Checker by AIOSEO – Find & Fix Broken Internal, External & Video Links98115300k+Non Prefixed Variable Found
#2327Disable Generate Thumbnails981146k+Non Prefixed Variable Found
#2328Easyship WooCommerce Shipping Rates981162k+Direct Query
#2329HBAgency981169k+Non Prefixed Variable Found
#2330Local Fonts Uploader – Upload & Host Any Font Locally for GDPR981104k+Direct Query
#2331Mime Types Plus9811210k+Non Prefixed Variable Found
#2332Plus WebP or AVIF98245k+Non Prefixed Variable Found
#2333Trust Badges98141k+Direct Query
#2334WP Database Reset981105k+Direct Query
#2335Machete9977k+Direct Query
#2336Statify Filter9962k+Direct Query
#2337VS Meta Description99133k+Direct Query