PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Non-constant Index In Array Analyze, All, Simple 1 1 Minor 14 %
Abstract Or Implements All, Analyze, LintButWontExec 9 9 Major 24 %
Ambiguous Visibilities All, Analyze 8 6 Minor 70 %
Avoid Optional Properties All, Analyze 13 6 Major 84 %
Could Be Abstract Class All, Analyze, ClassReview 2 2 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 82 82 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 8 6 Minor 92 %
Could Inject Param All, Analyze, ClassReview 26 6 Minor 0 %
Empty Classes Analyze, All, Simple 1 1 Minor 60 %
Hidden Nullable Typehint All, Analyze, ClassReview 18 12 Minor 0 %
Incompatible Signature Methods With Covariance All, Analyze 1 1 Critical 0 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 24 23 Critical 53 %
Multiple Class Declarations Analyze, All, Simple, CI-checks, CE 2 2 Major 29 %
Parent First All, Analyze, Suggestions 1 1 Minor 56 %
Property Could Be Local All, Analyze, ClassReview 2 1 Minor 76 %
Never Used Properties Analyze, All, Simple, Unused 2 1 Minor 71 %
Property Used In One Method Only All, Analyze 1 1 Minor 84 %
Should Use Local Class Analyze, ClearPHP, All, Simple 13 10 Minor 95 %
Too Many Injections All, Analyze, Dismell 1 1 Minor 19 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 267 69 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 4 2 Major 62 %
Undefined Parent Analyze, All, Simple, Undefined 3 3 Minor 45 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, Undefined, ChangedBehavior, CE 478 4 Major 61 %
Unfinished Object All, Analyze, ClassReview 5 4 Major 0 %
Unresolved Classes Analyze, All, Stubs 32 12 Major 76 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10 3 3 Major 48 %
Unused Classes Dead code, All, Simple, Analyze, Unused 1 1 Major 67 %
Unused Class Constant All, Analyze, ClassReview, Unused 4 3 Minor 0 %
Unused Public Method All, Analyze 280 73 Minor 0 %
Useless Constructor Analyze, All, Simple, Level 3 2 2 Minor 41 %
Weak Typing All, Analyze 3 2 Minor 47 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 102 10 Minor 71 %
Catch Undefined Variable All, Analyze, Undefined 1 1 Minor 0 %
Throw Raw Exceptions All, Analyze, Suggestions 5 3 Minor 0 %
Uncaught Exceptions Analyze, All 5 3 Minor 84 %
Useless Catch All, Analyze, CI-checks, CE 4 3 Minor 44 %
Missing Include All, Analyze 6 3 Critical 65 %
Use Named Boolean In Argument Definition All, Analyze 3 3 Minor 84 %
Could Make A Function All, Analyze, Suggestions 9 9 Minor 66 %
Dont Collect Void All, Analyze, IsPHP, IsStub, IsExt 17 4 Minor 0 %
Empty Function Analyze, All, Simple 2 2 Minor 74 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 1 1 Major 70 %
Insufficient Typehint All, Analyze, Typechecks 4 1 Major 43 %
Mismatched Typehint All, Analyze, Typechecks 2 2 Major 66 %
No Boolean As Default All, Analyze 3 3 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4 3 2 Minor 69 %
Redeclared PHP Functions Analyze, Appinfo, All, Simple, CI-checks, CE 1 1 Minor 26 %
Relay Function Analyze, All 2 2 Major 84 %
Too Many Local Variables All, Analyze 2 1 Minor 64 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 184 38 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 1 1 Major 90 %
Useless Referenced Argument All, Analyze 1 1 Minor 58 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 36 3 Minor 98 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, IsPHP, IsStub, IsExt, CE 4 2 Major 81 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 16 5 Minor 0 %
Forgotten Interface All, Analyze 3 3 Minor 48 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 18 12 Major 72 %
Useless Interfaces Analyze, ClearPHP, All, Simple, ClassReview, Typechecks 3 3 Minor 59 %
Hidden Use Expression Analyze, OneFile, All, Simple, CI-checks, CE 2 2 Minor 23 %
Multiple Alias Definitions Analyze, All, Simple, CI-checks, CE 2 2 Minor 44 %
Should Make Alias Analyze, OneFile, All, Simple, CI-checks, CE 2 1 Minor 46 %
Unresolved Use Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt 30 18 Major 69 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 2 1 Major 57 %
Logical To in_array All, Analyze, Level 2 1 1 Minor 67 %
strpos() Too Much All, Analyze, CI-checks, CE 3 2 Minor 49 %
Assumptions All, Analyze 5 4 Minor 0 %
Don't Pollute Global Space All, Analyze 16 6 Minor 0 %
No Class In Global All, Analyze, CI-checks, CE 7 6 Minor 77 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks, CE 4 1 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 7 4 Major 71 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 5 3 Minor 0 %
Should Use Prepared Statement Analyze, Security, All, Simple, CI-checks, CE 52 3 Major 28 %
Alternative Syntax Consistence All, Analyze 1 1 Major 21 %
Comparison Is Always True All, Analyze 12 6 Minor 0 %
Array_merge Needs Array Of Arrays All, Analyze 3 1 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 16 5 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 4 2 Minor 77 %
Buried Assignation Analyze, All 1 1 Minor 84 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 3 3 Minor 56 %
Check All Types All, Analyze 2 2 Major 69 %
Check JSON All, Analyze, CI-checks, CE 4 4 Major 65 %
Common Alternatives Analyze, All, Simple 2 1 Major 80 %
Could Use __DIR__ Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks, CE 1 1 Major 56 %
Dont Change The Blind Var All, Analyze 2 1 Minor 73 %
Dont Mix ++ All, Analyze 6 3 Minor 56 %
Empty Instructions Dead code, Analyze, All, Simple 8 5 Minor 57 %
Empty Try Catch Analyze, All, Level 3 2 1 Minor 49 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 2 1 Major 61 %
Iffectations Analyze, All 2 2 Minor 80 %
Inconsistent Elseif All, Analyze 2 2 Major 73 %
Max Level Of Nesting All, Analyze 2 1 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 2 1 Major 64 %
Maybe Missing New All, Analyze 6 1 Critical 57 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 1 1 Minor 63 %
Nested Ifthen Analyze, All, RadwellCodes 1 1 Major 84 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, CE 4 2 Major 42 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE 1 1 Minor 62 %
Variable Is Not A Condition All, Analyze 52 24 Minor 93 %
include_once() Usage Analyze, Appinfo, All, CE 8 4 Minor 73 %
Several Instructions On The Same Line Analyze, All 63 4 Major 56 %
Print And Die Analyze, All, Simple, CI-checks, CE 1 1 Minor 32 %
Return True False Analyze, All, Simple, Level 1, CI-checks, CE 1 1 Major 46 %
Should Chain Exception Analyze, All, Simple, CI-checks, CE 1 1 Minor 39 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 1 1 Minor 86 %
Preprocessable Analyze, All, Rector 30 5 Minor 85 %
Static Loop Analyze, All, Simple, Level 4 1 1 Minor 67 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 1 1 Major 69 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 6 4 Minor 0 %
Use Constant Instead Of Function PHP recommendations, All, Analyze, php-cs-fixable, CI-checks, CE 2 2 Minor 61 %
Use Positive Condition All, Analyze, OneFile, Simple 6 3 Minor 82 %
Use Same Types For Comparisons All, Analyze 4 1 Minor 0 %
Useless Type Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE 14 3 Minor 47 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 4 2 Minor 63 %
Useless Null Coalesce All, Analyze, Typehints 1 1 Minor 0 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 1 1 Minor 81 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 4 4 Minor 0 %
Wrong Type With Default All, Analyze, LintButWontExec, ClassReview 4 2 Minor 0 %
Assigned Twice All, Analyze 8 2 Minor 79 %
Overwritten Literals Analyze, All 8 2 Major 79 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 414 7 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 143 5 Minor 74 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE 195 8 Minor 95 %