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
#2601Flamingo4015228800k+Nonce verification recommended
#2602GetPaid > Item Inventory4011252400Text Domain Mismatch
#2603Product Enquiry for WooCommerce4057413k+Output is not escaped
#2604Hostinger Reach – AI-Powered Email Marketing for WordPress409461m+Direct Query
#2605Image Alt Text4079979k+Non Singular String Literal Domain
#2606iNext Woo Pincode Checker403682700Missing nonce verification
#2607Internal Linking of Related Contents40714471k+Output is not escaped
#2608Invite Anyone40321301k+Non-prefixed hook name
#2609JSM Show Order Metadata for WooCommerce HPOS401764700Nonce verification recommended
#2610JSM Show Post Metadata40156610k+Nonce verification recommended
#2611JSM Show Term Metadata401464900Nonce verification recommended
#2612JSM Show User Metadata4014643k+Nonce verification recommended
#2613La Sentinelle antispam4088463k+Output is not escaped
#2614Links shortcode407313900Unsafe printing function
#2615Listdomer Core404592500Non-prefixed global variable
#2616WP All Import – Listings Import for Listify403427400Output is not escaped
#2617LJ Multi Column Archive4017251k+Output is not escaped
#2618LLM Bot Tracker – AI Crawler Detection & Analytics401890700Database parameter is not escaped
#2619Logbook4033592k+Nonce verification recommended
#2620Mass Email To Users408481800Output is not escaped
#2621Modal Window – create popup modal window40417010k+Non-prefixed global variable
#2622Multiple Featured Images4050225k+Output is not escaped
#2623Customize My Account for WooCommerce – Custom Tabs, Login, Registration, 2FA & Design4077167800Non-prefixed global variable
#2624NextGEN Gallery Sidebar Widget405910600Output is not escaped
#2625Page Comments Off Please4017291k+Nonce verification recommended
#2626Paystack MemberPress407176400Output is not escaped
#2627Plugin Load Filter40761127k+Text Domain Mismatch
#2628Requirements Checklist4020022900Output is not escaped
#2629Private Google Calendars40227371k+Output is not escaped
#2630Quiz Cat – WordPress Quiz Plugin40151694k+Output is not escaped
#2631Random Banner40591251k+Output is not escaped
#2632Redirector4048327k+Output is not escaped
#2633Responsive Plus – Elementor Templates & Starter Sites404630510k+Non-prefixed global variable
#2634REST API Custom Fields404416800Text Domain Mismatch
#2635Role Based Redirect4020962k+Non-prefixed global variable
#2636Sales Tax Reports For WooCommerce405065900Output is not escaped
#2637Search Live4013271600Output is not escaped
#2638Select Post Export405118500Output is not escaped
#2639Serviceform Pixel401822400Output is not escaped
#2640Multipage407228900Unsafe printing function
#2641Shortcodes Finder40221884k+Nonce verification recommended
#2642Show Pages URL List40292341k+Non-prefixed global variable
#2643Simple Statistics for Feeds4064131800Nonce verification recommended
#2644Simple Page Sidebars40556520k+Output is not escaped
#2645Statify Widget4052134k+Output is not escaped
#2646Tealium407319700Unsafe printing function
#2647Thin Out Revisions409335800Non Singular String Literal Domain
#2648Timeline History403117500Output is not escaped
#2649Track Geolocation Of Users Using Contact Form 74017173900Nonce verification recommended
#2650Ultimate Member – ForumWP forum integration403173500Nonce verification recommended