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 |
|---|---|---|---|---|---|---|---|---|
| #2301 | LegalBlink for Aruba | 91 | 33 | 29 | 7k+ | Missing direct file access protection | ||
| #2302 | Mesmerize Companion | 91 | 27 | 91 | 60k+ | Non-prefixed global variable | ||
| #2303 | MultiManager WP – Manage All Your WordPress Sites Easily | 91 | 28 | 11 | 1k+ | Missing Arg Domain | ||
| #2304 | Restricted Site Access | 91 | 14 | 11 | 10k+ | Missing Arg Domain | ||
| #2305 | Slivery Extender | 91 | 557 | 11 | 1k+ | Text Domain Mismatch | ||
| #2306 | Super Light Cache Buster | 91 | 6 | 4 | 700 | Non-prefixed function | ||
| #2307 | Responsive Team Members Showcase, Team Grid, Team Slider, and Staff List – Smart Team (formerly WP Team) | 91 | 4 | 372 | 5k+ | Non-prefixed global variable | ||
| #2308 | Themebeez Toolkit | 91 | 26 | 78 | 8k+ | Non-prefixed class | ||
| #2309 | Tumblr Importer | 91 | 7 | 9 | 10k+ | wp function not compatible with requires wp | ||
| #2310 | Advanced Order Export For WooCommerce | 91 | 475 | 100k+ | Non-prefixed hook name | |||
| #2311 | Custom Product Tabs for WooCommerce & WordPress Tabs Builder – Smart Tabs | 91 | 412 | 10k+ | Non-prefixed global variable | |||
| #2312 | WPC Custom Related Products for WooCommerce | 91 | 26 | 1k+ | Non-prefixed class | |||
| #2313 | XPS Ship Integration | 91 | 58 | 20 | 1k+ | Text Domain Mismatch | ||
| #2314 | Ads.txt Manager | 92 | 4 | 4 | 100k+ | Missing direct file access protection | ||
| #2315 | Cost Calculator for Contact Form 7 – Price Calculator Free | 92 | 261 | 10 | 6k+ | wp function not compatible with requires wp | ||
| #2316 | Confetti Fall Animation | 92 | 2 | 5 | 600 | Non-prefixed class | ||
| #2317 | Cryptocurrency Widgets – Price Ticker & Coins List | 92 | 4 | 36 | 7k+ | Non-prefixed global variable | ||
| #2318 | Product Gallery Slider, Additional Variation Images, Product Video, Product Image Zoom and Lightbox for WooCommerce – WooGallery | 92 | 6 | 30 | 20k+ | Non-prefixed global variable | ||
| #2319 | Hoot Import | 92 | 1 | 10 | 1k+ | Direct Query | ||
| #2320 | MB Relationships | 92 | 28 | 1k+ | Non-prefixed class | |||
| #2321 | Yoga Schedule Momoyoga | 92 | 3 | 2 | 1k+ | Missing Version | ||
| #2322 | Stencil | 92 | 6 | 8 | 1k+ | Non-prefixed function | ||
| #2323 | TP WooCommerce Product Gallery | 92 | 4 | 9 | 1k+ | Non-prefixed function | ||
| #2324 | Product Category Slider & Grid for WooCommerce – WooCategory | 92 | 317 | 9k+ | Non-prefixed global variable | |||
| #2325 | WooCommerce Accommodation Bookings | 92 | 1 | 91 | 1k+ | Non-prefixed global variable | ||
| #2326 | Menu Cart for WooCommerce | 92 | 102 | 16 | 80k+ | Text Domain Mismatch | ||
| #2327 | WPC AJAX Add to Cart for WooCommerce | 92 | 28 | 10k+ | Non-prefixed hook name | |||
| #2328 | WPC Price by Quantity for WooCommerce | 92 | 37 | 1k+ | Non-prefixed global variable | |||
| #2329 | Advanced Views – Display Custom Fields (ACF, Pods, MetaBox), Posts, CPT and Woo Products anywhere in Gutenberg, Elementor, Divi, Beaver… | 93 | 29 | 42 | 3k+ | Non-prefixed global variable | ||
| #2330 | Blocks Kit – Gutenberg Blocks for Freelancers | 93 | 1 | 8 | 500 | Non-prefixed constant | ||
| #2331 | Plugin de Clip para WooCommerce | 93 | 13 | 29 | 800 | Non-prefixed global variable | ||
| #2332 | Contextual Related Posts | 93 | 2 | 167 | 50k+ | Non-prefixed hook name | ||
| #2333 | Easy Notify Lite | 93 | 26 | 45 | 400 | Missing Version | ||
| #2334 | Local Google Fonts | 93 | 3 | 15 | 100k+ | Non-prefixed global variable | ||
| #2335 | Order Tip for WooCommerce | 93 | 42 | 68 | 2k+ | Non-prefixed global variable | ||
| #2336 | WebToffee WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels | 93 | 150 | 17 | 50k+ | wp function not compatible with requires wp | ||
| #2337 | Text To Speech TTS Accessibility | 93 | 164 | 3k+ | Non-prefixed hook name | |||
| #2338 | Version Info – Server Health Monitor, PHP & MySQL Version Display, Environment Indicators | 93 | 13 | 10k+ | Request data is not unslashed | |||
| #2339 | Product Author for WooCommerce | 93 | 3 | 6 | 500 | Missing direct file access protection | ||
| #2340 | Carousel, Slider, Photo Gallery with Lightbox, Video Slider, by WP Carousel | 93 | 244 | 70k+ | Non-prefixed global variable | |||
| #2341 | External Links – nofollow, noopener & new window | 93 | 24 | 67 | 90k+ | Non-prefixed global variable | ||
| #2342 | WP Menu Cart | 93 | 11 | 15 | 7k+ | Non-prefixed hook name | ||
| #2343 | WPC Free Shipping Bar for WooCommerce | 93 | 18 | 3k+ | Non-prefixed class | |||
| #2344 | WPC Variation Duplicator for WooCommerce | 93 | 18 | 400 | Non-prefixed class | |||
| #2345 | WPC Variations Radio Buttons for WooCommerce | 93 | 18 | 6k+ | Non-prefixed class | |||
| #2346 | ACF Options For Polylang | 94 | 9 | 23 | 10k+ | Non-prefixed constant | ||
| #2347 | API KEY for Google Maps | 94 | 14 | 5 | 40k+ | Text Domain Mismatch | ||
| #2348 | Cool FormKit Lite – Advanced Form Builder for Elementor | 94 | 5 | 24 | 20k+ | Non-prefixed constant | ||
| #2349 | Hello Plus | 94 | 15 | 38 | 80k+ | Post Not In exclude | ||
| #2350 | Make Connector | 94 | 1 | 9 | 80k+ | Non-prefixed constant |