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
#3151Bing URL Submissions Plugin74103840k+error log error log
#3152BP xProfile Location74724600Missing nonce verification
#3153Duplicate Taxonomy Term74952k+Nonce verification recommended
#3154ELEX WooCommerce USPS Shipping Method7413945900Text Domain Mismatch
#3155EmailKit – Email Customizer for WooCommerce & WP74178270k+slow db query meta query
#3156Fast Speed Index74912500Direct Query
#3157Free Shipping Label and Progress Bar for WooCommerce74605k+Non-prefixed hook name
#3158WowOptin: Next-Gen Popup Maker – Create Stunning Popups and Optins for Lead Generation743601k+Database parameter is not escaped
#3159Plugin Notes Plus742429k+Non-prefixed hook name
#3160Post My CF7 Form74211682k+Non-prefixed global variable
#3161Product Layouts for WooCommerce745751k+Direct Query
#3162Email Deliverability – SMTP Replacement, Email API Deliverability & Email Log74823200k+Output is not escaped
#3163Change Storefront Footer Copyright Text7471214k+Text Domain Mismatch
#3164WP-Sweep741201100k+Direct Query
#3165Bulk Comments Management75625700Direct Query
#3166Cognito Forms751342k+wp function not compatible with requires wp
#3167Easy Accordion – AI-Powered FAQ & Accordion Blocks, Product FAQ7530680k+Non-prefixed global variable
#3168FlowForms – Conversational Form Builder7517400Nonce verification recommended
#3169FluentPlayer – Video Player With Forms & Lead Capture7510401k+Database parameter is not escaped
#3170Force First and Last Name as Display Name755122k+Missing nonce verification
#3171Intuitive Custom Post Order751996400k+Direct Query
#3172Invoice Gateway for WooCommerce – Invoice Payment Gateway753302k+Nonce verification recommended
#3173Open Graph Protocol Framework7517123k+Missing direct file access protection
#3174PopupAlly7540102k+Missing direct file access protection
#3175Post Type Switcher75318200k+Direct Query
#3176Matterport Shortcode7521303k+Text Domain Mismatch
#3177Simple Taxonomy Ordering7571010k+Direct Query
#3178Ukrposhta7524226500Non-prefixed global variable
#3179WPSSO WP Sitemaps XML with News, Image, and Video Sitemap756024400Missing Translators Comment
#3180Addonify – WooCommerce Wishlist7630431k+Non-prefixed global variable
#3181Autocomplete WooCommerce Orders76705530k+Text Domain Mismatch
#3182CiviCRM Member Sync76870800Non-prefixed global variable
#3183Clear Cache Everywhere76717600Nonce verification recommended
#3184FileBird Document Library7623135k+Text Domain Mismatch
#3185Leo Product Recommendations for WooCommerce76379400Short URL found
#3186RS Template Builder For Elementor – Complete Control Over Headers, Footers & More7611561k+Post Not In exclude
#3187Search Regex76625100k+Direct Query
#3188StoreAgent – WooCommerce AI Chatbot & AI Content Tools76202400Non-prefixed global variable
#3189Category Order and Taxonomy Terms Order763510500k+wp function not compatible with requires wp
#3190UTM Event Tracker and Analytics, UTM Grabber76219900Interpolated SQL is not prepared
#3191WP API SwaggerUI7614142k+Missing direct file access protection
#3192WP AdCenter – Ad Manager & Adsense Ads765711k+Direct Query
#3193ACF Galerie 47716232k+Text Domain Mismatch
#3194Backup/Restore Divi Theme Options7788700Input is not validated
#3195Custom Fonts – Host Your Fonts Locally771420400k+Request data is not unslashed
#3196Dual Currency Display77124900Direct Query
#3197Index WP Users For Speed7710351k+Non-prefixed global variable
#3198Internet Archive Wayback Machine Link Fixer772221k+Database parameter is not escaped
#3199Photo & Video Gallery – Image, Video & Portfolio774101k+Missing Version
#3200Posts List7711157k+Non-prefixed hook name