WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
Non-prefixed global variable
The plugin defines a global variable 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 global variable 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 |
|---|---|---|---|---|---|---|---|---|
| #1051 | Spectra Legacy – Gutenberg Blocks | 25 | 253 | 3,226 | 1m+ | Non-prefixed global variable | ||
| #1052 | Ultimate Blocks – 25+ Gutenberg Blocks for Block Editor | 25 | 691 | 1,581 | 50k+ | Non-prefixed global variable | ||
| #1053 | Social Media Share Buttons & Social Sharing Icons | 25 | 2,433 | 1,383 | 100k+ | Unsafe printing function | ||
| #1054 | Social Share Icons & Social Share Buttons | 25 | 2,365 | 1,357 | 10k+ | Output is not escaped | ||
| #1055 | Vayu Blocks – Website Builder for the Gutenberg Block Editor | 25 | 174 | 233 | 1k+ | Text Domain Mismatch | ||
| #1056 | VikAppointments Services Booking Calendar | 25 | 9,753 | 5,207 | 500 | Output is not escaped | ||
| #1057 | VikBooking Hotel Booking Engine & PMS | 25 | 13,251 | 8,316 | 8k+ | Output is not escaped | ||
| #1058 | VikRentCar Car Rental Management System | 25 | 5,537 | 5,048 | 4k+ | Non-prefixed global variable | ||
| #1059 | VikRestaurants Table Reservations and Take-Away | 25 | 11,644 | 4,932 | 600 | Output is not escaped | ||
| #1060 | 3D viewer by Visody | 25 | 832 | 1,322 | 1k+ | Non-prefixed global variable | ||
| #1061 | WC Disable Zoom / Lightbox features | 25 | 529 | 1,297 | 700 | Non-prefixed global variable | ||
| #1062 | Product Customer List for WooCommerce | 25 | 610 | 1,334 | 9k+ | Non-prefixed global variable | ||
| #1063 | Webcomic | 25 | 593 | 308 | 600 | Output is not escaped | ||
| #1064 | weDocs: AI Powered Knowledge Base, Docs, Documentation, Wiki & AI Chatbot | 25 | 279 | 518 | 4k+ | Non-prefixed global variable | ||
| #1065 | weForms – Easy Drag & Drop Contact Form Builder For WordPress | 25 | 916 | 450 | 10k+ | Output is not escaped | ||
| #1066 | Advanced Shipment Tracking for WooCommerce | 25 | 499 | 704 | 60k+ | Non-prefixed global variable | ||
| #1067 | Secure Gateway for Authorize.net and WooCommerce by Pledged Plugins | 25 | 907 | 1,418 | 10k+ | Non-prefixed global variable | ||
| #1068 | Bulk Edit Products for WooCommerce – WP Sheet Editor | 25 | 957 | 968 | 10k+ | Text Domain Mismatch | ||
| #1069 | Digital Goods (Checkout Field Editor) for WooCommerce Checkout | 25 | 539 | 1,479 | 3k+ | Non-prefixed global variable | ||
| #1070 | Dynamic Pricing and Discount Rules for WooCommerce | 25 | 531 | 1,569 | 600 | Non-prefixed global variable | ||
| #1071 | Bulk Edit Coupons for WooCommerce – WP Sheet Editor | 25 | 1,022 | 982 | 500 | Text Domain Mismatch | ||
| #1072 | Flat Rate Shipping Method for WooCommerce | 25 | 1,242 | 1,778 | 5k+ | Non-prefixed global variable | ||
| #1073 | WFatture for WooCommerce Fattureincloud | 25 | 229 | 774 | 800 | Non-prefixed global variable | ||
| #1074 | XT Floating Cart for WooCommerce | 25 | 1,232 | 1,985 | 4k+ | Non-prefixed global variable | ||
| #1075 | PDF Builder for WooCommerce. Create invoices,packing slips and more | 25 | 372 | 503 | 2k+ | Non-prefixed global variable | ||
| #1076 | Product Table for WooCommerce | 25 | 183 | 896 | 5k+ | Non-prefixed global variable | ||
| #1077 | Payment Plugins for Stripe WooCommerce | 25 | 349 | 779 | 100k+ | Non-prefixed global variable | ||
| #1078 | Pay with Vipps and MobilePay for WooCommerce | 25 | 846 | 514 | 5k+ | Output is not escaped | ||
| #1079 | HUSKY – Products Filter Professional for WooCommerce | 25 | 1,895 | 90k+ | Non-prefixed global variable | |||
| #1080 | Wordfence Login Security | 25 | 248 | 418 | 60k+ | Output is not escaped | ||
| #1081 | WordPress Importer | 25 | 238 | 110 | 2m+ | Output is not escaped | ||
| #1082 | WP 2FA – Two-factor authentication for WordPress | 25 | 283 | 716 | 100k+ | Non-prefixed global variable | ||
| #1083 | WP Airbnb Review Slider | 25 | 325 | 646 | 1k+ | Non-prefixed global variable | ||
| #1084 | Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals | 25 | 143 | 357 | 60k+ | Input is not sanitized | ||
| #1085 | Comments Extra Fields For Post,Pages and CPT | 25 | 577 | 418 | 500 | Text Domain Mismatch | ||
| #1086 | WP Coupons and Deals – WordPress Coupon Plugin | 25 | 914 | 1,460 | 1k+ | Non-prefixed global variable | ||
| #1087 | WP-DownloadManager | 25 | 607 | 508 | 3k+ | Unsafe printing function | ||
| #1088 | WP Review Slider | 25 | 1,186 | 2,279 | 6k+ | Non-prefixed global variable | ||
| #1089 | WP Go Maps – Google Map, OpenStreetMap, Leaflet Map | 25 | 4,996 | 1,008 | 300k+ | Unsafe printing function | ||
| #1090 | WP Google Review Slider | 25 | 1,366 | 2,584 | 30k+ | Non-prefixed global variable | ||
| #1091 | WP Encryption – No.1 HTTPS plugin & One Click Free SSL Cert, HTTPS Redirect, SSL Security | 25 | 875 | 1,764 | 50k+ | Non-prefixed global variable | ||
| #1092 | Nested Pages | 25 | 674 | 560 | 90k+ | Non-prefixed global variable | ||
| #1093 | WP Photo Album Plus | 25 | 4 | 1,807 | 10k+ | Direct Query | ||
| #1094 | WP-Polls | 25 | 618 | 639 | 40k+ | Unsafe printing function | ||
| #1095 | WP Popups – WordPress Popup builder | 25 | 440 | 342 | 30k+ | Output is not escaped | ||
| #1096 | Perfect Images: Regenerate Thumbnails, Image Sizes, WebP & AVIF | 25 | 158 | 118 | 60k+ | Non-prefixed global variable | ||
| #1097 | Bulk Edit Posts and Products in Spreadsheet | 25 | 934 | 944 | 8k+ | Text Domain Mismatch | ||
| #1098 | SlimStat Analytics | 25 | 1,177 | 870 | 70k+ | Exception output is not escaped | ||
| #1099 | Smush – Image Optimization, Compression, Lazy Load, WebP & CDN | 25 | 244 | 568 | 1m+ | Non-prefixed hook name | ||
| #1100 | Wp Social Login and Register Social Counter | 25 | 80 | 738 | 90k+ | Non-prefixed global variable |