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
#1901Easy Dash for LearnDash3562388800Text Domain Mismatch
#1902Easy Post Types and Fields351381351k+Text Domain Mismatch
#1903Product Bundle Builder for WooCommerce351561346k+Text Domain Mismatch
#1904Easy Social Icons3518215820k+Output is not escaped
#1905Ele Conditions for Elementor35274k+Request data is not unslashed
#1906Elementor Website Builder – more than just a page builder354642810m+Non-prefixed global variable
#1907Elements Hive for Breakdance3576251k+Output is not escaped
#1908Email Subscription Popup — Newsletter & GDPR Consent356831931k+Output is not escaped
#1909Email Validator for Contact Form 73511174500SQL query is not prepared
#1910Embed Extended – Embed Maps, Videos, Websites, Source Codes, and more3510292400Non-prefixed global variable
#1911EnvíaloSimple: Email Marketing y Newsletters351472502k+Nonce verification recommended
#1912Equivalent Mobile Redirect3529172k+Text Domain Mismatch
#1913EWWW Image Optimizer352257291m+Direct Query
#1914Expire User Passwords353153k+Nonce verification recommended
#1915Export Featured Images35176671k+Output is not escaped
#1916Extendify35117168500k+Non-prefixed global variable
#1917External Links Overview3557200800Non-prefixed global variable
#1918WP2Social Auto Publish356432159k+Unsafe printing function
#1919Flexible Subscriptions35462491k+Non-prefixed global variable
#1920Force Regenerate Thumbnails351217200k+unlink unlink
#1921Full Width Banner Slider Wp352391402k+Output is not escaped
#1922Video Gallery – YouTube Gallery, Vimeo, Video Portfolio, Image Portfolio and Image Gallery355019910k+Non-prefixed global variable
#1923GD bbPress Attachments352106k+wp redirect wp redirect
#1924GDPR Compliance & Cookie Consent35251615k+Output is not escaped
#1925GeoTargeting Lite – WordPress Geolocation3566791k+Output is not escaped
#1926Glossary35169932k+Non Singular String Literal Domain
#1927Google Analytics Opt-Out353475k+Output is not escaped
#1928Gravitec.net – Web Push Notifications3547521k+wp function not compatible with requires wp
#1929Ultimate Addons for Elementor35702262m+Non-prefixed hook name
#1930Health Check & Troubleshooting35264238300k+Missing Arg Domain
#1931Social Comments by Heateor3528535700Unsafe printing function
#1932Hippoo Mobile App for WooCommerce355921k+Direct Query
#1933HivePress – Business Directory, Listings & Classified Ads Plugin353818010k+Direct Query
#1934HookMeUp for WooCommerce35592910k+Output is not escaped
#1935Hyve Lite – AI Chatbot, ChatGPT-Powered Conversational Support351407k+Direct Query
#1936ImageMagick Engine35632960k+Unsafe printing function
#1937Import Users & Customers with Meta | WP Ultimate CSV Importer Add-on35271405k+Interpolated SQL is not prepared
#1938Imsanity353229200k+Direct Query
#1939InPost PL35292510k+Non-prefixed global variable
#1940Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts35649160k+Output is not escaped
#1941Social Feed Gallery351045280k+Text Domain Mismatch
#1942Instapage Plugin35220455k+Output is not escaped
#1943IntenseDebate Comments35203114500Output is not escaped
#1944IP Based Login35179146600Output is not escaped
#1945iPages – FlipBook Image & PDF Viewer354671772k+Text Domain Mismatch
#1946Jarvis351019500Input is not validated
#1947Static Site Exporter355425500file system operations mkdir
#1948JWT Auth – WordPress JSON Web Token Authentication3514186k+Output is not escaped
#1949KBoard 위젯 – 워드프레스 게시판3553323k+Output is not escaped
#1950Kirki – Freeform Page Builder, Website Builder & Customizer351773500k+Nonce verification recommended