Magento Coding Standard (PHPCS) report for admetrics/magento-module =================================================================== Package version: 1.2.0 | Magento: 2.4.9 | Tested: 2026-09-30 1 error, 31 warnings in 12 files Model/CustomerOrderIndexRepository.php 11:83 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) 11:84 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 30:1 warning Possible raw SQL statement SELECT entity_id AS order_id, order_index FROM ( detected. (Magento2.SQL.RawQuery.FoundRawSql) 31:1 warning Possible raw SQL statement SELECT entity_id, ROW_NUMBER() detected. (Magento2.SQL.RawQuery.FoundRawSql) 34:1 warning Possible raw SQL statement SELECT DISTINCT customer_id FROM $sales_order_table WHERE entity_id IN ($comma_separated_ids) detected. (Magento2.SQL.RawQuery.FoundRawSql) Model/CustomerOrderCountRepository.php 11:83 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) 11:84 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 29:16 warning Possible raw SQL statement "SELECT customer_id, COUNT(*) AS order_count FROM $sales_order_table WHERE customer_id IN ($comma_separated_ids) GROUP BY customer_id" detected. (Magento2.SQL.RawQuery.FoundRawSql) 29:150 warning Line exceeds 120 characters; contains 150 characters (Generic.Files.LineLength.TooLong) Model/MetaRepository.php 26:54 warning Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) 26:71 warning Expected 1 space before opening brace; found 0 (Squiz.Functions.MultiLineFunctionDeclaration.SpaceBeforeBrace) view/frontend/templates/pixel.phtml 9:58 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) Api/Config.php 34:130 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong) Api/Data/CustomerOrderIndexInterface.php 6:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 7:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Api/Data/MetaInterface.php 6:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 7:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 8:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Api/Data/MetaModuleInterface.php 6:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 7:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Api/Data/CustomerOrderCountInterface.php 6:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 7:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Api/CustomerOrderCount.php 40:16 warning Possible raw SQL statement "SELECT customer_id, COUNT(*) AS order_count FROM $sales_order_table WHERE customer_id IN ($comma_separated_ids) GROUP BY customer_id" detected. (Magento2.SQL.RawQuery.FoundRawSql) 40:150 warning Line exceeds 120 characters; contains 150 characters (Generic.Files.LineLength.TooLong) Api/CustomerOrderIndex.php 43:1 warning Possible raw SQL statement SELECT entity_id AS order_id, order_index FROM ( detected. (Magento2.SQL.RawQuery.FoundRawSql) 44:1 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong) 44:1 warning Possible raw SQL statement SELECT entity_id, ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY created_at, entity_id) AS order_index FROM ( detected. (Magento2.SQL.RawQuery.FoundRawSql) 45:1 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 45:1 warning Possible raw SQL statement SELECT entity_id, customer_id, created_at FROM $sales_order_table WHERE entity_id IN ($comma_separated_ids) detected. (Magento2.SQL.RawQuery.FoundRawSql) Block/Pixel.php 52:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 60:139 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong) 63:65 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch)