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
#951Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls254881,4127k+Non-prefixed global variable
#952Post Carousel Divi256861,3012k+Non-prefixed global variable
#953Post Snippets – Custom WordPress Code Snippets Customizer258081,65420k+Non-prefixed global variable
#954Premmerce257121,411500Non-prefixed global variable
#955Premmerce Redirect Manager257561,407500Non-prefixed global variable
#956Premmerce Product Search for WooCommerce255961,350900Non-prefixed global variable
#957Premmerce Wholesale Pricing for WooCommerce256351,377400Non-prefixed global variable
#958Quiz Maker by AYS255053,01520k+Non-prefixed global variable
#959Quttera ThreatSign – Web Malware Scanner for WordPress2533447110k+Non-prefixed global variable
#960Qyrr – simply and modern QR-Code creation255311,3122k+Non-prefixed global variable
#961Rate limiting for Contact Form 7255471,306500Non-prefixed global variable
#962Really Simple Featured Video – Featured Video Support for Posts, Pages & WooCommerce Products258111,4945k+Non-prefixed global variable
#963reSmush.it : The original free image compressor and optimizer plugin2515569100k+Output is not escaped
#964Restrict – membership, site, content and user access restrictions for WordPress255391,4012k+Non-prefixed global variable
#965Spexo Addons for Elementor – Elementor Widgets, Mega Menu, Popup Builder, Template Kits and Starter Templates for Elementor2599815k+Non-prefixed global variable
#966The School Management – Education & Learning ERP2512,858900Non-prefixed global variable
#967Secure Copy Content Protection and Content Locking2595879920k+Output is not escaped
#968Seers Ai | Consent Management Platform (Easy to set up GDPR/CCPA Compliant Cookie Consent)251,4464211k+Output is not escaped
#969Sensei LMS – Online Courses, Quizzes, & Learning255692810k+Nonce verification recommended
#970SEO Booster253931,4681k+Non-prefixed global variable
#971Seo Optimized Images255261,31610k+Non-prefixed global variable
#972SEO Repair Kit – Meta Manager, Schema Manager, SEO Content Monitoring, GSC Integration, Keyword & Rank Tracking251969022k+Direct Query
#973ShopMagic – email automation2522814510k+Exception output is not escaped
#974Simple Link Directory – AI Powered251334202k+Non-prefixed global variable
#975SimpLy Gallery255321,42240k+Non-prefixed global variable
#976Appointment Booking Calendar — Simply Schedule Appointments Booking Plugin2596073860k+Text Domain Mismatch
#977Simply Static – The Static Site Generator2516344830k+Non-prefixed hook name
#978Sitemap by click5252861326k+Unsafe printing function
#979Affiliate Program Suite — SliceWP Affiliates251,2912,08910k+Output is not escaped
#980Smart Image Resize for WooCommerce255824047k+Text Domain Mismatch
#981Smart Manager – Advanced WooCommerce Bulk Edit & Inventory Management2536692310k+SQL query is not prepared
#982Smart phone field for Gravity Forms255401,3166k+Non-prefixed global variable
#983Spice Blocks255361,3001k+Non-prefixed global variable
#984STAGGS – Product Configurator Toolkit256262,180400Non-prefixed global variable
#985Stylish Cost Calculator – Quote Generator, Lead Gen & Price Estimator256481,0211k+Output is not escaped
#986Sunshine Photo Cart – Client Photo Gallery & Photo Proofing for Photographers253481,4811k+Nonce verification recommended
#987SupportCandy – Helpdesk & Customer Support Ticket System254341,35710k+Direct Query
#988SureDash – Community, Courses & Member Dashboard254228051k+Non-prefixed global variable
#989OttoKit: All-in-One Automation Platform251,5281,80690k+Missing direct file access protection
#990Survey Maker by AYS255672,3976k+Non-prefixed global variable
#991TablePress – Tables in WordPress made easy258472,174600k+Non-prefixed global variable
#992Taskbuilder – Project Management & Task Management Tool With Kanban Board251274,332800Non-prefixed global variable
#993Tax Exemption for WooCommerce255521,402700Non-prefixed global variable
#994TemplateSpare – 1000+ WordPress Starter Templates & Full Site Migration Tool | 1-Click Import/Export & No-Code Builder257051,58710k+Non-prefixed global variable
#995Timeline Express255311479k+Text Domain Mismatch
#996Toocheke Companion254091,1131k+Non-prefixed global variable
#997Travelly – Tour & Travel Booking Manager for WooCommerce | Tour & Hotel Booking Solution251737261k+Non-prefixed global variable
#998Tourfic – AI Powered Travel Booking, Hotel Booking & Car Rental WordPress Plugin251192,7002k+Non-prefixed global variable
#999TrackShip for WooCommerce254219576k+Non-prefixed global variable
#1000TranslatePress – Translate Multilingual sites with AI Translation254521,541400k+Non-prefixed hook name