Magento Coding Standard (PHPCS) report for admetrics/magento-module =================================================================== Package version: 1.1.1 | Magento: 2.4.9 | Tested: 2026-05-26 1 error, 85 warnings in 21 files Plugin/CustomerData/Customer.php 10:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 14:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/CustomerOrderIndexRepository.php 11:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 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:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 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/Data/Meta.php 10:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 15:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 20:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Data/MetaModule.php 10:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 15:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Data/CustomerOrderCount.php 10:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 15:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Data/CustomerOrderIndex.php 10:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 15:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/MetaRepository.php 15:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 21:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 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/Meta.php 18:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 27:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 28:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Api/Config.php 11:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 18:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 19:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 34:130 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong) Api/CustomerOrderCountRepositoryInterface.php 8:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 9:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Api/CustomerOrderIndexRepositoryInterface.php 8:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 9:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 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) 9:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 10:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 14:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 15:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 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) 10:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 11:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 15:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 16:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 20:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 21:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 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) 9:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 10:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 14:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 15:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 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) 9:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 10:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 14:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 15:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Api/MetaRepositoryInterface.php 8:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 9:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Api/CustomerOrderCount.php 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 25:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 26:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 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 21:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 27:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 28:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 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 16:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 26:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 31:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 49: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)