Magento Coding Standard (PHPCS) report for mageplaza/module-lazy-loading ======================================================================== Package version: 4.0.4 | Magento: 2.4.9 | Tested: 2026-05-26 1 error, 122 warnings in 15 files Plugin/Model/Template/Filter.php 35:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 37:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 70:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 71:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 138:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 139:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 153:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 154:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 181:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 182:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Helper/Data.php 41:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 43:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 45:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 46:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 119:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 120:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 136:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 137:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 137:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 138:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 169:32 warning The use of function getimagesize() is discouraged; use getimagesizefromstring() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 182:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 183:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 191:36 warning The use of function getimagesize() is discouraged; use getimagesizefromstring() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 192:22 warning The use of function imagecreatetruecolor() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 194:28 warning The use of function image_type_to_mime_type() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 196:29 warning The use of function imagecreatefromjpeg() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 199:29 warning The use of function imagecreatefromjpeg() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 202:29 warning The use of function imagecreatefrompng() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 205:29 warning The use of function imagecreatefrompng() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 208:29 warning The use of function imagecreatefromgif() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 214:13 warning The use of function imagecopyresampled() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 227:17 warning The use of function imagejpeg() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 228:17 warning The use of function imagedestroy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 237:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 238:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 245:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 246:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 262:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 263:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 276:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 277:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 290:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 291:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 306:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 307:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 322:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 323:8 warning null is not a valid PHP type (Magento2.Annotation.MethodArguments.NotValidType) 323:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 366:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 367:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 387:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 388:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 395:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 396:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 408:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 409:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 416:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 417:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 424:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 425:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Helper/Image.php 29:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 31:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 33:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Model/Config/Source/System/PlaceholderType.php 28:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 30:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 32:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 33:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 34:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 36:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 37:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Model/Config/Source/System/LoadingType.php 28:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 30:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 32:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 33:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 35:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 36:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Model/Config/Source/System/ApplyFor.php 28:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 30:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 32:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 33:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 34:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 35:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 36:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 38:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 39:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) etc/config.xml 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) etc/acl.xml 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) view/frontend/templates/product/image_with_borders.phtml 27:12 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 27:12 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 27:26 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 50:26 warning Line indented incorrectly; expected at least 28 spaces, found 25 (Generic.WhiteSpace.ScopeIndent.Incorrect) 64:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 66:26 warning Line indented incorrectly; expected at least 28 spaces, found 25 (Generic.WhiteSpace.ScopeIndent.Incorrect) 79:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 85:34 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 97:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) view/frontend/layout/default.xml 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) Block/Adminhtml/Config/Field/ExcludeCss.php 29:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 31:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) Block/Adminhtml/Config/Field/ExcludeText.php 29:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 31:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) Block/Adminhtml/Config/Field/ExcludePage.php 29:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 31:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) Block/Product/ImageFactory.php 42:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 44:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 84:5 warning Scope keyword "private" must be followed by a single space; found 2 (Squiz.WhiteSpace.ScopeKeywordSpacing.Incorrect) 195:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 196:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 272:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 273:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Block/LazyLoad.php 31:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 33:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 56:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 57:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 64:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 65:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 72:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 73:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 80:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 81:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 88:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 89:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation)