Magento Coding Standard (PHPCS) report for xsanz/magento2-module-admin-color-captcha ==================================================================================== Package version: 1.0.0 | Magento: 2.4.9 | Tested: 2026-06-01 16 errors, 48 warnings in 1 files Model/PerCharColorDefaultModel.php 34:29 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 80:20 warning The use of function imagecreatetruecolor() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 83:20 warning The use of function imagecreatefrompng() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 92:18 warning The use of function imagesx() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 93:18 warning The use of function imagesy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 96:20 warning The use of function imagecolorallocate() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 97:9 warning The use of function imagefilledrectangle() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 110:19 warning The use of function imageftbbox() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 114:20 warning The use of function imageftbbox() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 120:13 warning The use of function imagefttext() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 121:19 warning The use of function imageftbbox() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 127:13 warning The use of function imagefilledellipse() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 127:38 error The use of function mt_rand() is forbidden; use random_int() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 127:54 error The use of function mt_rand() is forbidden; use random_int() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 131:13 warning The use of function imageline() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 131:29 error The use of function mt_rand() is forbidden; use random_int() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 131:45 error The use of function mt_rand() is forbidden; use random_int() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 131:61 error The use of function mt_rand() is forbidden; use random_int() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 131:77 error The use of function mt_rand() is forbidden; use random_int() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 134:17 warning The use of function imagecreatetruecolor() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 135:21 warning The use of function imagecolorallocate() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 136:9 warning The use of function imagefilledrectangle() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 163:17 warning The use of function imagesetpixel() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 167:21 warning The use of function imagecolorallocate() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 174:13 warning The use of function imagefilledellipse() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 174:39 error The use of function mt_rand() is forbidden; use random_int() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 174:55 error The use of function mt_rand() is forbidden; use random_int() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 178:13 warning The use of function imageline() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 178:30 error The use of function mt_rand() is forbidden; use random_int() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 178:46 error The use of function mt_rand() is forbidden; use random_int() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 178:62 error The use of function mt_rand() is forbidden; use random_int() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 178:78 error The use of function mt_rand() is forbidden; use random_int() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 181:9 warning The use of function imagepng() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 184:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 189:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 190:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 202:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 203:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 222:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 231:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 232:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 234:13 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 237:16 warning The use of function imagecolorallocate() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 245:13 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 252:17 error The use of function mt_rand() is forbidden; use random_int() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 254:16 warning The use of function imagecolorallocate() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 263:13 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 281:130 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong) 282:130 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong) 283:130 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong) 292:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 293:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 296:13 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 298:14 warning The use of function imagecolorat() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 303:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 304:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 306:13 warning $rgb parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 311:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 312:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 314:13 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 322:18 error The use of function mt_rand() is forbidden; use random_int() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 323:18 error The use of function mt_rand() is forbidden; use random_int() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 324:18 error The use of function mt_rand() is forbidden; use random_int() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 336:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)