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
#1601Snippet Shortcodes373591334k+Non Singular String Literal Domain
#1602Tracking Code Manager37554290k+Output is not escaped
#1603Tracking Script Manager3782572k+Non Singular String Literal Domain
#1604Ultimate WordPress Auction Plugin376231461k+Text Domain Mismatch
#1605UsersWP – Social Login37299912k+Text Domain Mismatch
#1606Featured Video for WordPress – VideographyWP37287931k+Unsafe printing function
#1607Views for WPForms – Display & Edit WPForms Entries on your site frontend3780641k+Output is not escaped
#1608Weather Atlas Widget376301119k+Output is not escaped
#1609Affiliate Sales in Google Analytics and other tools3724841k+Request data is not unslashed
#1610Conditional Discounts for WooCommerce – A simple yet complete woocommerce dynamic pricing plugin37993310k+Text Domain Mismatch
#1611Piraeus Bank WooCommerce Payment Gateway371461043k+Non Singular String Literal Domain
#1612Viva Payments – Viva Wallet WooCommerce Payment Gateway3733331k+curl curl setopt
#1613Variation Swatches for WooCommerce379210310k+Output is not escaped
#1614Xendit Payment3731973k+Missing nonce verification
#1615Amazon Pay for WooCommerce372911720k+Non-prefixed class
#1616WP WooCommerce Mailchimp3762856k+Non-prefixed hook name
#1617WooCommerce PayPal Payments37179101800k+Exception output is not escaped
#1618Quickpay for WooCommerce3766564k+Nonce verification recommended
#1619Wordable – Export Google Docs to WordPress3747632k+Output is not escaped
#1620Hustle – Email Marketing, Lead Generation, Optins, Popups374,8745,94290k+Non-prefixed global variable
#1621Fix Media Library3753711k+Output is not escaped
#1622WP Category Permalink3775312k+Output is not escaped
#1623WP-Cron Control3754221k+Output is not escaped
#1624WPForce Logout – WordPress User Login Logout Management Plugin37567328k+Output is not escaped
#1625Persistent Login373381086k+Unsafe printing function
#1626Special Text Boxes3739422k+Direct Query
#1627WP VR – 360 Panorama and Virtual Tour Builder37327510k+Non-prefixed hook name
#1628XT Visitor Counter37177527k+Output is not escaped
#1629Yada Wiki37207452k+Text Domain Mismatch
#1630Zoho Marketing Automation37241941k+Non-prefixed global variable
#1631Accessibility3866611k+Non-prefixed global variable
#1632Action Scheduler389213420k+Exception output is not escaped
#1633Admin Management Xtended382801615k+Output is not escaped
#1634Activity Log – Monitor & Record User Changes3881149200k+Nonce verification recommended
#1635Ashe Extra38109543k+Text Domain Mismatch
#1636Autologin Links3873748k+Output is not escaped
#1637Automatic Post Tagger385923072k+Output is not escaped
#1638Blogger Importer38443950k+Output is not escaped
#1639BuddyPress Follow38114671k+Text Domain Mismatch
#1640CC Child Pages38631529k+Non-prefixed global variable
#1641Database for Contact Form 738341287k+Missing nonce verification
#1642WPAppsDev – CF7 Form Submission Limit38104331k+Text Domain Mismatch
#1643Clever Mega Menu for Elementor38835441k+Output is not escaped
#1644CMS Tree Page View3813510450k+Output is not escaped
#1645CodePeople Post Map for Google Maps38238423k+Unsafe printing function
#1646Crop-Thumbnails38332740k+Missing direct file access protection
#1647Custom Menu Wizard Widget38326303k+Output is not escaped
#1648Customize Posts3831771k+Non-prefixed hook name
#1649Datafeedr Comparison Sets38450533k+Output is not escaped
#1650Datafeedr WooCommerce Importer38112565k+Text Domain Mismatch