WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
Non-prefixed global variable
The plugin defines a global variable without a plugin-specific prefix.
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.
References
Affected Plugins
| Rank | Plugin | Score | Errors | Warnings | Installs | Added | Updated | Top Issue |
|---|---|---|---|---|---|---|---|---|
| #3151 | Sticky Buttons – Floating Buttons Builder | 97 | 2 | 108 | 10k+ | Non-prefixed global variable | ||
| #3152 | Sticky Menu & Sticky Header | 97 | 4 | 23 | 100k+ | Non-prefixed global variable | ||
| #3153 | Superb Helper | 97 | 5 | 32 | 8k+ | Non-prefixed global variable | ||
| #3154 | SVG Support | 97 | 1 | 27 | 1m+ | Non-prefixed global variable | ||
| #3155 | TinyMCE Clear Float | 97 | 2 | 4 | 10k+ | Missing direct file access protection | ||
| #3156 | Unique Headers | 97 | 12 | 6 | 10k+ | Missing Translators Comment | ||
| #3157 | Proxy Cache Purge | 97 | 44 | 50k+ | Non-prefixed hook name | |||
| #3158 | GSheetConnector for WooCommerce – Send your Orders and Products to Google Sheet in Real-Time | 97 | 34 | 3k+ | Non-prefixed constant | |||
| #3159 | WCBoost – Wishlist | 97 | 2 | 29 | 50k+ | Non-prefixed global variable | ||
| #3160 | WPC Fly Cart for WooCommerce | 97 | 32 | 10k+ | Non-prefixed hook name | |||
| #3161 | Social Media Feed Gallery – Fetch Posts & Reels | 97 | 1 | 25 | 2k+ | Non-prefixed global variable | ||
| #3162 | LightPress Lightbox | 97 | 33 | 4 | 40k+ | Text Domain Mismatch | ||
| #3163 | WPC Product Size Chart for WooCommerce | 97 | 19 | 2k+ | Non-prefixed class | |||
| #3164 | zipaddr-jp | 97 | 3 | 52 | 50k+ | Non-prefixed global variable | ||
| #3165 | Animated Typed JS Shortcode | 98 | 1 | 2 | 1k+ | Non-prefixed global variable | ||
| #3166 | Archive Title | 98 | 2 | 11 | 1k+ | Non-prefixed global variable | ||
| #3167 | Author Bio Box | 98 | 1 | 6 | 1k+ | Non-prefixed global variable | ||
| #3168 | Auto Update Plugins | 98 | 1 | 6 | 1k+ | trademarked term | ||
| #3169 | Autoremove Attachments | 98 | 2 | 5 | 3k+ | Non-prefixed function | ||
| #3170 | Blocks CSS: CSS Editor for Gutenberg Blocks | 98 | 1 | 13 | 5k+ | Non-prefixed global variable | ||
| #3171 | Broken Link Checker by AIOSEO – Find & Fix Broken Internal, External & Video Links | 98 | 1 | 15 | 300k+ | Non-prefixed global variable | ||
| #3172 | Clone Posts | 98 | 5 | 5 | 10k+ | Missing Arg Domain | ||
| #3173 | Creativ Demo Importer | 98 | 41 | 2k+ | Non-prefixed global variable | |||
| #3174 | Disable Generate Thumbnails | 98 | 1 | 14 | 6k+ | Non-prefixed global variable | ||
| #3175 | Easy Hide Login | 98 | 3 | 12 | 20k+ | Non-prefixed global variable | ||
| #3176 | Easyship WooCommerce Shipping Rates | 98 | 1 | 16 | 2k+ | Direct Query | ||
| #3177 | Flexible Quantity – Measurement Price Calculator for WooCommerce | 98 | 2 | 9 | 2k+ | Non-prefixed global variable | ||
| #3178 | Flexible Table Block | 98 | 4 | 7 | 40k+ | Non-prefixed constant | ||
| #3179 | Genesis Simple Menus | 98 | 3 | 15 | 2k+ | Non-prefixed global variable | ||
| #3180 | HBAgency | 98 | 1 | 16 | 9k+ | Non-prefixed global variable | ||
| #3181 | Image Picker For Gravity Forms | 98 | 21 | 1k+ | Non-prefixed global variable | |||
| #3182 | MB Elementor Integration | 98 | 2 | 3 | 2k+ | Non-prefixed global variable | ||
| #3183 | Mime Types Plus | 98 | 1 | 12 | 10k+ | Non-prefixed global variable | ||
| #3184 | Instant Back/Forward | 98 | 1 | 5 | 10k+ | Non-prefixed hook name | ||
| #3185 | External Links in New Window / New Tab | 98 | 2 | 13 | 30k+ | Non-prefixed global variable | ||
| #3186 | Plus WebP or AVIF | 98 | 24 | 5k+ | Non-prefixed global variable | |||
| #3187 | ShareThis Share Buttons | 98 | 29 | 10k+ | Non-prefixed global variable | |||
| #3188 | Simple Shortcode for Google Maps | 98 | 2 | 5 | 3k+ | Non-prefixed hook name | ||
| #3189 | Snapchat for WooCommerce | 98 | 1 | 12 | 60k+ | Dynamic hook name | ||
| #3190 | Superb Recent Posts With Thumbnail Images | 98 | 6 | 6 | 6k+ | Non-prefixed global variable | ||
| #3191 | TutorMate | 98 | 3 | 2 | 10k+ | Missing Translators Comment | ||
| #3192 | WCBoost – Products Compare | 98 | 17 | 40k+ | Non-prefixed global variable | |||
| #3193 | WebFinger | 98 | 3 | 8 | 1k+ | Non-prefixed function | ||
| #3194 | WPC Added To Cart Notification for WooCommerce | 98 | 17 | 3k+ | Non-prefixed class | |||
| #3195 | Table Rate Shipping for WooCommerce | 98 | 12 | 20k+ | Non-prefixed function | |||
| #3196 | WP Edit Username | 98 | 1 | 14 | 2k+ | Non-prefixed hook name | ||
| #3197 | WPC Linked Variation for WooCommerce | 98 | 15 | 3k+ | Non-prefixed class | |||
| #3198 | WPC Name Your Price for WooCommerce | 98 | 16 | 6k+ | Non-prefixed class | |||
| #3199 | WPC Product Videos for WooCommerce | 98 | 15 | 3k+ | Non-prefixed class | |||
| #3200 | WPC Sticky Add To Cart for WooCommerce | 98 | 17 | 2k+ | Non-prefixed class |