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
#2151TopNewsWp – Display Tikcer News, RSS Feed Widget and Many More3787859800Output is not escaped
#2152WP VR – 360 Panorama and Virtual Tour Builder37327510k+Non-prefixed hook name
#2153XT Visitor Counter37177527k+Output is not escaped
#2154Yada Wiki37207452k+Text Domain Mismatch
#2155YOURLS Link Creator3719639500Text Domain Mismatch
#2156Zoho Marketing Automation37241941k+Non-prefixed global variable
#2157Accessibility3866611k+Non-prefixed global variable
#2158Action Scheduler389213420k+Exception output is not escaped
#2159Admin Management Xtended382801615k+Output is not escaped
#2160Advanced 301 and 302 Redirect38813391k+Non-prefixed global variable
#2161Anant Sites — Elementor & Gutenberg Readymade Template Library Free & Pro Templates38201561k+Non-prefixed global variable
#2162Activity Log – Monitor & Record User Changes3881149200k+Nonce verification recommended
#2163Ashe Extra38109543k+Text Domain Mismatch
#2164Autologin Links3873748k+Output is not escaped
#2165Automatic Post Tagger385923072k+Output is not escaped
#2166Blogger Importer38443950k+Output is not escaped
#2167Bot Block – Stop Spam Referrals in Google Analytics382842600Output is not escaped
#2168BuddyPress Follow38114671k+Text Domain Mismatch
#2169Bulk Auto Image Title Attribute (Image Title tag) optimizer (Image SEO)3856391k+Text Domain Mismatch
#2170CC Child Pages38631529k+Non-prefixed global variable
#2171Certificate Verification3833401k+Output is not escaped
#2172Database for Contact Form 738341287k+Missing nonce verification
#2173WPAppsDev – CF7 Form Submission Limit38104331k+Text Domain Mismatch
#2174Clever Mega Menu for Visual Composer38500871k+Output is not escaped
#2175Clever Mega Menu for Elementor38835441k+Output is not escaped
#2176CMS Tree Page View3813510450k+Output is not escaped
#2177CodePeople Post Map for Google Maps38240373k+Unsafe printing function
#2178Crop-Thumbnails38332740k+Missing direct file access protection
#2179CRUDLab Disable Comments382054700Missing nonce verification
#2180Custom Menu Wizard Widget38326302k+Output is not escaped
#2181Customize Posts3831771k+Non-prefixed hook name
#2182Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included)3838183600Non-prefixed global variable
#2183Datafeedr Comparison Sets38450533k+Output is not escaped
#2184Datafeedr WooCommerce Importer38112565k+Text Domain Mismatch
#2185Availability Datepicker – Booking Calendar for Contact Form 7 – Input WP383443020k+Text Domain Mismatch
#2186Decent Comments3893282k+Output is not escaped
#2187Product Badge, Label, Countdown Timer for WooCommerce – Sale Booster3837985k+Interpolated SQL is not prepared
#2188Easy WP Cleaner38581242k+Non-prefixed global variable
#2189Export User Data38187626k+Text Domain Mismatch
#2190Goal Tracker – Custom Event Tracking for GA438541252k+Output is not escaped
#2191GoDaddy Payments for WooCommerce3858652k+Output is not escaped
#2192GoodBarber3838731k+Nonce verification recommended
#2193GoUrl WooCommerce – Bitcoin Altcoin Payment Gateway Addon3827924600Non Singular String Literal Domain
#2194Great Caroussel3860131500SQL query is not prepared
#2195Greek Multi Tool – Greeklish Slugs, Permalinks & Transliteration38160821k+Unsafe printing function
#2196HashThemes Demo Importer3871446k+Output is not escaped
#2197Insert PHP Code Snippet3816422790k+Output is not escaped
#21983D FlipBook – PDF Embedder, PDF Flipbook Viewer, Flipbook Image Gallery383537780k+Non Singular String Literal Domain
#2199JC Submenu38279324k+Output is not escaped
#2200Maintenance Redirect3824413210k+Missing Arg Domain