Magento Coding Standard (PHPCS) report for magekey/module-bestseller-widget =========================================================================== Package version: 2.0.5 | Magento: 2.4.9 | Tested: 2026-05-27 5 errors, 52 warnings in 3 files Console/Command/RefreshBestsellers.php 31:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 40:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 42:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) view/frontend/templates/widget/bestseller.phtml 34:59 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 39:60 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 47:91 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 47:107 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 47:132 warning Line exceeds 120 characters; contains 135 characters (Generic.Files.LineLength.TooLong) 56:42 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 57:37 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 63:67 warning Unescaped output detected. (Magento2.Security.XssTemplate.FoundNotAllowed) 63:105 warning Unescaped output detected. (Magento2.Security.XssTemplate.FoundNotAllowed) 67:142 warning Line exceeds 120 characters; contains 143 characters (Generic.Files.LineLength.TooLong) 69:79 warning Unescaped output detected. (Magento2.Security.XssTemplate.FoundNotAllowed) 69:103 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) 74:63 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 75:87 warning Unescaped output detected. (Magento2.Security.XssTemplate.FoundNotAllowed) 77:57 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 94:123 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 96:145 warning Unescaped output detected. (Magento2.Security.XssTemplate.FoundNotAllowed) 96:171 warning Line exceeds 120 characters; contains 174 characters (Generic.Files.LineLength.TooLong) 97:119 warning Unescaped output detected. (Magento2.Security.XssTemplate.FoundNotAllowed) 97:139 warning Line exceeds 120 characters; contains 140 characters (Generic.Files.LineLength.TooLong) 98:100 warning Unescaped output detected. (Magento2.Security.XssTemplate.FoundNotAllowed) 98:120 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 102:83 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 102:83 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 102:146 warning Line exceeds 120 characters; contains 146 characters (Generic.Files.LineLength.TooLong) 103:175 warning Line exceeds 120 characters; contains 175 characters (Generic.Files.LineLength.TooLong) 106:109 warning Unescaped output detected. (Magento2.Security.XssTemplate.FoundNotAllowed) 106:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 107:119 warning Unescaped output detected. (Magento2.Security.XssTemplate.FoundNotAllowed) 107:139 warning Line exceeds 120 characters; contains 140 characters (Generic.Files.LineLength.TooLong) 108:100 warning Unescaped output detected. (Magento2.Security.XssTemplate.FoundNotAllowed) 108:120 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 113:125 warning Unescaped output detected. (Magento2.Security.XssTemplate.FoundNotAllowed) 113:142 warning Line exceeds 120 characters; contains 154 characters (Generic.Files.LineLength.TooLong) 115:127 warning Unescaped output detected. (Magento2.Security.XssTemplate.FoundNotAllowed) 115:148 warning Line exceeds 120 characters; contains 160 characters (Generic.Files.LineLength.TooLong) 122:63 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 122:63 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 122:145 warning Line exceeds 120 characters; contains 146 characters (Generic.Files.LineLength.TooLong) 124:108 warning Unescaped output detected. (Magento2.Security.XssTemplate.FoundNotAllowed) 124:141 warning Line exceeds 120 characters; contains 141 characters (Generic.Files.LineLength.TooLong) 126:96 warning Unescaped output detected. (Magento2.Security.XssTemplate.FoundNotAllowed) 126:121 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 127:96 warning Unescaped output detected. (Magento2.Security.XssTemplate.FoundNotAllowed) 127:121 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong) 131:80 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 131:80 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 131:143 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong) 133:116 warning Unescaped output detected. (Magento2.Security.XssTemplate.FoundNotAllowed) 133:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong) 134:96 warning Unescaped output detected. (Magento2.Security.XssTemplate.FoundNotAllowed) 135:96 warning Unescaped output detected. (Magento2.Security.XssTemplate.FoundNotAllowed) 135:119 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) Block/Widget.php 20:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)