WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound

Non-prefixed constant

The plugin defines a constant 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 constant 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
#2201WPC AJAX Search for WooCommerce831291k+Nonce verification recommended
#2202WPC Order Tip for WooCommerce83551k+Non-prefixed global variable
#2203Dynific Addons for Elementor (formerly AnyWhere Elementor)8433570k+Text Domain Mismatch
#2204HHG for TranslatePress844318800curl curl setopt
#2205LearnPress – Prerequisites Courses848146k+Non-prefixed constant
#2206Lightweight Cookie Notice – Cookie Banner for Cookie Consent848185k+Database parameter is not escaped
#2207MotoPress Hotel Booking for Elementor8431910k+Non-prefixed global variable
#2208Nav Menu Roles8431870k+Non-prefixed hook name
#2209Ocean Social Sharing84103660k+Non-prefixed global variable
#2210Plugin Security Scanner8499800Output is not escaped
#2211Replace Image845139k+Input is not sanitized
#2212Ultra Addons Lite for Elementor843018700wp function not compatible with requires wp
#2213Easy Duplicate Product for WooCommerce84783k+Missing direct file access protection
#2214WPB Accordion Menu – Collapsible Vertical Sidebar Menu – WooCommerce Category Accordion – Mobile Menu8455910k+Non-prefixed hook name
#2215WPC Grouped Product for WooCommerce84453k+Nonce verification recommended
#2216WP Ghost (Hide My WP Ghost) – Security & Firewall856373100k+Non-prefixed global variable
#2217No External Links857266k+Database parameter is not escaped
#2218News Element Elementor Blog Magazine85174695400Non-prefixed global variable
#2219LocaliQ – Tracking Code8511112k+Non-prefixed function
#2220Real Thumbnail Generator: Efficient regeneration of thumbnails in all sizes855581k+Non-prefixed constant
#2221Shiprocket85561510k+Text Domain Mismatch
#2222Notification for WooCommerce | Boost Your Sales – Recent Sales Popup – Live Feed Sales – Upsells859356k+Non-prefixed constant
#2223WP fail2ban Add-on for Contact Form 7851018800Non-prefixed constant
#2224WP fail2ban Add-on for Gravity Forms851018600Non-prefixed constant
#2225WPC Variations Table for WooCommerce8534400Non-prefixed hook name
#2226Advanced Queries8661110k+Non-prefixed constant
#2227AM LottiePlayer86512800Non-prefixed global variable
#2228Astra Widgets861015200k+Missing direct file access protection
#2229Blockly – Gutenberg Blocks86617600Non-prefixed constant
#2230CBX User Online & Last Login86387800Non-prefixed global variable
#2231GN Publisher: Google News Compatible RSS Feeds8676620k+wp function not compatible with requires wp
#2232Mailchimp List Subscribe Form862215660k+Non-prefixed global variable
#2233Modern Cart – WooCommerce Side Cart & Popup Cart8689550k+Non-prefixed global variable
#2234Payment Gateway Icons For WooCommerce86241k+Input is not sanitized
#2235Product Enquiry for WooCommerce (Now with AI Assistant)86614610k+Non-prefixed global variable
#2236Unlimited Theme Addon For Elementor867468600Missing direct file access protection
#2237Microsoft Azure Storage for WordPress8625262k+Missing Translators Comment
#2238WooCommerce Payfast Gateway86904730k+Text Domain Mismatch
#2239WP YouTube Live8628241k+Non-prefixed function
#2240Better Addons for Elementor871252214k+Non-prefixed global variable
#2241CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice)8712911m+Non-prefixed global variable
#2242Disable Block Editor FullScreen mode87621k+Output is not escaped
#2243Easy Notification Bar87629k+Output is not escaped
#2244ImageKit – URL based image manipulation and optimization8747421k+Non-prefixed global variable
#2245Parallax Section Block – Add Parallax Scrolling Effects to Sections.873223k+Non-prefixed global variable
#2246Simple Photo Feed874481k+Non-prefixed global variable
#2247Tickera – Sell Tickets & Manage Events877542k+Non-prefixed hook name
#2248Variations as Single Product – Display Single Variation for WooCommerce878331k+Direct Query
#2249Coupon Box for WooCommerce8711851k+Non-prefixed global variable
#2250WP Missed Schedule Posts877910k+trademarked term