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 |
|---|---|---|---|---|---|---|---|---|
| #3051 | Bulk Media Register | 95 | 8 | 35 | 8k+ | Non-prefixed hook name | ||
| #3052 | Custom Login Page Customizer | 95 | 3 | 55 | 50k+ | Non-prefixed global variable | ||
| #3053 | Customify | 95 | 1 | 101 | 10k+ | Non-prefixed global variable | ||
| #3054 | Email Log | 95 | 5 | 53 | 80k+ | Non-prefixed hook name | ||
| #3055 | Statify – Extended Evaluation | 95 | 2 | 119 | 20k+ | Non-prefixed global variable | ||
| #3056 | Widgets for Reviews & Recommendations | 95 | 340 | 8k+ | Non-prefixed global variable | |||
| #3057 | Htaccess File Editor – Easily Edit, Backup, Restore .htaccess file | 95 | 11 | 15 | 10k+ | Non-prefixed global variable | ||
| #3058 | Language Switcher for Transposh | 95 | 22 | 68 | 1k+ | Non-prefixed global variable | ||
| #3059 | Lemmony Companion | 95 | 13 | 5 | 2k+ | block api version too low | ||
| #3060 | Liveblog | 95 | 22 | 34 | 1k+ | Non-prefixed global variable | ||
| #3061 | MilesWeb Tools | 95 | 4 | 49 | 10k+ | Non-prefixed global variable | ||
| #3062 | MotoPress Hotel Booking for Divi | 95 | 22 | 11 | 1k+ | Missing direct file access protection | ||
| #3063 | Multibanco, MB WAY, Credit card, Apple Pay, Google Pay, Payshop, Cofidis Pay, and PIX (ifthenpay) for WooCommerce | 95 | 86 | 8k+ | Non-prefixed function | |||
| #3064 | Mystery Themes Demo Importer | 95 | 76 | 7k+ | Non-prefixed global variable | |||
| #3065 | Post Lockdown | 95 | 4 | 3 | 1k+ | Missing direct file access protection | ||
| #3066 | Posts in Page | 95 | 10 | 12 | 10k+ | date date | ||
| #3067 | Widgets for Booking.com Reviews | 95 | 348 | 8k+ | Non-prefixed global variable | |||
| #3068 | WP Tripadvisor Review Widgets | 95 | 347 | 20k+ | Non-prefixed global variable | |||
| #3069 | Simple Spoiler | 95 | 1 | 8 | 2k+ | Non-prefixed global variable | ||
| #3070 | Supreme Maps | 95 | 38 | 15 | 2k+ | Text Domain Mismatch | ||
| #3071 | Timeline Module for Beaver Builder | 95 | 217 | 29 | 2k+ | Text Domain Mismatch | ||
| #3072 | WCBoost – Variation Swatches | 95 | 1 | 11 | 50k+ | Non-prefixed hook name | ||
| #3073 | WebMan Templates | 95 | 1 | 3 | 1k+ | Non-prefixed global variable | ||
| #3074 | Minicart for WooCommerce | 95 | 1 | 59 | 1k+ | Non-prefixed global variable | ||
| #3075 | Print Invoice & Delivery Notes for WooCommerce | 95 | 5 | 57 | 30k+ | Non-prefixed global variable | ||
| #3076 | SNY Auto Featured Image | 95 | 41 | 5 | 1k+ | Text Domain Mismatch | ||
| #3077 | Widgets for Google Reviews | 95 | 340 | 900k+ | Non-prefixed global variable | |||
| #3078 | WPC Buy Now Button for WooCommerce | 95 | 18 | 10k+ | Non-prefixed class | |||
| #3079 | WPGlobus | 95 | 3 | 83 | 9k+ | Non-prefixed global variable | ||
| #3080 | WP Telegram (Auto Post and Notifications) | 95 | 8 | 15 | 30k+ | Non-prefixed function | ||
| #3081 | WP Telegram Widget and Join Link | 95 | 13 | 18 | 4k+ | Missing direct file access protection | ||
| #3082 | WebberZone Snippetz – Header, Body and Footer manager | 96 | 1 | 53 | 2k+ | Dynamic hook name | ||
| #3083 | Addonify – Quick View For WooCommerce | 96 | 15 | 21 | 1k+ | Non-prefixed global variable | ||
| #3084 | Directorist AddonsKit for Elementor | 96 | 4 | 33 | 10k+ | Non-prefixed global variable | ||
| #3085 | AffiliateX – Amazon Affiliate Plugin, Product Boxes, Comparison Tables & Affiliate Link Tracking | 96 | 73 | 10k+ | Non-prefixed global variable | |||
| #3086 | AI Bud – AI Content Generator, AI Chatbot, ChatGPT, Gemini, GPT-4o | 96 | 5 | 54 | 2k+ | Non-prefixed global variable | ||
| #3087 | Analytify – Dashboard Widget for Google Analytics | 96 | 21 | 12 | 10k+ | wp function not compatible with requires wp | ||
| #3088 | Transient Cleaner | 96 | 3 | 64 | 1k+ | Non-prefixed global variable | ||
| #3089 | Auto Delete Applications – Add-on for WP Job Openings | 96 | 19 | 14 | 1k+ | Text Domain Mismatch | ||
| #3090 | Better Block Editor (BBE) | 96 | 2 | 51 | 5k+ | Non-prefixed global variable | ||
| #3091 | Bit SMTP – Easy SMTP Solution with Email Logs | 96 | 6 | 13 | 2k+ | Missing Version | ||
| #3092 | Bulk Datetime Change | 96 | 3 | 18 | 6k+ | Non-prefixed global variable | ||
| #3093 | Button Generator – Easily Create Custom Buttons with Icons and Analytics | 96 | 8 | 68 | 5k+ | Non-prefixed global variable | ||
| #3094 | Easy Footnotes | 96 | 6 | 22 | 8k+ | Non-prefixed global variable | ||
| #3095 | Elements Plus! | 96 | 11 | 20 | 6k+ | Non-prefixed function | ||
| #3096 | Enable SVG, WebP, and ICO Upload | 96 | 12 | 16 | 10k+ | Non-prefixed global variable | ||
| #3097 | Events Tracker for Elementor | 96 | 4 | 10 | 10k+ | Non-prefixed constant | ||
| #3098 | Fixed Bottom Menu | 96 | 15 | 45 | 5k+ | Non-prefixed hook name | ||
| #3099 | Shipping Live Rates for FedEx for WooCommerce | 96 | 4 | 10 | 2k+ | Non-prefixed global variable | ||
| #3100 | Shipping Live Rates for USPS for WooCommerce | 96 | 4 | 11 | 2k+ | Non-prefixed global variable |