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
#3351Vanilla PDF Embed85833k+parse url parse url
#3352Boxtal – Shipping solution863929k+Non-prefixed global variable
#3353Counters Block – Animated Number Counters, Stats & Dynamic KPIs865143k+Missing direct file access protection
#3354Getnet Argentina para WooCommerce86149500Text Domain Mismatch
#3355La Poste Pro Expéditions WooCommerce863951k+Non-prefixed global variable
#3356LWS Affiliation86823700Missing nonce verification
#3357Nice page transition864121k+Direct Query
#3358Delete product images for WooCommerce863131k+Direct Query
#3359PayPal Enterprise Payments (formerly Braintree) for WooCommerce8633310k+Direct Query
#3360Connect Contact Form 7 to Mailchimp, Brevo, MailerLite & Klaviyo874444240k+Text Domain Mismatch
#3361Enable Abilities for MCP87481k+Direct Query
#3362GTM Kit – Google Tag Manager & GA4 integration8751730k+Missing direct file access protection
#3363I Recommend This – Love/Like Button for WordPress Posts873495k+Direct Query
#3364Image Optimization – Compress Images and Convert to WebP or AVIF8715241m+Missing Translators Comment
#3365ImageKit – URL based image manipulation and optimization8747421k+Non-prefixed global variable
#3366Menu Caching87312500Request data is not unslashed
#3367Bulk Page Generator and Mass Page Builder – Page Generator8726874k+Non-prefixed global variable
#3368ParcelWILL (Formerly ParcelPanel) – Shipment Tracking, Tracking & Order Tracking for WooCommerce876817k+Non-prefixed global variable
#3369Snitch87519900Nonce verification recommended
#3370Variations as Single Product – Display Single Variation for WooCommerce878331k+Direct Query
#3371WP Missed Schedule Posts877910k+trademarked term
#3372CPO Content Types8813253k+Missing direct file access protection
#3373Hindi-To-Lat88314400Direct Query
#3374Include Me88774k+Short PHP open tag found
#3375Lightbox with PhotoSwipe8812420k+Non-prefixed global variable
#3376WPS Bookings for WooCommerce88262494k+Non-prefixed global variable
#3377SiteGround Email Marketing8818751k+Non-prefixed namespace
#3378Smart Blocks – WordPress Gutenberg Blocks8810761k+Post Not In post not in
#3379Ukr-To-Lat883135k+Direct Query
#3380User IP and Location882103k+Input is not sanitized
#3381Divi Carousel Free (Divi5 Support)882682630k+Text Domain Mismatch
#3382WPC Admin Columns88301k+Direct Query
#3383Archivarix External Images Importer898351k+Non-prefixed global variable
#3384Bit Flows: AI Agent Automation & Integrations for Forms, CRM, eCommerce, Google Sheets, and More8913202k+wp function not compatible with requires wp
#3385Custom Layouts – Post + Product grids made easy8923224k+Missing Translators Comment
#3386Location Add-on For Gravity Forms891816400Text Domain Mismatch
#3387Real Custom Post Order: Create a custom order for your content891198k+Non-prefixed global variable
#3388SiteLock Security – WP Hardening, Login Security & Malware Scans894491k+Text Domain Mismatch
#3389Statify89533100k+Direct Query
#3390Taxonomy Metadata89494k+Direct Query
#3391WP Featherlight Disabled895112k+trademarked term
#3392Disable User Login89120500Direct Query
#3393WPC Smart Notifications for WooCommerce8979600Non-prefixed global variable
#3394Beehive Analytics – Google Analytics Dashboard906112220k+Text Domain Mismatch
#3395Cimo – Free Instant Image Optimizer & WebP Converter90649k+Missing Translators Comment
#3396Compact Archives908142k+Non-prefixed function
#3397Disable Revisions90551k+Direct Query
#3398External files in Media Library901668400Direct Query
#3399Featured Image Admin Thumb9071020k+Non-prefixed hook name
#3400Hide Related Video Youtube90381k+Direct Query