WordPress.DB.DirectDatabaseQuery.DirectQuery

Direct Query

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
#1401Post Grid, Slider & Carousel Ultimate – with Shortcode, Gutenberg Block & Elementor Widget302311021k+Non Singular String Literal Domain
#1402Sync Master Sheet – Product Sync with Google Sheet for WooCommerce30136300400Non-prefixed global variable
#1403Pubjet | پاب‌جت30911721k+Output is not escaped
#1404QA Assistants – Driven by data3048672k+Non-prefixed global variable
#1405Real Cookie Banner: GDPR & ePrivacy Cookie Consent309496100k+Database parameter is not escaped
#1406Responsive Addons for Elementor – Free Elementor Addons, Kits and Elementor Templates30603873k+Non-prefixed global variable
#1407Rublon Multi-Factor Authentication (MFA)30216160400Output is not escaped
#1408SmartCrawl SEO checker, analyzer & optimizer303471,30720k+Non-prefixed global variable
#1409SMTP for Amazon SES – YaySMTP301971223k+Exception output is not escaped
#1410Subscriptions for WooCommerce3011,19010k+Non-prefixed global variable
#1411Taboola30891471k+Output is not escaped
#1412User Avatar – Reloaded30352171900Text Domain Mismatch
#1413User Role by BestWebSoft – Add and Customize Roles and Capabilities in WordPress304842803k+Text Domain Mismatch
#1414Waitlist Woocommerce ( Back in stock notifier )302723114k+Output is not escaped
#1415Checkout with Cash App on WooCommerce301223082k+Non-prefixed global variable
#1416Dropify301302522k+Nonce verification recommended
#1417Webling30147313500Input is not validated
#1418FOX – Currency Switcher Professional for WooCommerce302111,02250k+Non-prefixed global variable
#1419WooCommerce Stripe Payment Gateway30173591700k+Non-prefixed hook name
#1420WooPayments: Integrated WooCommerce Payments30182308900k+Exception output is not escaped
#1421WCPOS – Point of Sale (POS) plugin for WooCommerce30772285k+Nonce verification recommended
#1422WooCommerce Tax (formerly WooCommerce Shipping & Tax)30103198600k+Non-prefixed class
#1423WP Docs302682711k+Output is not escaped
#1424WP Event Aggregator: Import Eventbrite events, Meetup events, social events and any iCal Events into Event Calendar301134191k+Non-prefixed global variable
#1425remarketable3028193600Output is not escaped
#1426WP Inventory Manager308562331k+Output is not escaped
#1427WP Mail SMTP by WPForms – The Most Popular SMTP and Email Log Plugin30323464m+Non-prefixed hook name
#1428Photo Gallery Slideshow & Masonry Tiled Gallery308063521k+Output is not escaped
#1429WP Restaurant Price List3029595500Text Domain Mismatch
#1430WPOrLogin – Custom Login, Social Login, Limit Attempts, Hide Login & reCAPTCHA304842222k+Unsafe printing function
#1431WPS Cleaner3043049120k+Output is not escaped
#1432YayPricing – WooCommerce Dynamic Pricing & Discounts301741863k+Non-prefixed global variable
#1433YASR – Yet Another Star Rating Plugin for WordPress3025237810k+Output is not escaped
#1434YITH Pre-Order for WooCommerce303971,4646k+Non-prefixed global variable
#1435YITH WooCommerce Popup303951,5512k+Non-prefixed global variable
#1436YITH WooCommerce Product Slider Carousel303891,4794k+Non-prefixed global variable
#1437Zoho CRM Lead Magnet301011,0253k+Request data is not unslashed
#1438Extra Product Options Builder for WooCommerce311131942k+Non-prefixed global variable
#1439Advanced Category Excluder31349160700Output is not escaped
#1440Advanced Woo Search – Product Search for WooCommerce3122937770k+Nonce verification recommended
#1441AI Copilot – Content Generator311591631k+wp function not compatible with requires wp
#1442All-in-one contact buttons – WPSHARE247311081134k+Non-prefixed global variable
#1443Titan Anti-spam & Security – Brute Force Protection, 2FA & Spam Filter315719650k+Nonce verification recommended
#1444APCu Manager3115313610k+Output is not escaped
#1445Asgaros Forum3116741210k+Output is not escaped
#1446The SEO Framework – Fast, Automated, Effortless.31363609200k+Non-prefixed global variable
#1447AI ChatBot with ChatGPT and Content Generator by AYS31170378400Non-prefixed global variable
#1448SEO合集(支持百度/Google/Bing/头条推送)31131,407800Direct Query
#1449Яндекс Доставка (Boxberry)3146150600Missing nonce verification
#1450Buy Me a Coffee – Button and Widget Plugin311381406k+Output is not escaped