WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound
Non-prefixed function
The plugin defines a function 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 function 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 |
|---|---|---|---|---|---|---|---|---|
| #3951 | Video Gallery Block – showcase your videos in a filterable gallery | 99 | 3 | 1k+ | Non-prefixed function | |||
| #3952 | Free WooCommerce Products Slider/Carousel Pro | 99 | 11 | 2k+ | Non-prefixed global variable | |||
| #3953 | Express, Certified Post, Bike Delivery and Iranian Postal Companies for WooCommerce | 99 | 1 | 2 | 1k+ | Non-prefixed function | ||
| #3954 | Content Censor | 99 | 4 | 500 | Discouraged text-domain loading | |||
| #3955 | WP Create Multiple Posts & Pages | 99 | 11 | 1k+ | Non-prefixed global variable | |||
| #3956 | Rename WP Media Files Name | 99 | 6 | 500 | Non-prefixed function | |||
| #3957 | Advanced Category and Custom Taxonomy Image | 100 | 2 | 1k+ | Non-prefixed class | |||
| #3958 | CryptX | 100 | 2 | 10k+ | Non-prefixed function | |||
| #3959 | Popup for Elementor | 100 | 2 | 800 | Non-prefixed function | |||
| #3960 | Siteboosterseo | 100 | 1 | 2k+ | Non-prefixed function |