WordPress.DB.DirectDatabaseQuery.NoCaching

No Caching

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
#3301Enable Abilities for MCP87481k+Direct Query
#3302GTM Kit – Google Tag Manager & GA4 integration8751730k+Missing direct file access protection
#3303I Recommend This – Love/Like Button for WordPress Posts873495k+Direct Query
#3304Image Optimization – Compress Images and Convert to WebP or AVIF8715241m+Missing Translators Comment
#3305ImageKit – URL based image manipulation and optimization8747421k+Non-prefixed global variable
#3306Menu Caching87312500Request data is not unslashed
#3307Bulk Page Generator and Mass Page Builder – Page Generator8726874k+Non-prefixed global variable
#3308ParcelWILL (Formerly ParcelPanel) – Shipment Tracking, Tracking & Order Tracking for WooCommerce876817k+Non-prefixed global variable
#3309Recently Viewed Products for WooCommerce – Carousel, Widget, Block & Email872181k+Database parameter is not escaped
#3310Snitch87519900Nonce verification recommended
#3311Tickera – Sell Tickets & Manage Events877542k+Non-prefixed hook name
#3312Variations as Single Product – Display Single Variation for WooCommerce878331k+Direct Query
#3313WP Missed Schedule Posts877910k+trademarked term
#3314CPO Content Types8813253k+Missing direct file access protection
#3315Hindi-To-Lat88314400Direct Query
#3316Include Me88774k+Short PHP open tag found
#3317Lightbox with PhotoSwipe8812420k+Non-prefixed global variable
#3318WPS Bookings for WooCommerce88262494k+Non-prefixed global variable
#3319SiteGround Email Marketing8818751k+Non-prefixed namespace
#3320Smart Blocks – WordPress Gutenberg Blocks8810761k+Post Not In post not in
#3321Ukr-To-Lat883136k+Direct Query
#3322User IP and Location882103k+Input is not sanitized
#3323Divi Carousel Free (Divi5 Support)882682630k+Text Domain Mismatch
#3324WPC Admin Columns88301k+Direct Query
#3325Archivarix External Images Importer898351k+Non-prefixed global variable
#3326Bit Flows: AI Agent Automation & Integrations for Forms, CRM, eCommerce, Google Sheets, and More8913202k+wp function not compatible with requires wp
#3327Custom Layouts – Post + Product grids made easy8923224k+Missing Translators Comment
#3328Location Add-on For Gravity Forms891816400Text Domain Mismatch
#3329Real Custom Post Order: Create a custom order for your content891198k+Non-prefixed global variable
#3330SiteLock Security – WP Hardening, Login Security & Malware Scans894491k+Text Domain Mismatch
#3331Statify89533100k+Direct Query
#3332Taxonomy Metadata89494k+Direct Query
#3333WP Featherlight Disabled895112k+trademarked term
#3334Disable User Login89120500Direct Query
#3335WPC Smart Notifications for WooCommerce8979600Non-prefixed global variable
#3336Beehive Analytics – Google Analytics Dashboard906112220k+Text Domain Mismatch
#3337Cimo – Free Instant Image Optimizer & WebP Converter90648k+Missing Translators Comment
#3338Disable Revisions90551k+Direct Query
#3339External files in Media Library901668400Direct Query
#3340Featured Image Admin Thumb9071020k+Non-prefixed hook name
#3341Hide Related Video Youtube90381k+Direct Query
#3342HivePress Messages907107k+Direct Query
#3343HivePress Reviews905117k+Non-prefixed global variable
#3344Post Export Import with Media9034411k+Missing Translators Comment
#3345Rapid URL Indexer for WP – Index Websites in Google906281k+error log error log
#3346Slash Edit: Admin Shortcuts to Edit Posts and Pages Faster9033500Output is not escaped
#3347Three Column Screen Layout90581k+Direct Query
#3348WPC Smart Compare for WooCommerce902270k+Nonce verification recommended
#3349WPC Smart Quick View for WooCommerce902590k+Nonce verification recommended
#3350WP BrowserUpdate901171k+Missing Translators Comment