WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
Non-prefixed constant
The plugin defines a constant 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 constant 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 |
|---|---|---|---|---|---|---|---|---|
| #2151 | WooCommerce Square | 78 | 6 | 266 | 80k+ | Non-prefixed hook name | ||
| #2152 | Klaviyo | 79 | 26 | 86 | 100k+ | Non-prefixed function | ||
| #2153 | Location Weather – WordPress Weather Forecast, Air Quality & Weather Widget | 79 | 567 | 10k+ | Non-prefixed global variable | |||
| #2154 | Oxyplug Preload | 79 | 7 | 9 | 500 | Output is not escaped | ||
| #2155 | Flutterwave Payments | 79 | 8 | 39 | 700 | Non-prefixed global variable | ||
| #2156 | Real Category Management: Content Management in Category Folders | 79 | 4 | 73 | 2k+ | Non-prefixed constant | ||
| #2157 | Remove noreferrer | 79 | 17 | 14 | 5k+ | Missing Arg Domain | ||
| #2158 | Retainful – WooCommerce Abandoned Cart, Newsletters, Email Marketing, Signup Forms and Automation | 79 | 15 | 26 | 1k+ | Non-prefixed hook name | ||
| #2159 | WPC Additional Variation Images for WooCommerce | 79 | 4 | 26 | 800 | Non-prefixed class | ||
| #2160 | ShopEngine Gutenberg WooCommerce Builder Blocks Addon – All in One WooCommerce Solution | 80 | 424 | 735 | 3k+ | Non-prefixed global variable | ||
| #2161 | Cost Calculator for Elementor | 80 | 223 | 17 | 500 | wp function not compatible with requires wp | ||
| #2162 | Flipbox | 80 | 14 | 17 | 2k+ | wp function not compatible with requires wp | ||
| #2163 | Hizzle CAPTCHA – Protect your forms from spam | 80 | 4 | 27 | 500 | Non-prefixed global variable | ||
| #2164 | Mu Manager – Manage mu-plugins like standard plugins | 80 | 21 | 18 | 800 | Missing Arg Domain | ||
| #2165 | Order Approval for Woocommerce | 80 | 4 | 208 | 1k+ | Non-prefixed global variable | ||
| #2166 | RealHomes Currency Switcher | 80 | 71 | 42 | 1k+ | Non Singular String Literal Domain | ||
| #2167 | Smart Passworded Pages | 80 | 11 | 8 | 2k+ | wp function not compatible with requires wp | ||
| #2168 | SureMail – SMTP and Email Logs Plugin with Amazon SES, Postmark, and Other Providers | 80 | 45 | 65 | 200k+ | Non-prefixed hook name | ||
| #2169 | Trust Payments Gateway for WooCommerce | 80 | 15 | 17 | 400 | Non-prefixed class | ||
| #2170 | Melapress File Monitor | 80 | 16 | 90 | 5k+ | Non-prefixed global variable | ||
| #2171 | Mini Cart Drawer For WooCommerce | 80 | 4 | 25 | 500 | Non-prefixed hook name | ||
| #2172 | Product Feed PRO for WooCommerce by AdTribes – Product Feeds for WooCommerce | 80 | 9 | 445 | 80k+ | Non-prefixed hook name | ||
| #2173 | GoCardless for WooCommerce | 80 | 60 | 1k+ | Non-prefixed class | |||
| #2174 | WP Social Ninja – Embed Social Feeds, User Reviews & Chat Widgets | 80 | 26 | 18 | 30k+ | Missing direct file access protection | ||
| #2175 | cookie-cat | 81 | 14 | 27 | 1k+ | Non-prefixed function | ||
| #2176 | Joinchat – Enhanced "click to chat" | 81 | 18 | 32 | 700k+ | wp function not compatible with requires wp | ||
| #2177 | eCommerce Shipping Dashboard by UPS for WooCommerce | 81 | 6 | 35 | 1k+ | Non-prefixed constant | ||
| #2178 | ElasticPress | 81 | 13 | 655 | 8k+ | Non-prefixed hook name | ||
| #2179 | Fullwidth Templates for Any Theme & Page Builder | 81 | 12 | 23 | 20k+ | Non-prefixed constant | ||
| #2180 | Hostinger Tools | 81 | 14 | 22 | 3m+ | wp function not compatible with requires wp | ||
| #2181 | GIFTiT – Free Gifts for WooCommerce | 81 | 43 | 357 | 2k+ | Non-prefixed global variable | ||
| #2182 | Select and Multi-Select Field for Contact Form 7 | 81 | 25 | 12 | 2k+ | Text Domain Mismatch | ||
| #2183 | Stream | 81 | 5 | 80 | 80k+ | Direct Query | ||
| #2184 | Appointment Bookings for Zoom GoogleMeet and more – Wappointment | 81 | 22 | 52 | 1k+ | Non-prefixed class | ||
| #2185 | ShipStation for WooCommerce | 81 | 34 | 40k+ | Non-prefixed class | |||
| #2186 | Colibri Page Builder | 82 | 138 | 31 | 90k+ | Missing direct file access protection | ||
| #2187 | Head & Footer Code | 82 | 1 | 15 | 100k+ | Non-prefixed constant | ||
| #2188 | Lazy Load for Videos | 82 | 6 | 37 | 9k+ | Non-prefixed constant | ||
| #2189 | OpenPix for WooCommerce | 82 | 69 | 28 | 500 | wp function not compatible with requires wp | ||
| #2190 | PixTypes | 82 | 178 | 9k+ | Non-prefixed global variable | |||
| #2191 | Product Compare for WooCommerce | 82 | 6 | 42 | 3k+ | Non-prefixed global variable | ||
| #2192 | Advanced Appointment Booking & Scheduling | 83 | 11 | 13 | 3k+ | Text Domain Mismatch | ||
| #2193 | Integration of Bitrix24 with Contact Form 7 | 83 | 14 | 40 | 600 | Non-prefixed function | ||
| #2194 | All-in-One Microsoft 365 & Entra ID / Azure AD SSO Login | 83 | 182 | 22 | 600 | wp function not compatible with requires wp | ||
| #2195 | Max Addons for Bricks Builder | 83 | 6 | 29 | 1k+ | Post Not In exclude | ||
| #2196 | Menu Duplicator | 83 | 2 | 9 | 10k+ | Non-prefixed constant | ||
| #2197 | NETSENSAI Shield | 83 | 10 | 16 | 1k+ | Nonce verification recommended | ||
| #2198 | PDF Generator for WordPress | 83 | 10 | 198 | 1k+ | Non-prefixed global variable | ||
| #2199 | Photo Sphere Viewer – 360° Panorama, Virtual Tour, 360 Video & AR 3D Model Viewer | 83 | 13 | 10 | 500 | wp function not compatible with requires wp | ||
| #2200 | Easy Photography Portfolio | 83 | 38 | 33 | 2k+ | Missing direct file access protection |