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
#1451České služby pro WordPress31951391k+Output is not escaped
#1452cformsII317775364k+Unsafe printing function
#1453CleverReach® WP31103934k+Non-prefixed global variable
#1454Compliance by Hu-manity.co31153335900k+Missing nonce verification
#1455Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code3152513110k+Text Domain Mismatch
#1456MultiVendorX – WooCommerce Multivendor Marketplace AI Powered Solutions316642732k+Text Domain Mismatch
#1457DirectoryPress Frontend31402563800Non-prefixed global variable
#1458Domain Mapping System | Create Microsites with Multiple Alias Domains (multisite optional)311132332k+Non-prefixed namespace
#1459EnvoThemes Demo Import312211403k+Output is not escaped
#1460Export Order Items for WooCommerce311001081k+Text Domain Mismatch
#1461Express Checkout via PayPal for WooCommerce31158200800Nonce verification recommended
#1462افزونه پیامک حرفه ای فراز اس ام اس31891802k+wp function not compatible with requires wp
#1463FastDup – Fastest WordPress Migration & Duplicator3183665k+wp function not compatible with requires wp
#1464FraudLabs Pro for WooCommerce311692131k+Request data is not unslashed
#1465g-FFL Checkout31249300600Request data is not unslashed
#1466WP Gravity Forms Constant Contact Plugin31684164600Text Domain Mismatch
#1467GS Pinterest Portfolio – Pins Grid, Masonry, User Profile, Popup & Board Widgets314021561k+Text Domain Mismatch
#1468HT Easy GA4 – Google Analytics WordPress Plugin31475936k+Text Domain Mismatch
#1469Image Hotspot – Map Image Annotation31952873k+Non-prefixed global variable
#1470ImgSEO – AI Image Alt Text Generator & Image SEO Tools311677400Direct Query
#1471Interactive Image Map Builder311603811k+Non-prefixed global variable
#1472Linguise – AI Automatic Multilingual Translation31612841k+Non-prefixed global variable
#1473Keywords to Links Converter31288144700Text Domain Mismatch
#1474Login rebuilder3140622620k+Non Singular String Literal Domain
#1475LWS Tools3110413410k+Request data is not unslashed
#1476Melapress Login Security31692782k+Non-prefixed global variable
#1477Openpay Stores Plugin31121751k+Non-prefixed global variable
#1478Patreon WordPress312763393k+Output is not escaped
#1479افزونه پیامک ووکامرس Persian WooCommerce SMS317226940k+Nonce verification recommended
#1480Portfolio, Gallery, Product Catalog – Grid KIT Portfolio31613296k+Non-prefixed global variable
#1481Post Pay Counter316392381k+Output is not escaped
#1482Product Configurator for WooCommerce31415623k+Non-prefixed hook name
#1483Active Products Tables for WooCommerce. Use constructor to create tables313644241k+Output is not escaped
#1484Push notification for Mobile and Web app318783400Non Singular String Literal Domain
#1485Qi Blocks314634560k+Non-prefixed global variable
#1486Qode Essential Addons315529510k+Non-prefixed global variable
#1487Raffle Play Woocommerce31151199800Output is not escaped
#1488Re:amaze Helpdesk & Live Chat3196115400Output is not escaped
#1489Redirection31393232m+Direct Query
#1490Rank Math SEO – AI SEO Tools to Dominate SEO Rankings31453734m+Non-prefixed global variable
#1491Social Share Buttons314621561k+Text Domain Mismatch
#1492Simple calendar for Elementor31125270500Direct Query
#1493Page Builder by SiteOrigin31226214400k+Output is not escaped
#1494Slider Carousel – Image Slider312241,2333k+Request data is not unslashed
#1495Smart Keywords Tool – 智能关键词插件3136133600Non Singular String Literal Domain
#1496Staatic – Static Site Generator for WordPress314201952k+SQL query is not prepared
#1497Stackable – Page Builder Gutenberg Blocks3147790100k+Non Singular String Literal Domain
#1498WP Testimonials3118345510k+Non-prefixed global variable
#1499Tutor LMS Elementor Addons3122745330k+Non-prefixed global variable
#1500User Spam Remover31115141k+Output is not escaped