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 |
|---|---|---|---|---|---|---|---|---|
| #2401 | Prevent Direct Access – Protect WordPress Files | 96 | 4 | 26 | 10k+ | Non-prefixed constant | ||
| #2402 | Team Members | 96 | 15 | 16 | 20k+ | Missing direct file access protection | ||
| #2403 | Timeline Blocks for Gutenberg | 96 | 5 | 25 | 500 | Non-prefixed class | ||
| #2404 | Wikipedia Preview | 96 | 8 | 15 | 1k+ | Non-prefixed function | ||
| #2405 | Cart Weight for WooCommerce | 96 | 5 | 12 | 1k+ | Non-prefixed global variable | ||
| #2406 | WP Flipclock | 96 | 7 | 8 | 700 | Missing direct file access protection | ||
| #2407 | Lucky Wheel Giveaway | 96 | 3 | 27 | 500 | Non-prefixed constant | ||
| #2408 | WP Offload SES Lite | 96 | 541 | 5 | 10k+ | Text Domain Mismatch | ||
| #2409 | Advanced Addons – Animation and Custom CSS for Gutenberg and Elementor | 97 | 1 | 8 | 700 | Not In Footer | ||
| #2410 | Advanced Google reCAPTCHA | 97 | 3 | 15 | 200k+ | Non-prefixed global variable | ||
| #2411 | Aruba HiSpeed Cache | 97 | 12 | 5 | 100k+ | wp function not compatible with requires wp | ||
| #2412 | Contact Form to Any API | 97 | 1 | 15 | 8k+ | Non-prefixed class | ||
| #2413 | Markdown Editor (Formerly Dark Mode) | 97 | 2 | 19 | 1k+ | Non-prefixed function | ||
| #2414 | Meta Field Block – Display custom fields in the Block Editor without coding | 97 | 1 | 11 | 10k+ | Non-prefixed hook name | ||
| #2415 | Easy Lightbox – Image, Gallery and Video Lightbox for WordPress | 97 | 2 | 5 | 1k+ | trademarked term | ||
| #2416 | Favicon by RealFaviconGenerator | 97 | 10 | 18 | 200k+ | Non-prefixed constant | ||
| #2417 | Geo Redirect | 97 | 10 | 1 | 1k+ | Missing direct file access protection | ||
| #2418 | Address Autocomplete via Google for Gravity Forms | 97 | 1 | 25 | 2k+ | Non-prefixed global variable | ||
| #2419 | Power Boost for Gravity Forms | 97 | 7 | 10 | 500 | wp function not compatible with requires wp | ||
| #2420 | PowerPack for LearnDash | 97 | 173 | 8 | 1k+ | Text Domain Mismatch | ||
| #2421 | Spiraclethemes Site Library | 97 | 27 | 1k+ | Non-prefixed global variable | |||
| #2422 | Proxy Cache Purge | 97 | 44 | 50k+ | Non-prefixed hook name | |||
| #2423 | Remote Website Management by Watchful | 97 | 4 | 12 | 3k+ | Direct Query | ||
| #2424 | Watermark RELOADED | 97 | 6 | 3 | 700 | Non-prefixed constant | ||
| #2425 | GSheetConnector for WooCommerce – Send your Orders and Products to Google Sheet in Real-Time | 97 | 34 | 3k+ | Non-prefixed constant | |||
| #2426 | Ozow Gateway for WooCommerce | 97 | 2 | 10 | 800 | Non-prefixed constant | ||
| #2427 | WPC Fly Cart for WooCommerce | 97 | 32 | 10k+ | Non-prefixed hook name | |||
| #2428 | Faview – Virtual Reviews for WooCommerce | 97 | 3 | 19 | 8k+ | Non-prefixed constant | ||
| #2429 | WordPress Beta Tester | 97 | 1 | 15 | 3k+ | Non-prefixed hook name | ||
| #2430 | WPArtisan Filename Sanitizer | 97 | 2 | 5 | 400 | trademarked term | ||
| #2431 | WPC Coupon Listing for WooCommerce | 97 | 4 | 18 | 1k+ | Non-prefixed class | ||
| #2432 | WPC Product Size Chart for WooCommerce | 97 | 19 | 2k+ | Non-prefixed class | |||
| #2433 | WPC Share Cart for WooCommerce | 97 | 32 | 1k+ | Non-prefixed hook name | |||
| #2434 | Smart Coupons For WooCommerce Coupons | 97 | 3 | 58 | 30k+ | Non-prefixed class | ||
| #2435 | Blocks for ACF Fields — Display Custom Fields in the Block Editor | 98 | 21 | 1k+ | Non-prefixed hook name | |||
| #2436 | Airi Demo Importer | 98 | 1 | 7 | 1k+ | Deprecated function: get_page_by_title | ||
| #2437 | Style Kits for Elementor | 98 | 2 | 15 | 10k+ | Non-prefixed constant | ||
| #2438 | Accordion – Responsive Horizontal & Vertical Accordion Block | 98 | 1 | 10 | 600 | Non-prefixed constant | ||
| #2439 | Block for Font Awesome | 98 | 7 | 4 | 1k+ | Offloaded Content | ||
| #2440 | Content Blocks Builder – Create blocks, repeater blocks with carousel, grid, popup layouts | 98 | 38 | 1k+ | Non-prefixed hook name | |||
| #2441 | Bisteinoff SEO Robots.txt | 98 | 6 | 2 | 500 | wp function not compatible with requires wp | ||
| #2442 | ElasticPress Debugging Add-On | 98 | 2 | 10 | 800 | Non-prefixed hook name | ||
| #2443 | WebToffee eCommerce Marketing Automation – Email marketing, Popups, Email customizer | 98 | 2 | 12 | 10k+ | Non-prefixed class | ||
| #2444 | Easy Access Reusable Blocks | 98 | 3 | 3 | 500 | Non-prefixed constant | ||
| #2445 | Easy Primary Category | 98 | 2 | 5 | 1k+ | Non-prefixed constant | ||
| #2446 | Find My Blocks – Locate blocks on your site | 98 | 2 | 7 | 4k+ | Non-prefixed function | ||
| #2447 | Flexible Table Block | 98 | 4 | 7 | 40k+ | Non-prefixed constant | ||
| #2448 | GUI for List Category Posts | 98 | 6 | 1 | 600 | Missing direct file access protection | ||
| #2449 | Item Lists for Elementor | 98 | 1 | 49 | 1k+ | Non-prefixed global variable | ||
| #2450 | Latest Post Shortcode | 98 | 5 | 6 | 4k+ | Non-prefixed constant |