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
#3451Manage – Centralized site maintenance and monitoring9554760k+Direct Query
#3452Mystery Themes Demo Importer95767k+Non-prefixed global variable
#3453Pixelavo – Server Side Tracking & Pixel + AI Ads Tools95122k+Direct Query
#3454Simple No Comments95781k+Direct Query
#3455Simple Spoiler95182k+Non-prefixed global variable
#3456Term Taxonomy Converter95573500Text Domain Mismatch
#3457LiveChat – Live Chat Plugin for WP Websites9562910k+Text Domain Mismatch
#3458WPGlobus for WPBakery Visual Composer95472k+trademarked term
#3459Yoast Test Helper9524360k+Direct Query
#3460Allow Numeric Slugs9652900Direct Query
#3461Transient Cleaner963641k+Non-prefixed global variable
#3462Bulk Datetime Change963186k+Non-prefixed global variable
#3463Reduce Unused CSS Solution with Critical CSS For WP9648121k+wp function not compatible with requires wp
#3464Delete Post with Attachments962151k+Direct Query
#3465Disable Media Pages9681010k+Missing Translators Comment
#3466Edit Custom Fields9610192k+Direct Query
#3467Fixed Bottom Menu9615455k+Non-prefixed hook name
#3468Reviewkit – Trustpilot Reviews Widget & Embed96428700Non-prefixed global variable
#3469PayPlus Payment Gateway96871k+Non-prefixed class
#3470Plugins Condition963301k+Non-prefixed global variable
#3471VK Dynamic If Block96863k+date date
#3472Custom Product tabs for WooCommerce9625610k+wp function not compatible with requires wp
#3473Display Eventbrite Events96313k+error log print r
#3474Variation Images Gallery for WooCommerce968710k+Non-prefixed global variable
#3475WP Job Manager – Company Profiles963102k+trademarked term
#3476Base (formerly BaseLinker) – 300+ marketplaces, 150+ carriers & PIM & OMS & WMS in one972164k+Direct Query
#3477Clean Login972136k+Non-prefixed hook name
#3478Disable New User Notification Emails97264k+Non-prefixed hook name
#3479Exif Caption97325600Non-prefixed global variable
#3480GenerateBlocks9798200k+file system operations is writable
#3481Geo to Lat97311500Direct Query
#3482Organize Media Folder973352k+Direct Query
#3483Page Management Dropdown9733600Direct Query
#3484Password bcrypt97412k+Direct Query
#3485Power Boost for Gravity Forms97710500wp function not compatible with requires wp
#3486Quform WPML9728700trademarked term
#3487Simple Blog Card976183k+Non-prefixed global variable
#3488Simple Content Templates for Blog Posts & Pages97581k+Direct Query
#3489Surfer – WordPress Plugin971256k+Direct Query
#3490SVG Support971271m+Non-prefixed global variable
#3491Remote Website Management by Watchful974123k+Direct Query
#3492WPMR Google Feed Manager for WooCommerce – Sell on Google Merchant Center & Shopping971710k+trademarked term
#3493WP REST Yoast Meta97281k+trademarked term
#3494WPC Product Size Chart for WooCommerce97192k+Non-prefixed class
#3495WPC Share Cart for WooCommerce97321k+Non-prefixed hook name
#3496ZIP from Media97416400Non-prefixed global variable
#3497BetterDocs – AI Documentation, Knowledge Base, Docs, Wikis, FAQ with Chatbot982830k+Direct Query
#3498Broken Link Checker by AIOSEO – Find & Fix Broken Internal, External & Video Links98115300k+Non-prefixed global variable
#3499Change Author Link Structure9815800Direct Query
#3500Disable Generate Thumbnails981146k+Non-prefixed global variable