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
#851Add Widget After Content706117k+Setting is missing a sanitization callback
#852AppScenic – Smart AI Dropshipping7016413k+Dynamic hook name
#853Private Store for WooCommerce B2B & Wholesale by B2BKing70868600Text Domain Mismatch
#854Yoast Duplicate Post708884m+Nonce verification recommended
#855Embed Code – Headers & Footers by DesignBombs701954k+Output is not escaped
#856Simple Post Notes705169k+Request data is not unslashed
#857Simple Site Verify70200900Output is not escaped
#858TP Product Image Flipper for WooCommerce7017159k+Non-prefixed function
#859Block Emails & Addresses for WooCommerce Checkout70412700error log set error handler
#860Related Products for WooCommerce7012123k+Setting is missing a sanitization callback
#861WP Calorie Calculator7022551k+Non-prefixed global variable
#862Anant Addons for Elementor – Widgets, Templates & WooCommerce Builder7121207700Non-prefixed global variable
#863Bootstrap Shortcodes7121115k+Missing direct file access protection
#864Social Chat Widget (⚡ by Callbell)71116600Output is not escaped
#865Easy Sticky Buttons712116600Short PHP open tag found
#866Really Simple Click To Call Bar712338k+Output is not escaped
#867Social Fabric Analytics From Collective Bias711701k+Output is not escaped
#868Webhook for Discord7111920400Text Domain Mismatch
#869WP IE Buster71133800Output is not escaped
#870Auto Featured Image from Title722441k+Setting is missing a sanitization callback
#871Call Now and Chat Buttons721325k+Setting is missing a sanitization callback
#872Root Relative URLs729106k+Input is not sanitized
#873Smartwaiver Waiver Widget72178400Output is not escaped
#874TinyPNG – JPEG, PNG & WebP image compression724073100k+Non-prefixed global variable
#875Albacross for WordPress731851k+Text Domain Mismatch
#876Block Plugin Update739106k+Missing direct file access protection
#877Infinite Notification – Sales Notification Plugin73135500Setting is missing a sanitization callback
#878Mortgage Calculators WP73181233k+Non-prefixed global variable
#879Website Optimization – Plerdy734811k+wp function not compatible with requires wp
#880Popup for Contact Form 773137800Setting is missing a sanitization callback
#881Under Construction Light731381k+Text Domain Mismatch
#882Datareporter Webcare741221700Non-prefixed global variable
#883Multiple Admin Email Addresses74741k+Missing nonce verification
#884Simply Excerpts74121500Setting is missing a sanitization callback
#885Sticky Custom Post Types74150500Missing Arg Domain
#886Vello Booking Calendar74102500Unsafe printing function
#887WhatConverts7410107k+Non-prefixed function
#888Anchor Episodes Index (Spotify for Podcasters)753231k+Text Domain Mismatch
#889Canvas Image Resize751911k+Output is not escaped
#890Colored Admin Post List7580500Heredoc Output Not Escaped
#891Hum7582600wp function not compatible with requires wp
#892Simple Taxonomy Ordering7571010k+Direct Query
#893Ultimate Under Construction752221k+Non Enqueued Script
#894WP Change Custom Posts Slugs75174700Text Domain Mismatch
#895AMS Google Webmaster Tools76103400Output is not escaped
#896Audience Analytics – by Quantcast761731k+Text Domain Mismatch
#897Change Mail Sender76971920k+Text Domain Mismatch
#898Disable Lazy Load7686400Non-prefixed constant
#899Headers Security Advanced & HSTS WP76191090k+Missing Translators Comment
#900Page Loader76943k+Missing Version