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

RankPluginScoreErrorsWarningsInstallsUpdatedTop Issue
#51Duplicator – Backups & Migration Plugin – Cloud Backups, Scheduled Backups, & More212,5721,2771m+Output Not Escaped
#52Envo Extra2187860020k+Text Domain Mismatch
#53eRoom – Webinar & Meeting Plugin for Zoom, Google Meet, Microsoft Teams211864379k+Non Prefixed Variable Found
#54ERP: Complete HR, Accounting & CRM Suite with Recruitment and WooCommerce CRM Support218295,9665k+Direct Query
#55EventPrime – Events Calendar, Bookings and Tickets218724,2977k+Non Prefixed Variable Found
#56Feeds for YouTube (YouTube video, channel, and gallery plugin)21558978100k+Output Not Escaped
#57Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More21521,959300k+Non Prefixed Variable Found
#58If-So Dynamic Content – Elementor & All Page Builders Personalization218897257k+Unsafe Printing Function
#59Imagify: Optimize Images for Top Speed (Compress & Convert to WebP/AVIF)214188511m+Non Prefixed Variable Found
#60Mapster WP Maps213,4402,9033k+Text Domain Mismatch
#61Modular DS: Monitor, update, and backup multiple websites211618140k+Exception Not Escaped
#62MotoPress Hotel Booking213,0611,03710k+Text Domain Mismatch
#63Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program – myCred211,4693,33310k+Non Prefixed Variable Found
#64Landing Page Builder – Coming Soon page, Maintenance Mode, Lead Page, WordPress Landing Pages211,1732,9839k+Non Prefixed Variable Found
#65Paid Membership Subscriptions – Effortless Memberships, Recurring Payments & Content Restriction211,9185,06510k+Non Prefixed Hookname Found
#66User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor216961,48350k+Recommended
#67PublishPress Planner – Editorial Calendar, Marketing Content, Kanban Board216038906k+Output Not Escaped
#68Five Star Restaurant Reservations – WordPress Booking Plugin211,0991,14710k+Output Not Escaped
#69Rocket Maintenance Mode & Coming Soon Page211,1761,4064k+Non Prefixed Variable Found
#70Royal Addons for Elementor – Addons and Templates Kit for Elementor2113,0112,530600k+Text Domain Mismatch
#71Professional Social Sharing Buttons, Icons & Related Posts – Shareaholic2132718110k+Output Not Escaped
#72Smart Forms – when you need more than just a contact form217765745k+Output Not Escaped
#73Accept Stripe Payments2137388220k+Missing
#74ThirstyAffiliates – Affiliate Links, Link Branding, Link Tracking & Marketing Plugin2119066030k+Non Prefixed Variable Found
#75Revive Social – Social Media Auto Post and Scheduling Automation Plugin2125542520k+Non Prefixed Hookname Found
#76WCFM – Frontend Manager for WooCommerce214,7215,06720k+Non Prefixed Variable Found
#77WebP Express21160427300k+Non Prefixed Variable Found
#78Wise Chat214705065k+Output Not Escaped
#79Paysera Payment Gateway for WooCommerce211,8661957k+Exception Not Escaped
#80Wordfence Security – Firewall, Malware Scan, and Login Security211,5922,9735m+Output Not Escaped
#81WP phpMyAdmin214,5286,43550k+Missing Arg Domain
#82wpDataTables – WordPress Data Table, Dynamic Tables & Table Charts Plugin211,3541,14070k+Output Not Escaped
#83WPScan – WordPress Security Scanner215272658k+Text Domain Mismatch
#84Frontend Admin by DynamiApps225,9223,20810k+Text Domain Mismatch
#85Advanced Ads – Ad Manager & AdSense22578734100k+Non Prefixed Variable Found
#86Advanced Form Integration — Connect Forms to 200+ Apps225,7714,67810k+wp function not compatible with requires wp
#87Ajax Load More – Infinite Scroll, Load More, & Lazy Load2264159540k+Unsafe Printing Function
#88All-in-One Video Gallery229112,89220k+Non Prefixed Variable Found
#89Booking for Appointments and Events Calendar – Amelia221,48948090k+Exception Not Escaped
#90Shortcodes and extra features for Phlox theme2241342690k+Output Not Escaped
#91Better Messages – Chat Rooms, Group Chat, Private Messages & AI Chat Bots221,6042,01910k+Direct Query
#92BuddyPress225839,008100k+Non Prefixed Function Found
#93Captcha by BestWebSoft – Advanced Spam Protection, Math & OCR-Friendly Captcha for Site Forms2249329510k+Text Domain Mismatch
#94Divi Carousel Lite – 17+ Carousel Module229671,27510k+Non Prefixed Variable Found
#95Clearfy Cache – WordPress optimization plugin, Minify HTML, CSS & JS, Defer222,8581,27050k+Text Domain Mismatch
#96Code Profiler – WordPress Performance Profiling and Debugging Made Easy222654008k+Non Prefixed Variable Found
#97Passster – Password Protect Pages and Content225391,41910k+Non Prefixed Variable Found
#98Cozy Blocks – Page Builder for Gutenberg Editor & FSE with 500+ Patterns, 57 Blocks & Templates222,1674,1757k+Non Prefixed Variable Found
#99RegistrationMagic – User Registration Forms Plugin223,6545,0628k+Non Prefixed Variable Found
#100WP Customer Area223,30894110k+Text Domain Mismatch