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
#2001Enhanced Category Pages5523252k+Direct Query
#2002Go Live Update Urls55114980k+Non Prefixed Hookname Found
#2003JetWidgets For Elementor559927410k+Non Prefixed Variable Found
#2004LoginPress | wp-login Custom Login Page Customizer55124301200k+Non Prefixed Function Found
#2005Fast Page & Post Duplicator55122560k+Direct Query
#2006Page Tagger5530102k+Output Not Escaped
#2007Themeflection Numbers – Number Counter and Animated Numbers55224733k+Text Domain Mismatch
#2008VS Contact Form5533187k+Non Prefixed Variable Found
#2009VK Block Patterns55861100k+Non Prefixed Function Found
#2010AI Copilot – ChatGPT Chatbot & AI Engine for Post Automation5665201k+Text Domain Mismatch
#2011Booking Calendar56164050k+wp function not compatible with requires wp
#2012TableKit: Table Builder Blocks for Gutenberg5680202k+Missing Translators Comment
#2013WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance5657691m+Non Prefixed Variable Found
#2014Delete Pending Comments57161110k+Unsafe Printing Function
#2015iConvert Promoter57982171k+Non Prefixed Variable Found
#2016Internal Link Juicer: SEO Auto Linker for WordPress57126190k+Unescaped DBParameter
#2017Longer Permalinks5727218k+Missing Arg Domain
#2018Remove admin menus by role575548k+Input Not Validated
#2019Search Exclude57734050k+Text Domain Mismatch
#2020Ultimate Member – Terms & Conditions571994k+Output Not Escaped
#2021Filter Orders by Product for WooCommerce579214k+Recommended
#2022Sequential Order Numbers for WooCommerce5792410k+Interpolated Not Prepared
#2023WP Table Builder – Drag & Drop Table Builder57553950k+Not Allowed
#2024BCM Duplicate Menu588114k+Recommended
#2025Debloat – Remove Unused CSS, Optimize JS58242030k+Recommended
#2026Error Log Viewer by BestWebSoft584331726k+Text Domain Mismatch
#2027flowpaper58143110k+Non Prefixed Function Found
#2028Videopack582810810k+Input Not Sanitized
#2029View Admin As583071359k+Non Singular String Literal Domain
#2030Social Media Auto Poster – Schedule & Publish to Buffer58232128k+Dynamic Hookname Found
#2031Social Chat – Click To Chat App Button588142200k+Text Domain Mismatch
#2032Custom API for WP59173161k+wp function not compatible with requires wp
#2033Display Post Types – Post Grid, post list and post sliders5924147k+Output Not Escaped
#2034Hide Posts5997020k+Direct Query
#2035Ultimate Gift Cards for WooCommerce5934487k+Non Prefixed Variable Found
#2036GST Invoice for WooCommerce5910421k+Missing
#2037Variation Swatches for WooCommerce591164300k+Non Prefixed Variable Found
#2038RevivePress – Keep your Old Content Evergreen5927465k+date date
#2039Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant601174010k+Non Prefixed Variable Found
#2040Post Duplicator603324200k+missing direct file access protection
#2041Stream60249980k+Direct Query
#2042WPB Popup for Contact Form 7 – Showing Contact Form 7 Popup on Button Click602196k+Output Not Escaped
#2043ELEX WooCommerce Catalog Mode61974910k+Text Domain Mismatch
#2044GetPaid Stripe Payments61206442k+Text Domain Mismatch
#2045Media Library Helper — Bulk edit image ALT, caption & description61167010k+Non Prefixed Variable Found
#2046Powerkit – Supercharge your WordPress Site616711510k+Non Prefixed Variable Found
#2047PW WooCommerce Copy Coupon6115171k+Text Domain Mismatch
#2048Slider Factory6134142k+Non Prefixed Variable Found
#2049WP Optin Wheel – Gamified Optin Email Marketing Tool for WordPress and WooCommerce6122741k+Non Prefixed Variable Found
#2050Add Meta Tag Keywords626151k+Missing