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
#2901REST API Log5144955k+Non-prefixed hook name
#2902YayMail – WooCommerce Email Customizer5116378850k+Non-prefixed global variable
#2903Check Pincode For WooCommerce5255400Direct Query
#2904Fullscreen Galleria523710800Output is not escaped
#2905Request a Quote for WooCommerce – Get a Quote Button5225126k+Output is not escaped
#2906MB Custom Post Types & Custom Taxonomies5294910k+Nonce verification recommended
#2907Metronet Tag Manager52173620k+Input is not validated
#2908Post Notification by Email5236132k+Output is not escaped
#2909SEOWriting52102430k+Output is not escaped
#2910SKU Generator for WooCommerce5229122k+Output is not escaped
#2911Stealth Publish52722900Missing nonce verification
#2912Notiqoo – Order Notification & Customer Chat for WooCommerce52111871k+Non-prefixed global variable
#2913Wenprise Pinyin Slug5230344k+Text Domain Mismatch
#2914Price Based on Country for WooCommerce524312620k+Non-prefixed hook name
#2915Automattic For Agencies Client5324918420k+Text Domain Mismatch
#2916Connect Contact Form 7 and Mailchimp532365240k+Text Domain Mismatch
#2917Export Custom Pages532219700Output is not escaped
#2918FakerPress536615210k+Non-prefixed global variable
#2919LearnPress – bbPress Integration5319142k+Output is not escaped
#2920Multiple Post Thumbnails53251820k+Output is not escaped
#2921Pinterest for WooCommerce534430300k+Exception output is not escaped
#2922Preserved HTML Editor Markup531222600Output is not escaped
#2923Preserved HTML Editor Markup Plus5312223k+Output is not escaped
#2924Royal WordPress Backup, Restore & Migration Plugin – Backup WordPress Sites Safely53349020k+Database parameter is not escaped
#2925Texty – SMS Notification for WordPress, WooCommerce, Dokan and more5331348k+Output is not escaped
#2926Morning for WooCommerce537591k+Non-prefixed global variable
#2927Customizable Post Listings544213700Deprecated parameter: the_author parameter 1
#2928Cyr-To-Lat541648300k+Dynamic hook name
#2929Expanding Archives543793k+Output is not escaped
#2930Extended User Search In WP-Admin5414171k+SQL query is not prepared
#2931Helpie FAQ — Accordion, Docs & Knowledge Base5496899k+Nonce verification recommended
#2932MSN Partner Hub5421251k+Missing direct file access protection
#2933SimplyBook.me – Booking and reservations calendar54311330k+Exception output is not escaped
#2934WP Call Button – Easy Click to Call Button for WordPress54213840k+Non-prefixed global variable
#2935WP Menu Icons54685220k+Text Domain Mismatch
#2936Accordions55110120k+slow db query meta query
#2937Quick Buy Now Button for WooCommerce5537395k+Output is not escaped
#2938Easy Quotes551131700Direct Query
#2939Enhanced Category Pages5523252k+Direct Query
#2940Go Live Update Urls55114980k+Non-prefixed hook name
#2941JetWidgets For Elementor559927910k+Non-prefixed global variable
#2942LoginPress | wp-login Custom Login Page Customizer55124301200k+Non-prefixed function
#2943Fast Page & Post Duplicator55122560k+Direct Query
#2944Page Tagger5530102k+Output is not escaped
#2945Popup Maker – Boost Sales, Conversions, Optins, Subscribers with the Ultimate WP Popup Builder5554692700k+Non-prefixed hook name
#2946ProductFrame – Curated products from affiliate feeds55385400Direct Query
#2947Themeflection Numbers – Number Counter and Animated Numbers55224733k+Text Domain Mismatch
#2948VS Contact Form5533187k+Non-prefixed global variable
#2949VK Block Patterns55861100k+Non-prefixed function
#2950AI Copilot – ChatGPT Chatbot & AI Engine for Post Automation5665201k+Text Domain Mismatch