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 | Updated | Top Issue |
|---|---|---|---|---|---|---|---|
| #3101 | Shipping Live Rates for FedEx for WooCommerce | 96 | 4 | 10 | 2k+ | Non Prefixed Variable Found | |
| #3102 | Shipping Live Rates for USPS for WooCommerce | 96 | 4 | 11 | 2k+ | Non Prefixed Variable Found | |
| #3103 | Float menu – awesome floating side menu | 96 | 9 | 103 | 30k+ | Non Prefixed Variable Found | |
| #3104 | Force Refresh | 96 | 15 | 13 | 4k+ | missing direct file access protection | |
| #3105 | Fresh Forms for Gravity | 96 | 7 | 6 | 3k+ | Non Prefixed Constant Found | |
| #3106 | Kit (formerly ConvertKit) for WPForms | 96 | 11 | 16 | 1k+ | Non Prefixed Variable Found | |
| #3107 | Meta Box | 96 | 5 | 16 | 500k+ | Non Prefixed Hookname Found | |
| #3108 | Divi Masonry Gallery – Pro Gallery | 96 | 54 | 16 | 2k+ | Text Domain Mismatch | |
| #3109 | QODE Variation Swatches for WooCommerce | 96 | 1 | 87 | 1k+ | Non Prefixed Variable Found | |
| #3110 | Widgets for Airbnb Reviews | 96 | 345 | 6k+ | Non Prefixed Variable Found | ||
| #3111 | Widgets for Amazon Reviews | 96 | 348 | 2k+ | Non Prefixed Variable Found | ||
| #3112 | Widgets for Yelp Reviews | 96 | 345 | 2k+ | Non Prefixed Variable Found | ||
| #3113 | Simple GDPR Cookie Compliance | 96 | 10 | 16 | 5k+ | Non Prefixed Variable Found | |
| #3114 | ThemeZee Magazine Blocks | 96 | 8 | 51 | 4k+ | Non Prefixed Variable Found | |
| #3115 | Top Level Categories | 96 | 5 | 1 | 2k+ | Non Prefixed Variable Found | |
| #3116 | Display Eventbrite Events | 96 | 31 | 3k+ | error log print r | ||
| #3117 | Cart Weight for WooCommerce | 96 | 5 | 12 | 1k+ | Non Prefixed Variable Found | |
| #3118 | Variation Images Gallery for WooCommerce | 96 | 87 | 10k+ | Non Prefixed Variable Found | ||
| #3119 | Claudio Sanches – Correios for WooCommerce | 96 | 8 | 15 | 30k+ | Non Prefixed Variable Found | |
| #3120 | Htaccess File Editor – Safely Edit Htaccess File | 96 | 4 | 15 | 40k+ | Non Prefixed Variable Found | |
| #3121 | WP Reset | 96 | 8 | 31 | 300k+ | Non Prefixed Variable Found | |
| #3122 | WPC Linked Variation for WooCommerce | 96 | 10 | 15 | 3k+ | wp function not compatible with requires wp | |
| #3123 | WPC Product Videos for WooCommerce | 96 | 5 | 15 | 3k+ | Non Prefixed Class Found | |
| #3124 | WPC Sticky Add To Cart for WooCommerce | 96 | 5 | 17 | 2k+ | Non Prefixed Class Found | |
| #3125 | 301 Redirects & 404 Error Log | 97 | 4 | 20 | 30k+ | Non Prefixed Variable Found | |
| #3126 | Accessibility Widget by OneTap – Easy One-Click Accessibility Toolbar | 97 | 5 | 18 | 50k+ | Non Prefixed Variable Found | |
| #3127 | ACF: Better Search | 97 | 11 | 10 | 40k+ | missing direct file access protection | |
| #3128 | Advanced Google reCAPTCHA | 97 | 3 | 15 | 200k+ | Non Prefixed Variable Found | |
| #3129 | atec Cache Info | 97 | 23 | 1 | 1k+ | wp function not compatible with requires wp | |
| #3130 | Before + After Images for Divi | 97 | 12 | 3 | 3k+ | missing direct file access protection | |
| #3131 | Booking.com Product Helper | 97 | 2 | 8 | 1k+ | Non Prefixed Variable Found | |
| #3132 | Captcha Code | 97 | 17 | 12 | 100k+ | wp function not compatible with requires wp | |
| #3133 | Categories in Hierarchical Order | 97 | 1 | 5 | 2k+ | Non Prefixed Function Found | |
| #3134 | Creativ Demo Importer | 97 | 1 | 40 | 2k+ | Non Prefixed Variable Found | |
| #3135 | Custom Shipping Methods for WooCommerce – Create Weight based Shipping, Conditional Shipping, Table Rate Shipping and much more | 97 | 2 | 32 | 3k+ | Non Prefixed Variable Found | |
| #3136 | Meta Field Block – Display custom fields in the Block Editor without coding | 97 | 1 | 11 | 10k+ | Non Prefixed Hookname Found | |
| #3137 | Email Customizer for WooCommerce | Drag and Drop Email Templates Builder | 97 | 65 | 9k+ | Non Prefixed Hookname Found | ||
| #3138 | Flexible Cookies | 97 | 5 | 39 | 3k+ | Non Prefixed Variable Found | |
| #3139 | FlexiType Lite | 97 | 2 | 14 | 1k+ | Non Prefixed Variable Found | |
| #3140 | Gallery Block by Galleryberg: Lightbox with Tiles, Masonry, Square, & Justified Layouts | 97 | 132 | 1k+ | Non Prefixed Variable Found | ||
| #3141 | Genesis Portfolio Pro | 97 | 9 | 16 | 5k+ | Non Prefixed Variable Found | |
| #3142 | Address Autocomplete via Google for Gravity Forms | 97 | 1 | 25 | 2k+ | Non Prefixed Variable Found | |
| #3143 | GutenBee – Gutenberg Blocks | 97 | 7 | 10 | 7k+ | missing direct file access protection | |
| #3144 | Laravel DD for WordPress | 97 | 3 | 6 | 1k+ | Non Prefixed Function Found | |
| #3145 | Loggedin – Limit Concurrent Sessions | 97 | 11 | 7 | 8k+ | missing direct file access protection | |
| #3146 | No Right Click Images | 97 | 14 | 13 | 20k+ | wp function not compatible with requires wp | |
| #3147 | Olark Live Chat | 97 | 3 | 16 | 1k+ | Non Prefixed Variable Found | |
| #3148 | Order Export for WooCommerce | 97 | 31 | 2k+ | Missing Version | ||
| #3149 | Performant Translations | 97 | 5 | 9 | 40k+ | Non Prefixed Variable Found | |
| #3150 | PowerFolio – Portfolio & Image Gallery for Elementor | 97 | 10 | 12 | 10k+ | Non Prefixed Hookname Found |