WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedNamespaceFound
Non-prefixed namespace
The plugin defines a namespace 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 namespace 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 |
|---|---|---|---|---|---|---|---|---|
| #201 | Restricted Site Access | 91 | 14 | 11 | 10k+ | Missing Arg Domain | ||
| #202 | Text To Speech TTS Accessibility | 93 | 161 | 3k+ | Non-prefixed hook name | |||
| #203 | ACF Options For Polylang | 94 | 9 | 23 | 10k+ | Non-prefixed constant | ||
| #204 | Dashboard Welcome for Elementor | 94 | 1 | 2 | 20k+ | Non-prefixed class | ||
| #205 | Vertical Timeline Widget for Elementor | 99 | 10 | 10k+ | Non-prefixed function |