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
#2951All in One SEO Pack Importer561725500Direct Query
#2952Booking Calendar56164050k+wp function not compatible with requires wp
#2953SMTP by BestWebSoft564861751k+Text Domain Mismatch
#2954Fluent Connect – Connect ThriveCart with your WordPress and FluentCRM563754600curl curl setopt
#2955CIELO API PIX, credit card, debit payment for WooCommerce5611121700Nonce verification recommended
#2956PuzzleMe – Interactive Puzzles for WordPress – Easily publish crosswords, quizzes, word searches and more5636151k+Output is not escaped
#2957Replace Protected Password56618600Input is not sanitized
#2958Subscription & Recurring Payment for WooCommerce568485800Non-prefixed global variable
#2959TableKit: Table Builder Blocks for Gutenberg5680203k+Missing Translators Comment
#2960WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance5657691m+Non-prefixed global variable
#2961Social Chat – Click To Chat App Button568145200k+Text Domain Mismatch
#2962Pantheon Migrations5715261k+Output is not escaped
#2963BestWebSoft’s Pinterest57490176500Text Domain Mismatch
#2964Delete Pending Comments57161110k+Unsafe printing function
#2965APG Google Image Sitemap Feed573633900Non-prefixed global variable
#2966iConvert Promoter57982171k+Non-prefixed global variable
#2967Internal Link Juicer: SEO Auto Linker for WordPress57126190k+Database parameter is not escaped
#2968JSON API User5717341k+Non-prefixed hook name
#2969Longer Permalinks5727218k+Missing Arg Domain
#2970MC4WP: Mailchimp for WordPress572381m+Non-prefixed global variable
#2971Remove admin menus by role575548k+Input is not validated
#2972Search Exclude57734050k+Text Domain Mismatch
#2973Ultimate Member – Terms & Conditions571994k+Output is not escaped
#2974Filter Orders by Product for WooCommerce579214k+Nonce verification recommended
#2975Sequential Order Numbers for WooCommerce5792410k+Interpolated SQL is not prepared
#2976WP Adsterra Dashboard572221400wp function not compatible with requires wp
#2977WP Table Builder – Drag & Drop Table Builder57633950k+Not Allowed
#2978XML Feed for Skroutz & BestPrice for WooCommerce571250600Input is not sanitized
#2979BCM Duplicate Menu588114k+Nonce verification recommended
#2980Contact Form DB for Enfold582114700Output is not escaped
#2981Debloat – Remove Unused CSS, Optimize JS58242030k+Nonce verification recommended
#2982Error Log Viewer by BestWebSoft584331726k+Text Domain Mismatch
#2983flowpaper58143110k+Non-prefixed function
#2984HAL5810624500Text Domain Mismatch
#2985PW WooCommerce BOGO58308400Unsafe printing function
#2986Videopack582810810k+Input is not sanitized
#2987View Admin As583071359k+Non Singular String Literal Domain
#2988Social Media Auto Poster – Schedule & Publish to Buffer58232108k+Dynamic hook name
#2989Custom API for WP59173161k+wp function not compatible with requires wp
#2990Display Post Types – Post Grid, post list and post sliders5924147k+Output is not escaped
#2991Fathom Analytics Conversions591447400Non-prefixed function
#2992UltraPress – AI Assistant, Chatbot & SEO591238800Non-prefixed global variable
#2993Virtuaria PagBank / PagSeguro for WooCommerce591501k+Non-prefixed global variable
#2994Hide Posts5997020k+Direct Query
#2995Ultimate Gift Cards for WooCommerce5934487k+Non-prefixed global variable
#2996GST Invoice for WooCommerce5910421k+Missing nonce verification
#2997Variation Swatches for WooCommerce591164300k+Non-prefixed global variable
#2998RevivePress – Keep your Old Content Evergreen5927465k+date date
#2999Accesibilidad Web con el Widget de AccedeMe6022231k+Text Domain Mismatch
#3000EPROLO-Dropshipping6016341k+Missing nonce verification