Magento Coding Standard (PHPCS) report for redchamps/module-clean-admin-menu ============================================================================ Package version: 1.1.7 | Magento: 2.4.9 | Tested: 2026-05-27 17 errors, 70 warnings in 24 files Plugin/Model/MenuPlugin.php 28:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 36:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Plugin/Model/MenuBuilderCommand.php 15:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 27:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 35:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Plugin/Model/MenuItem.php 14:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 16:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 18:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 23:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 35:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Plugin/Block/MenuBlock.php 14:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 18:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/IsAllowedMenuId.php 15:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 24:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 30:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 35:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/CustomModuleList.php 20:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 35:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 41:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 46:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 53:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/AllowedRule/DeniedByDefault.php 19:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 28:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 33:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/AllowedRule/AllowedByDefault.php 18:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 27:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 32:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Config.php 10:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Model/CustomTabList.php 17:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 40:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 46:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 51:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/IsAllowedModule.php 13:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 29:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 37:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Config/Structure/Data.php 24:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 36:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 54:130 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong) 60:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Config/Backend/Cache.php 26:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 40:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Config/Source/Options.php 14:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 26:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 32:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 37:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Config/Source/Rules.php 12:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 25:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/RuleFactory.php 13:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 25:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 33:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/IsAllowedStrategy.php 16:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 33:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 41:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/RuleConfig.php 15:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 37:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 47:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 53:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 62:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/IsAllowedMenuChildren.php 12:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 14:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Spi/ListInterface.php 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) Spi/RuleConfigInterface.php 15:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 17:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) view/adminhtml/templates/system/config/tabs.phtml 19:28 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 23:44 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 25:55 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 26:55 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 31:44 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 43:57 warning Each PHP statement must be on a line by itself (Generic.Formatting.DisallowMultipleStatements.SameLine) 54:93 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 58:82 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 64:89 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 79:77 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) view/adminhtml/web/css/source/_module.less 6:1 warning Id selector is used (Magento2.Less.AvoidId.IdSelectorUsage) 24:38 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting) 34:22 warning Expected 1 space after colon in style definition; 2 found (Magento2.Less.ColonSpacing.After) 40:35 warning Space before !important is missing (Magento2.Less.ImportantProperty.NoSpace) 50:28 warning Values starts from "0" (Magento2.Less.ZeroUnits.ZeroUnitFound) 67:41 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting) 112:1 warning Id selector is used (Magento2.Less.AvoidId.IdSelectorUsage) 115:1 warning Id selector is used (Magento2.Less.AvoidId.IdSelectorUsage) 118:1 warning Level's comment does not have 2 spaces after "//" (Magento2.Less.CommentLevels.SpacesMissed) 119:1 warning Id selector is used (Magento2.Less.AvoidId.IdSelectorUsage) Api/IsAllowedInterface.php 15:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)