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
#3201Bing URL Submissions Plugin74103840k+error log error log
#3202BP xProfile Location74724600Missing nonce verification
#3203Duplicate Taxonomy Term74952k+Nonce verification recommended
#3204Edit Author Slug7458100k+Output is not escaped
#3205ELEX WooCommerce USPS Shipping Method7413945800Text Domain Mismatch
#3206EmailKit – Email Customizer for WooCommerce & WP74178270k+slow db query meta query
#3207Fast Speed Index74912500Direct Query
#3208Free Shipping Label and Progress Bar for WooCommerce74605k+Non-prefixed hook name
#3209Plugin Notes Plus742429k+Non-prefixed hook name
#3210Post My CF7 Form74211682k+Non-prefixed global variable
#3211Product Layouts for WooCommerce745751k+Direct Query
#3212Email Deliverability – SMTP Replacement, Email API Deliverability & Email Log74823200k+Output is not escaped
#3213Change Storefront Footer Copyright Text7471214k+Text Domain Mismatch
#3214WP API SwaggerUI7414202k+Missing direct file access protection
#3215WP-Sweep741201100k+Direct Query
#3216Zion Builder – Website Builder for Speed & Creativity744291k+Non-prefixed hook name
#3217Bulk Comments Management75625700Direct Query
#3218Cognito Forms751342k+wp function not compatible with requires wp
#3219Easy Accordion – AI-Powered FAQ & Accordion Blocks, Product FAQ7530670k+Non-prefixed global variable
#3220FlowForms – Conversational Form Builder7517400Nonce verification recommended
#3221FluentPlayer – Video Player With Forms & Lead Capture7510401k+Database parameter is not escaped
#3222Force First and Last Name as Display Name755122k+Missing nonce verification
#3223Intuitive Custom Post Order751996400k+Direct Query
#3224Invoice Gateway for WooCommerce – Invoice Payment Gateway753302k+Nonce verification recommended
#3225Open Graph Protocol Framework7517123k+Missing direct file access protection
#3226WowOptin: Next-Gen Popup Maker – Create Stunning Popups and Optins for Lead Generation752601k+Database parameter is not escaped
#3227PopupAlly7540102k+Missing direct file access protection
#3228Post Type Switcher75318200k+Direct Query
#3229Matterport Shortcode7521303k+Text Domain Mismatch
#3230Simple Taxonomy Ordering7571010k+Direct Query
#3231Ukrposhta7524226500Non-prefixed global variable
#3232WPSSO WP Sitemaps XML with News, Image, and Video Sitemap756024400Missing Translators Comment
#3233Addonify – WooCommerce Wishlist7630431k+Non-prefixed global variable
#3234Ajax Search Lite – Live Search & Filter7612626480k+Non-prefixed hook name
#3235Autocomplete WooCommerce Orders76705530k+Text Domain Mismatch
#3236Clear Cache Everywhere76717700Nonce verification recommended
#3237FileBird Document Library7623135k+Text Domain Mismatch
#3238FormGent – Next-Gen AI Form Builder for WordPress with Multi-Step, Quizzes, Payments & More76173331k+Non-prefixed global variable
#3239Leo Product Recommendations for WooCommerce76379400Short URL found
#3240RS Template Builder For Elementor – Complete Control Over Headers, Footers & More7611561k+Post Not In exclude
#3241Search Regex76625100k+Direct Query
#3242StoreAgent – WooCommerce AI Chatbot & AI Content Tools76202400Non-prefixed global variable
#3243Category Order and Taxonomy Terms Order763510500k+wp function not compatible with requires wp
#3244UTM Event Tracker and Analytics, UTM Grabber76219900Interpolated SQL is not prepared
#3245WEN Featured Image761183k+Input is not validated
#3246WP AdCenter – Ad Manager & Adsense Ads765711k+Direct Query
#3247ACF Galerie 47716232k+Text Domain Mismatch
#3248Backup/Restore Divi Theme Options7788700Input is not validated
#3249Custom Fonts – Host Your Fonts Locally771420400k+Request data is not unslashed
#3250Dual Currency Display77124900Direct Query