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
#701RSVP and Event Management243456243k+Direct Query
#702Screen Reader Accessibility – WCAG, Text-to-Speech & AI Accessibility Fixes24235330600Non-prefixed global variable
#703Security Plugin, Firewall & Malware Scanner with Auto Removal241,19176930k+Output is not escaped
#704SEO Engine – Smart SEO with AI, Schema & Redirection for WordPress242393041k+Direct Query
#705SEOKEY – Powerful SEO plugin with Expert Insights and SEO Audit246059281k+Non-prefixed global variable
#706SEO Ultimate2443726910k+Output is not escaped
#707Servebolt Optimizer241,9586811k+Text Domain Mismatch
#708Service Box Slider246181,410500Non-prefixed global variable
#709Share This Image247441,5821k+Non-prefixed global variable
#710ShiftController Employee Shift Scheduling24358196700Output is not escaped
#711Shortcodes Ultimate – Content Elements246561,552400k+Non-prefixed global variable
#712ShortPixel Adaptive Images – WebP, AVIF, CDN, Image Optimization2492632210k+Output is not escaped
#713Simple Membership242,3731,78940k+Unsafe printing function
#714Simple Social Media Share Buttons – Social Sharing for Everyone2446810120k+Output is not escaped
#715SiteGuard WP Plugin24359350500k+Output is not escaped
#716Sitepact's Contact Form 7 Extension For Klaviyo245411,412500Non-prefixed global variable
#717SKT Templates – 100% Free Templates for Elementor & Gutenberg245531,35320k+Non-prefixed global variable
#718Video Slider – Slider Carousel242082,2033k+Request data is not unslashed
#719Slideshow Gallery LITE248964145k+Output is not escaped
#720Smart Variations Images & Swatches for WooCommerce249901,4861k+Non-prefixed global variable
#721MoreConvert Wishlist for WooCommerce243,6786299k+Text Domain Mismatch
#722Sokol: Smart WooCommerce Search245991,5516k+Non-prefixed global variable
#723SMS Alert – SMS & OTP for WooCommerce, Order Notifications & Abandoned Cart Recovery248311,9034k+Non-prefixed global variable
#724SiteOrigin Widgets Bundle24606455400k+Output is not escaped
#725Social Media Auto Publish241,4687136k+Unsafe printing function
#726Softaculous241154910k+file system operations fread
#727SpiceBox248281,81620k+Non-prefixed global variable
#728Spider Elements – Premium Elementor Widgets & Addons Library245421,555500Non-prefixed global variable
#729Spotlight Social Feeds – Block, Shortcode, and Widget2441114760k+Output is not escaped
#730Squad Modules Lite – 61 Free Divi 5 & Divi 4 Modules for Divi Builder246051,4701k+Non-prefixed global variable
#731GEO Plugin by Squirrly SEO241,19622430k+Missing Translators Comment
#732StoreEngine — Complete eCommerce Solution with Memberships, Licensing, Affiliates & More24149482600Non-prefixed global variable
#733StreamWeasels Online Status Bar245551,349500Non-prefixed global variable
#734StreamWeasels YouTube Integration245441,3841k+Non-prefixed global variable
#735Stripe Payment Forms by WP Simple Pay – Accept Credit Card Payments + Subscriptions with Stripe246346529k+Exception output is not escaped
#736Sugar Calendar – Events Calendar, Event Tickets, and Events Management Platform2442895610k+Output is not escaped
#737Sunshine Photo Cart – Client Photo Gallery & Photo Proofing for Photographers243601,4721k+Nonce verification recommended
#738Support Genix – Helpdesk, AI Chatbot, Knowledge Base & Customer Support Ticketing System245898972k+Non-prefixed global variable
#739Surbma | GDPR Proof Cookie Consent & Notice Bar248251,309500Non-prefixed global variable
#740Tainacan241565981k+Direct Query
#741Team Members – Multi Language Supported Team Plugin242,08111,2067k+Non-prefixed global variable
#742Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud!24167222400k+Nonce verification recommended
#743The Plus Addons for Elementor – Addons for Elementor, Page Templates, Widgets, Mega Menu, WooCommerce2412,049494100k+Text Domain Mismatch
#744TI WooCommerce Wishlist24467546100k+Output is not escaped
#745Tiered Pricing Table for WooCommerce246061,99010k+Non-prefixed global variable
#746Timber248512820k+Non-prefixed hook name
#747Ultra Addons for Contact Form 7241,54345260k+Text Domain Mismatch
#748Ultimate Maps by Supsystic241,03437410k+Non Singular String Literal Domain
#749Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin249382,935200k+Non-prefixed global variable
#750Ultimate Product Catalog245545255k+Unsafe printing function