PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Null Or Boolean Arrays All, Analyze, ChangedBehavior 2 2 Minor 0 %
Ambiguous Static All, Analyze 5 5 Minor 66 %
Ambiguous Visibilities All, Analyze 14 12 Minor 70 %
Class Could Be Final All, Analyze, ClassReview 22 22 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 36 17 Minor 92 %
Could Inject Param All, Analyze, ClassReview 20 13 Minor 0 %
Dependant Abstract Classes All, Analyze, ClassReview 1 1 Minor 0 %
Different Argument Counts All, Analyze, ClassReview 3 1 Minor 0 %
Empty Classes Analyze, All, Simple 3 3 Minor 60 %
Incompatible Signature Methods With Covariance All, Analyze 3 1 Critical 0 %
Instantiating Abstract Class Analyze, All, Simple, IsPHP, IsStub, IsExt 1 1 Major 13 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 10 2 Critical 53 %
Mismatch Properties Typehints All, Analyze, LintButWontExec, ClassReview 2 2 Minor 0 %
Multiple Identical Trait Or Interface Analyze, OneFile, All, Simple, CI-checks, CE 1 1 Minor 0 %
Non Nullable Getters All, Analyze, ClassReview 1 1 Minor 0 %
Property Could Be Local All, Analyze, ClassReview 39 15 Minor 76 %
Same Name For Property And Method All, Analyze, ClassReview, Semantics 16 4 Minor 0 %
Never Used Properties Analyze, All, Simple, Unused 7 7 Minor 71 %
Property Used In One Method Only All, Analyze 15 8 Minor 84 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 1 1 Minor 63 %
Should Use Local Class Analyze, ClearPHP, All, Simple 67 27 Minor 95 %
Too Many Dereferencing All, Analyze 3 3 Minor 0 %
Too Many Finds All, Analyze 2 2 Minor 7 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 463 58 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 39 19 Major 62 %
Undefined Parent Analyze, All, Simple, Undefined 15 1 Minor 45 %
Undefined static:: Or self:: Analyze, All, Simple, Undefined 1 1 Minor 35 %
Undefined ::class All, Analyze, CI-checks, Undefined, CE 28 9 Major 36 %
Unfinished Object All, Analyze, ClassReview 63 28 Major 0 %
Unresolved Classes Analyze, All, Stubs 89 30 Major 76 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10 21 12 Major 48 %
Unused Classes Dead code, All, Simple, Analyze, Unused 3 3 Major 67 %
Unused Class Constant All, Analyze, ClassReview, Unused 1 1 Minor 0 %
Unused Public Method All, Analyze 182 43 Minor 0 %
Use ::Class Operator All, Analyze, Performances, Simple, CI-checks, CE 3 1 Minor 71 %
Used Once Property All, Analyze 40 19 Minor 74 %
Useless Abstract Class Analyze, All, Simple 2 2 Minor 33 %
Useless Constructor Analyze, All, Simple, Level 3 6 6 Minor 41 %
Weak Typing All, Analyze 1 1 Minor 47 %
Illegal Name For Method All, Analyze, OneFile, Simple 38 15 Major 20 %
Wrong Typed Property Default All, Analyze, LintButWontExec, ClassReview, CI-checks, CE 1 1 Minor 0 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 9 3 Minor 71 %
Catch Undefined Variable All, Analyze, Undefined 1 1 Minor 0 %
Forgotten Thrown All, Analyze 4 2 Minor 33 %
Overwritten Exceptions Analyze, All, Simple, Suggestions, Level 4, CI-checks, CE 1 1 Minor 22 %
Throw Raw Exceptions All, Analyze, Suggestions 29 14 Minor 0 %
Uncaught Exceptions Analyze, All 31 14 Minor 84 %
Unthrown Exception Analyze, Dead code, ClearPHP, All, Simple 1 1 Minor 45 %
Useless Catch All, Analyze, CI-checks, CE 1 1 Minor 44 %
Use Named Boolean In Argument Definition All, Analyze 3 3 Minor 84 %
Callback Function Needs Return All, Analyze, CI-checks, CE 10 4 Major 42 %
Empty Function Analyze, All, Simple 41 22 Minor 74 %
Fn Argument Variable Confusion All, Analyze, Semantics 10 1 Minor 0 %
Insufficient Typehint All, Analyze, Typechecks 1 1 Major 43 %
Mismatched Default Arguments All, Analyze, Typechecks 4 1 Minor 80 %
Mismatched Typehint All, Analyze, Typechecks 23 3 Major 66 %
Modified Typed Parameter All, Analyze, ClassReview 8 2 Minor 0 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 1 1 Minor 92 %
No Boolean As Default All, Analyze 4 4 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4 1 1 Minor 69 %
Relay Function Analyze, All 34 14 Major 84 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 156 27 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 14 12 Major 90 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 3 2 Minor 98 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 43 17 Minor 0 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks, CE 5 3 Minor 0 %
Already Parents Interface Analyze, All, Level 3, Suggestions, IsPHP, IsStub, IsExt 1 1 Minor 26 %
Empty Interfaces Analyze, All, Simple 3 3 Minor 41 %
Repeated Interface All, Analyze, LintButWontExec 1 1 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 281 52 Major 72 %
Useless Interfaces Analyze, ClearPHP, All, Simple, ClassReview, Typechecks 2 2 Minor 59 %
Multiple Alias Definitions Analyze, All, Simple, CI-checks, CE 21 19 Minor 44 %
Overload Existing Names All, Analyze, Semantics, IsPHP, IsStub, IsExt 1 1 Minor 0 %
Unresolved Use Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt 390 66 Major 69 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 1 1 Major 57 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze, CE 3 2 Minor 0 %
Assumptions All, Analyze 4 4 Minor 0 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks, CE 2 2 Minor 0 %
Avoid Using stdClass All, Analyze, OneFile, Simple, Level 4 1 1 Minor 46 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 3 2 Minor 0 %
Comparison Is Always True All, Analyze 3 2 Minor 0 %
Array_merge Needs Array Of Arrays All, Analyze 2 2 Minor 0 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 7 1 Minor 77 %
Check JSON All, Analyze, CI-checks, CE 9 3 Major 65 %
Double Instructions Analyze, All, Simple 3 2 Minor 57 %
Long Arguments All, Analyze 2 2 Minor 68 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, CE 1 1 Major 42 %
No Need For Triple Equal All, Analyze 2 1 Minor 0 %
Variable Is Not A Condition All, Analyze 14 4 Minor 93 %
Preprocessable Analyze, All, Rector 18 11 Minor 85 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 1 1 Major 69 %
Unconditional Break In Loop All, Analyze, Level 3, CI-checks, CE 2 2 Major 48 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 8 3 Minor 0 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 1 1 Minor 63 %
Useless Null Coalesce All, Analyze, Typehints 1 1 Minor 0 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 2 2 Minor 81 %
Dependant Trait Analyze, All, Level 3 2 2 Minor 28 %
Undefined Trait Analyze, All, LintButWontExec, CI-checks, Undefined, IsPHP, IsStub, IsExt, CE 7 7 Critical 15 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks, Rector, CE 1 1 Minor 49 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 33 17 Minor 0 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 10 4 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 1 1 Minor 74 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE 79 29 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 3 2 Minor 87 %