WordPress.NamingConventions.PrefixAllGlobals.VariableConstantNameFound

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
#301Pixelavo – Server Side Tracking & Pixel + AI Ads Tools95122k+Direct Query
#302Print Invoice & Delivery Notes for WooCommerce9555630k+Non-prefixed global variable
#303Improved External Products for WooCommerce95181k+Non-prefixed class
#304AffiliateX – Amazon Affiliate Plugin, Product Boxes, Comparison Tables & Affiliate Link Tracking967310k+Non-prefixed global variable
#305Shipping Live Rates for FedEx for WooCommerce964102k+Non-prefixed global variable
#306Shipping Live Rates for USPS for WooCommerce964112k+Non-prefixed global variable
#307Variation Images Gallery for WooCommerce968710k+Non-prefixed global variable
#308Meta Field Block – Display custom fields in the Block Editor without coding9711110k+Non-prefixed hook name
#309HTTP Auth97936k+wp function not compatible with requires wp
#310Spiraclethemes Site Library97271k+Non-prefixed global variable
#311Content Blocks Builder – Create blocks, repeater blocks with carousel, grid, popup layouts98381k+Non-prefixed hook name
#312Customize My Account Page For WooCommerce98191k+Dynamic hook name
#313Flexible Quantity – Measurement Price Calculator for WooCommerce98292k+Non-prefixed global variable
#314Prevent XSS Vulnerability981016k+Missing Arg Domain
#315Block Enhancements – Extended styling for the Block Editor9917700Non-prefixed hook name