WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound
Non-prefixed class
The plugin defines a class 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 class 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 |
|---|---|---|---|---|---|---|---|---|
| #2951 | Lucky Wheel Giveaway | 96 | 3 | 27 | 500 | Non-prefixed constant | ||
| #2952 | WP Reset | 96 | 8 | 31 | 300k+ | Non-prefixed global variable | ||
| #2953 | Follow Us Badges | 96 | 7 | 9 | 1k+ | Non-prefixed global variable | ||
| #2954 | 301 Redirects & 404 Error Log | 97 | 4 | 20 | 30k+ | Non-prefixed global variable | ||
| #2955 | Advanced Addons – Animation and Custom CSS for Gutenberg and Elementor | 97 | 1 | 8 | 700 | Not In Footer | ||
| #2956 | Advanced Google reCAPTCHA | 97 | 3 | 15 | 200k+ | Non-prefixed global variable | ||
| #2957 | Aruba HiSpeed Cache | 97 | 12 | 5 | 100k+ | wp function not compatible with requires wp | ||
| #2958 | Booking.com Product Helper | 97 | 2 | 8 | 1k+ | Discouraged text-domain loading | ||
| #2959 | Captcha Code | 97 | 17 | 12 | 100k+ | wp function not compatible with requires wp | ||
| #2960 | Custom Shipping Methods for WooCommerce – Create Weight based Shipping, Conditional Shipping, Table Rate Shipping and much more | 97 | 2 | 32 | 3k+ | Non-prefixed global variable | ||
| #2961 | Markdown Editor (Formerly Dark Mode) | 97 | 2 | 19 | 1k+ | Non-prefixed function | ||
| #2962 | Easy Widget Columns | 97 | 3 | 17 | 400 | Non-prefixed global variable | ||
| #2963 | Email Customizer for WooCommerce | Drag and Drop Email Templates Builder | 97 | 65 | 9k+ | Non-prefixed hook name | |||
| #2964 | Emalls Extraction API – Official | 97 | 3 | 3 | 6k+ | Non-prefixed class | ||
| #2965 | Exif Caption | 97 | 3 | 25 | 600 | Non-prefixed global variable | ||
| #2966 | Fake Pay For WooCommerce | 97 | 13 | 1 | 1k+ | Text Domain Mismatch | ||
| #2967 | Favicon by RealFaviconGenerator | 97 | 10 | 18 | 200k+ | Non-prefixed constant | ||
| #2968 | Address Autocomplete via Google for Gravity Forms | 97 | 1 | 25 | 2k+ | Non-prefixed global variable | ||
| #2969 | Guten Post Layout – An Advanced Post Grid Collection | 97 | 1 | 13 | 1k+ | Non-prefixed class | ||
| #2970 | Feedback Button – Jotform | 97 | 25 | 10 | 600 | Missing Arg Domain | ||
| #2971 | Linked Variation for WooCommerce | 97 | 2 | 47 | 400 | Non-prefixed global variable | ||
| #2972 | Magic Content & CTA Box Builder – Advanced Gutenberg Blocks for Flexible Page Sections, Headers, Buttons, Shape Dividers, and Layout Options | 97 | 2 | 7 | 6k+ | Missing Version | ||
| #2973 | Nepali Date Converter | 97 | 2 | 25 | 900 | Non-prefixed function | ||
| #2974 | No Right Click Images | 97 | 14 | 13 | 20k+ | wp function not compatible with requires wp | ||
| #2975 | Overwrite Uploads | 97 | 3 | 4 | 1k+ | Missing direct file access protection | ||
| #2976 | Payment gateway via Teya SecurePay for WooCommerce | 97 | 96 | 2 | 1k+ | Text Domain Mismatch | ||
| #2977 | Simple Analytics | 97 | 6 | 3 | 1k+ | Missing Translators Comment | ||
| #2978 | Spiraclethemes Site Library | 97 | 28 | 1k+ | Non-prefixed global variable | |||
| #2979 | Sticky Buttons – Floating Buttons Builder | 97 | 2 | 108 | 10k+ | Non-prefixed global variable | ||
| #2980 | Sticky Menu & Sticky Header | 97 | 4 | 23 | 100k+ | Non-prefixed global variable | ||
| #2981 | Syncee Premium Dropshipping & Wholesale | 97 | 50 | 3 | 1k+ | Text Domain Mismatch | ||
| #2982 | Tutor LMS BunnyNet Integration | 97 | 2 | 13 | 1k+ | Non-prefixed global variable | ||
| #2983 | UnfoldWP Import Companion | 97 | 5 | 7 | 800 | Text Domain Mismatch | ||
| #2984 | User Shortcodes | 97 | 4 | 13 | 1k+ | Non-prefixed global variable | ||
| #2985 | Proxy Cache Purge | 97 | 44 | 50k+ | Non-prefixed hook name | |||
| #2986 | Vitepos – Point of Sale (POS) for WooCommerce | 97 | 28 | 2k+ | slow db query meta query | |||
| #2987 | GSheetConnector for WooCommerce – Send your Orders and Products to Google Sheet in Real-Time | 97 | 34 | 3k+ | Non-prefixed constant | |||
| #2988 | Ozow Gateway for WooCommerce | 97 | 2 | 10 | 800 | Non-prefixed constant | ||
| #2989 | WPC Fly Cart for WooCommerce | 97 | 32 | 10k+ | Non-prefixed hook name | |||
| #2990 | Media API for WooCommerce | 97 | 18 | 2 | 400 | wp function not compatible with requires wp | ||
| #2991 | Faview – Virtual Reviews for WooCommerce | 97 | 3 | 19 | 8k+ | Non-prefixed constant | ||
| #2992 | WordPress Beta Tester | 97 | 1 | 15 | 3k+ | Non-prefixed hook name | ||
| #2993 | Social Media Feed Gallery – Fetch Posts & Reels | 97 | 1 | 25 | 2k+ | Non-prefixed global variable | ||
| #2994 | LightPress Lightbox | 97 | 33 | 4 | 40k+ | Text Domain Mismatch | ||
| #2995 | WPMR Google Feed Manager for WooCommerce – Sell on Google Merchant Center & Shopping | 97 | 1 | 7 | 10k+ | trademarked term | ||
| #2996 | WPC Product Size Chart for WooCommerce | 97 | 19 | 2k+ | Non-prefixed class | |||
| #2997 | WPC Share Cart for WooCommerce | 97 | 32 | 1k+ | Non-prefixed hook name | |||
| #2998 | Smart Coupons For WooCommerce Coupons | 97 | 3 | 58 | 30k+ | Non-prefixed class | ||
| #2999 | Yandex Pay and Split | 97 | 2 | 16 | 400 | Non-prefixed global variable | ||
| #3000 | Blocks for ACF Fields — Display Custom Fields in the Block Editor | 98 | 21 | 1k+ | Non-prefixed hook name |