WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound

Non-prefixed global variable

The plugin defines a global variable without a plugin-specific prefix.

medium weight

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.

Affected Plugins

RankPluginScoreErrorsWarningsInstallsAddedUpdatedTop Issue
#4101StoreAgent – WooCommerce AI Chatbot & AI Content Tools76202500Non-prefixed global variable
#4102Contact Form 7 Text CAPTCHA7614341k+Non-prefixed global variable
#4103The Future Is Now763101k+Input is not sanitized
#4104Pelecard Gateway7629554400Text Domain Mismatch
#4105Social Share For WooCommerce768523500Text Domain Mismatch
#4106WP AdCenter – Ad Manager & Adsense Ads765711k+Direct Query
#4107WPC Free Gift Coupons for WooCommerce76419400Non-prefixed class
#4108Loyalty Points Rewards and Referral for WooCommerce – WPLoyalty762,2077603k+Text Domain Mismatch
#4109AffiliateWP – External Referral Links773011800Text Domain Mismatch
#4110Before After Image Comparison – Visual Comparison for Two Images7718163k+Text Domain Mismatch
#4111Better Search – Relevant search results for WordPress77181175k+Dynamic hook name
#4112CodeKit – Custom Codes Editor7711295k+Non-prefixed global variable
#4113Custom HTML Block Extension778137k+Missing direct file access protection
#4114easypay Gateway Checkout for WooCommerce77642600Nonce verification recommended
#4115Ecomail777131k+Non-prefixed global variable
#4116Ceylon Extra778941500Text Domain Mismatch
#4117ELEX Hide WooCommerce Shipping Methods7783541k+Text Domain Mismatch
#4118RSS Aggregator by Feedzy – Feed to Post, Autoblogging, News & YouTube Video Feeds Aggregator773728240k+Non-prefixed global variable
#4119GDPR773912110k+Non-prefixed global variable
#4120Embed Files from Google Drive774355k+Nonce verification recommended
#4121Index WP Users For Speed7710351k+Non-prefixed global variable
#4122Mailster Mailgun Integration77165500Missing Translators Comment
#4123Master QR Code Generator – Fast & Easy QR Code Creator772159400Non-prefixed global variable
#4124Modern Footnotes771866k+Output is not escaped
#4125PDF Smart Viewer for Elementor7718161k+Non-prefixed global variable
#4126Display custom fields in the frontend – Post and User Profile Fields771718600Non-prefixed global variable
#4127SureRank SEO – Smart Assistant with Meta Tags, Social Preview, XML Sitemap, and Schema775895300k+Non-prefixed hook name
#4128Tagembed Social Feeds Widget772113710k+Non-prefixed function
#4129Taggbox – Free Social Media Widgets, Review Badges & Shoppable UGC77231131k+Direct Query
#4130Template Kit – Import774160400k+Non-prefixed global variable
#4131Toggle wpautop774159k+trademarked term
#4132Lorem Ipsum Generator7779500Missing direct file access protection
#4133WPA WooCommerce Product Gallery Slider Lite776652400Text Domain Mismatch
#4134WPC Show Single Variations for WooCommerce771261k+Nonce verification recommended
#4135wpsection771315543k+Non-prefixed global variable
#4136X-Currency – The Ultimate WooCommerce currency switcher for a smoother shopping experience7717771k+Non-prefixed global variable
#4137Accordion Blocks789310k+Unsafe printing function
#4138Support For Icomoon with Advanced Custom Fields781561k+Output is not escaped
#4139ELEX WooCommerce Address Validation & Google Address Autocomplete Plugin787340700Missing Arg Domain
#4140AffiliateWP – Affiliate QR Codes783281k+Text Domain Mismatch
#4141AffiliateWP – Allow Own Referrals783710500Text Domain Mismatch
#4142Instant AI Image Generator – Create & Import Images78231k+Non-prefixed constant
#4143Animated Text Block – Add Typing and Looping Text Effects785254k+Non-prefixed class
#4144Claspo – Popups, Spin the Wheel & Email Capture78107161k+wp function not compatible with requires wp
#4145Player for SoundCloud – Embed and Play Audio Tracks7817241k+Text Domain Mismatch
#4146Frontend Product Editor for WooCommerce787631400Text Domain Mismatch
#4147Layouts for Elementor78271k+Non-prefixed global variable
#4148Layouts for WPBakery78283k+Non-prefixed global variable
#4149Maintenance Notice782671800Non-prefixed global variable
#4150Coming Soon & Maintenance Mode Page & Under Construction78356710k+Non-prefixed global variable