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
#1701YayMail – WooCommerce Email Customizer5116276250k+Non Prefixed Variable Found
#1702Request a Quote for WooCommerce – Get a Quote Button5225126k+Output Not Escaped
#1703MB Custom Post Types & Custom Taxonomies5294910k+Recommended
#1704Metronet Tag Manager52173620k+Input Not Validated
#1705SEOWriting52102430k+Missing Unslash
#1706Wenprise Pinyin Slug5230344k+Text Domain Mismatch
#1707Price Based on Country for WooCommerce524312620k+Non Prefixed Hookname Found
#1708Automattic For Agencies Client5324918420k+Text Domain Mismatch
#1709Connect Contact Form 7 and Mailchimp532365240k+Text Domain Mismatch
#1710FakerPress536615210k+Non Prefixed Variable Found
#1711LearnPress – bbPress Integration5319142k+Output Not Escaped
#1712Multiple Post Thumbnails53251820k+Output Not Escaped
#1713Pinterest for WooCommerce534430300k+Exception Not Escaped
#1714Preserved HTML Editor Markup Plus5312223k+Output Not Escaped
#1715Royal WordPress Backup, Restore & Migration Plugin – Backup WordPress Sites Safely53349020k+Unescaped DBParameter
#1716Texty – SMS Notification for WordPress, WooCommerce, Dokan and more5331348k+Output Not Escaped
#1717Cyr-To-Lat541648300k+Dynamic Hookname Found
#1718Expanding Archives543793k+Output Not Escaped
#1719Helpie FAQ — Accordion, Docs & Knowledge Base5496899k+Recommended
#1720SimplyBook.me – Booking and reservations calendar54311330k+Exception Not Escaped
#1721WP Call Button – Easy Click to Call Button for WordPress54213840k+Non Prefixed Variable Found
#1722WP Menu Icons54685220k+Text Domain Mismatch
#1723Accordions55110120k+slow db query meta query
#1724Quick Buy Now Button for WooCommerce5537395k+Output Not Escaped
#1725Enhanced Category Pages5523252k+Direct Query
#1726Go Live Update Urls55114980k+Non Prefixed Hookname Found
#1727JetWidgets For Elementor559927410k+Non Prefixed Variable Found
#1728LoginPress | wp-login Custom Login Page Customizer55124301200k+Non Prefixed Function Found
#1729Fast Page & Post Duplicator55122560k+Direct Query
#1730Themeflection Numbers – Number Counter and Animated Numbers55224733k+Text Domain Mismatch
#1731VS Contact Form5533187k+Non Prefixed Variable Found
#1732VK Block Patterns55861100k+Non Prefixed Function Found
#1733Booking Calendar56164050k+wp function not compatible with requires wp
#1734TableKit: Table Builder Blocks for Gutenberg5680202k+Missing Translators Comment
#1735WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance5657691m+Non Prefixed Variable Found
#1736Delete Pending Comments57161110k+Unsafe Printing Function
#1737Internal Link Juicer: SEO Auto Linker for WordPress57126190k+Unescaped DBParameter
#1738Longer Permalinks5727218k+Missing Arg Domain
#1739Remove admin menus by role575548k+Input Not Validated
#1740Search Exclude57734050k+Text Domain Mismatch
#1741Ultimate Member – Terms & Conditions571994k+Output Not Escaped
#1742Filter Orders by Product for WooCommerce579214k+Recommended
#1743Sequential Order Numbers for WooCommerce5792410k+Interpolated Not Prepared
#1744WP Table Builder – Drag & Drop Table Builder57553950k+Not Allowed
#1745BCM Duplicate Menu588114k+Recommended
#1746Debloat – Remove Unused CSS, Optimize JS58242030k+Recommended
#1747Error Log Viewer by BestWebSoft584331726k+Text Domain Mismatch
#1748flowpaper58143110k+Non Prefixed Function Found
#1749Videopack582810810k+Input Not Sanitized
#1750View Admin As583071359k+Non Singular String Literal Domain