PluginCheck.CodeAnalysis.SettingSanitization.register_settingMissing

Setting is missing a sanitization callback

A registered setting does not define a sanitization callback.

critical weight

Why It Shows Up

Plugin Check found `register_setting()` without a `sanitize_callback` or equivalent validation strategy.

Why It Matters

Settings can be saved by administrators and then displayed or used later. Without sanitization, invalid or unsafe values can persist.

How to Fix

  • Pass a `sanitize_callback` in the `register_setting()` arguments.
  • Use built-in sanitizers for simple values and custom callbacks for structured settings.
  • Validate allowed values and return a safe default when input is invalid.

Affected Plugins

RankPluginScoreErrorsWarningsInstallsAddedUpdatedTop Issue
#51WCFM – Frontend Manager for WooCommerce224,7545,05420k+Non-prefixed global variable
#52Advanced AJAX Product Filters222,6831,20550k+Text Domain Mismatch
#53WPBITS Addons For Elementor Page Builder229961,3992k+Non-prefixed global variable
#54ЮKassa для WooCommerce225901689k+Short PHP open tag found
#55Advanced Ads – Ad Manager & AdSense23559719100k+Non-prefixed global variable
#56Advanced Product Labels for WooCommerce2392155920k+Text Domain Mismatch
#57AR for WordPress23151499400Non-prefixed global variable
#58Autocomplete Address and Location Picker for WooCommerce236301,2992k+Non-prefixed global variable
#59Autoptimize23288191800k+Output is not escaped
#60Shortcodes and extra features for Phlox theme2341242490k+Output is not escaped
#61B2BKing — Ultimate WooCommerce B2B and Wholesale Plugin — Wholesale Prices, Bulk Order Form & More231,34740910k+Text Domain Mismatch
#62BA Book Everything231,1841,08610k+Output is not escaped
#63Beds24 Online Booking235323742k+wp function not compatible with requires wp
#64Cart Notices for WooCommerce236394742k+Text Domain Mismatch
#65Products Suggestions for WooCommerce23707505700Output is not escaped
#66All In One Login — Login Page Security and Customization for WordPress with Google reCAPTCHA, Social Login, Temporary Login, 2FA, and more.237501,35960k+Non-prefixed global variable
#67CLUEVO LMS, E-Learning Platform231,8431,176400Text Domain Mismatch
#68Free Theme Builder for Elementor – CRT Addons (Header, Footer, Archive, WooCommerce & 50+ Widgets)237912,331400Non-prefixed global variable
#69Currency Exchange for WooCommerce23692505500Output is not escaped
#70Ecwid by Lightspeed Ecommerce Shopping Cart2333930720k+Missing direct file access protection
#71Essential Real Estate235295,0608k+Non-prefixed global variable
#72Ezoic2343251610k+Output is not escaped
#73Featured Images in RSS for Mailchimp & More237801,29920k+Non-prefixed global variable
#74Freshdesk (official)23194386800Non-prefixed function
#75GamiPress – Gamification plugin to reward points, achievements, badges & ranks in WordPress233,6212,74410k+Output is not escaped
#76IP Geo Block233995898k+Output is not escaped
#77King Addons for Elementor – 80+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce, Mega Menu, Popup Builder231,8343,87710k+Non-prefixed global variable
#78Like Button Rating ♥ LikeBtn231,2316174k+Unsafe printing function
#79Locatoraid Store Locator233186451k+Non-prefixed global variable
#80MP3 Audio Player – Music Player, Podcast Player & Radio by Sonaar234,06548820k+Text Domain Mismatch
#81ND Shortcodes236212,42620k+Non-prefixed global variable
#82Issues and Series for Newspapers, Magazines, Publishers, Writers233467102k+Nonce verification recommended
#83Gallery PhotoBlocks239041,3453k+Non-prefixed global variable
#84Primary Addon for Elementor237651,3067k+Non-prefixed global variable
#85Product Watermark for WooCommerce236964572k+Output is not escaped
#86Read More WP235701,3111k+Non-prefixed global variable
#87Robo Gallery – Photo & Image Slider231,29153040k+Output is not escaped
#88Image Optimizer, Resizer and CDN – Sirv236161,0041k+Output is not escaped
#89Smart Marketing SMS and Newsletters Forms232,2321,0191k+Text Domain Mismatch
#90Trinity Audio – Text to Speech AI audio player to convert content into audio231192272k+Non-prefixed global variable
#91Widgets on Pages238091,30620k+Non-prefixed global variable
#92WP Courses LMS – Online Courses Builder, eLearning Courses, Courses Solution, Education Courses23590876500Non-prefixed function
#93WP-CRM System – Manage Clients and Projects232971,094800Non-prefixed global variable
#94Subscribe Forms – Beautiful Email Forms, Embedded Newsletter Forms & MailChimp Form234195422k+Non-prefixed global variable
#95WPMobile.App232,9831,5333k+Output is not escaped
#96Photo Engine (Media Organizer & Lightroom)232526502k+Direct Query
#97WSW – Shopify WooCommerce / WordPress Integration and Migration231,4491,612600Non-prefixed global variable
#981 Click Migration & Backup: Free WordPress Migration Plugin with Zero Downtime & Easy Clone24140193400Direct Query
#99A2 Optimized WP – Turbocharge and secure your WordPress site2427123160k+Missing Arg Domain
#100Ivory Search – WordPress Search Plugin241,1731,688100k+Non-prefixed global variable