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

RankPluginScoreErrorsWarningsInstallsUpdatedTop Issue
#951MapPress Maps for WordPress3269413330k+Missing Arg Domain
#952WP Mobile Menu – The Mobile-Friendly Responsive Menu3299019580k+Output Not Escaped
#953Popup Builder & Popup Maker for WordPress – OptinMonster Email Marketing and Lead Generation32462411m+Text Domain Mismatch
#954Organization chart321873345k+Not Prepared
#955Pagination by BestWebSoft – Customizable WordPress Content Splitter and Navigation Plugin324461735k+Text Domain Mismatch
#956DEPRECATED – Shipmondo – A complete shipping solution for WooCommerce321661195k+Output Not Escaped
#957گرویتی فرم فارسی3219017420k+Text Domain Mismatch
#958Plugin Organizer3232625710k+Output Not Escaped
#959TS Poll – Survey, Versus Poll, Image Poll, Video Poll325701714k+Text Domain Mismatch
#960Payment Plugins for PayPal WooCommerce3221412590k+Missing Translators Comment
#961Quick Featured Images3243632350k+Non Prefixed Variable Found
#962Relevanssi – A Better Search3286266100k+missing direct file access protection
#963Revolut Gateway for WooCommerce32851576k+Input Not Sanitized
#964RSS for Yandex Turbo3268730720k+Unsafe Printing Function
#965Page Builder by SiteOrigin32224212500k+Output Not Escaped
#966Split Test For Elementor32981323k+Non Prefixed Variable Found
#967Subscribe2 – Form, Email Subscribers & Newsletters323241010k+Direct Query
#968Thrive Automator32848410k+Not Prepared
#969Ultimate Store Kit – Addon For WooCommerce, EDD and Elementor32572934k+Post Not In exclude
#970Unbounce Landing Pages321698610k+Output Not Escaped
#971WebwinkelKeur: Webshop keurmerk & reviews for WordPress32200474k+Echo Found
#972BEAR – Bulk Editor and Products Manager Professional for WooCommerce by Pluginus.Net32593340k+Non Prefixed Variable Found
#973wp-jalali322196610k+Text Domain Mismatch
#974SEOPress – AI SEO Plugin & On-site SEO32138429300k+Non Prefixed Variable Found
#975WP-Stats322371262k+Output Not Escaped
#976Privacy Policy Generator – WPLP Legal Pages322639610k+Non Prefixed Variable Found
#977YITH Infinite Scrolling323871,41710k+Non Prefixed Variable Found
#978YITH WooCommerce Badge Management324131,44610k+Non Prefixed Variable Found
#979YITH WooCommerce Compare324221,508100k+Non Prefixed Variable Found
#980YITH WooCommerce Quick View323881,42090k+Non Prefixed Variable Found
#981Advanced Forms for ACF331692783k+Non Prefixed Hookname Found
#982Auto Listings – Car Listings & Car Dealership Plugin for WordPress33803212k+Non Prefixed Variable Found
#983Premium Portfolio Features for Phlox theme3320413740k+Output Not Escaped
#984AWeber – Free Sign Up Form and Landing Page Builder Plugin for Lead Generation and Email Newsletter Growth33332299k+Non Prefixed Variable Found
#985Nexi XPay334962776k+Text Domain Mismatch
#986Chartify – WordPress Chart Plugin33764113k+Non Prefixed Variable Found
#987Clicky Analytics331669210k+Output Not Escaped
#988Companion Auto Update3315929850k+Direct Query
#989Companion Sitemap Generator – Simple, Smart, and SEO-Ready33118577k+Missing Translators Comment
#990Cooked – Recipe Management334122713k+Output Not Escaped
#991Gallery Custom Links33646230k+Non Singular String Literal Domain
#992GDPR Cookie Compliance – Cookie Banner, Cookie Consent, Cookie Notice for CCPA, EU Cookie Law3348370300k+Non Prefixed Variable Found
#993Flipbox – Awesomes Flip Boxes Image Overlay334007,27910k+Input Not Validated
#994ThumbPress – Compress Images, Manage Thumbnails, Detect Image Issues, WebP/AVIF, Lazy Loading, Hotlinking & More3310128930k+Non Prefixed Variable Found
#995Image Source Control Lite – Show Image Credits and Captions331402213k+Non Prefixed Hookname Found
#996WPZOOM Social Feed Widget & Block3331027860k+Unsafe Printing Function
#997Intagrate Lite33941524k+date date
#998ITRO Popup Plugin335911356k+Output Not Escaped
#999Logo Showcase Ultimate – Logo Carousel, Logo Slider & Logo Grid332741063k+Text Domain Mismatch
#1000LWSCache33471046k+Non Prefixed Variable Found