WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound

Non-prefixed global variable

The plugin defines a global variable without a plugin-specific prefix.

medium weight

Why It Shows Up

WordPress loads many plugins in the same PHP runtime. Plugin Check found a global symbol or hook name that is not clearly namespaced to this plugin.

Why It Matters

Unprefixed globals can collide with WordPress core, themes, or other plugins, causing fatal errors, overwritten values, or handlers running in the wrong context.

How to Fix

  • Choose a short, unique prefix or namespace based on the plugin slug or vendor name.
  • Rename the global variable so it cannot collide with code from another plugin.
  • For public hooks, document the final hook name and keep it stable after release.

Affected Plugins

RankPluginScoreErrorsWarningsInstallsAddedUpdatedTop Issue
#2101Cookies and Content Security Policy3526141210k+Output is not escaped
#2102Cost of Goods: Product Cost & Profit Calculator for WooCommerce3521299k+Missing Translators Comment
#2103Counter live visitors for WooCommerce35189397k+Short PHP open tag found
#2104Coupon X – Discount Popups, Promo Codes Pop Ups for WooCommerce & Announcement Popups35301681k+Non-prefixed global variable
#2105CrowdSec351301192k+Output is not escaped
#2106Cue by AudioTheme.com35281506k+Non-prefixed hook name
#2107Currency per Product for WooCommerce3546242k+Text Domain Mismatch
#2108Currency Switcher for WooCommerce3516661800Text Domain Mismatch
#2109Wbcom Designs – Custom Font Uploader353401233k+Text Domain Mismatch
#2110Custom Order Numbers for WooCommerce3563220k+Non-prefixed hook name
#2111Custom Order Status for WooCommerce35415510k+Non-prefixed hook name
#2112Custom Price for WooCommerce35393k+Non-prefixed global variable
#2113DarkLooks – Dark Mode Switcher For WordPress3519521900Text Domain Mismatch
#2114Datafeedr Product Sets356022065k+Output is not escaped
#2115Deposits & Partial Payments for WooCommerce351741445k+Text Domain Mismatch
#2116Nexi Checkout35453083k+Dynamic hook name
#2117Dintero Checkout for WooCommerce Payment Methods355848600Text Domain Mismatch
#2118PiWeb Disable payment method / Partial payment for WooCommerce35552214k+Non-prefixed class
#2119Disable and Remove Google Fonts | GDPR & DSGVO friendly352111100k+Missing Translators Comment
#2120Disable XML-RPC-API3544452100k+Text Domain Mismatch
#2121DOOFINDER Search and Discovery for WP & WooCommerce351511202k+Text Domain Mismatch
#2122Dropshipping XML for WooCommerce35927800Non-prefixed global variable
#2123Duplica – Duplicate Posts, Pages, Custom Posts or Users3514312k+Non-prefixed global variable
#2124Easy Dash for LearnDash3562388700Text Domain Mismatch
#2125Easy Post Types and Fields351381351k+Text Domain Mismatch
#2126Product Bundle Builder for WooCommerce351521386k+Text Domain Mismatch
#2127Easy Social Icons3518215820k+Output is not escaped
#2128Easy Watermark35825330k+Non-prefixed global variable
#2129Gutenberg Blocks Library & Toolkit – Editor Plus3527116k+Text Domain Mismatch
#2130Elementor Website Builder – more than just a page builder354642810m+Non-prefixed global variable
#2131Elements Hive for Breakdance3576251k+Output is not escaped
#2132Embed Extended – Embed Maps, Videos, Websites, Source Codes, and more3510292400Non-prefixed global variable
#2133Embed PDF Viewer351220k+Hidden files included
#2134Embed Privacy35104110k+slow db query meta key
#2135WP Rocket | Simple LoadCSS Preloader357164k+Non-prefixed global variable
#2136Ever Compare – Products Compare Plugin for WooCommerce35223600Non-prefixed global variable
#2137EWWW Image Optimizer352257311m+Direct Query
#2138AI Popup Builder & Popup Maker by OptiMonk3581654k+Text Domain Mismatch
#2139Expire User Passwords353153k+Nonce verification recommended
#2140Export Featured Images35176671k+Output is not escaped
#2141External Links Overview3557200800Non-prefixed global variable
#2142Instant Indexing for Google351362200k+Non-prefixed global variable
#2143Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager35646480k+Non-prefixed global variable
#2144Flexible PDF Coupons – Gift Cards & Vouchers for WooCommerce358202k+Non-prefixed global variable
#2145Flexible PDF Invoices for WooCommerce & WordPress3515556k+Non-prefixed global variable
#2146Flexible Refund for WooCommerce – EU One Click Return35582k+Non-prefixed global variable
#2147Flexible Subscriptions35462491k+Non-prefixed global variable
#2148Events Calendar by FooEvents3557594k+Non-prefixed global variable
#2149FooGallery Migrate35412321k+Non-prefixed global variable
#2150Force Reinstall35118342k+Output is not escaped