PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Null Or Boolean Arrays All, Analyze, ChangedBehavior 11 1 Minor 0 %
Abstract Or Implements All, Analyze, LintButWontExec 1 1 Major 24 %
Ambiguous Static All, Analyze 91 3 Minor 66 %
Avoid Optional Properties All, Analyze 7 5 Major 84 %
Class Could Be Final All, Analyze, ClassReview 30 27 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 84 7 Minor 92 %
Could Inject Param All, Analyze, ClassReview 11 6 Minor 0 %
No Direct Call To Magic Method Analyze, All, Level 2, CI-checks, CE 1 1 Major 43 %
Don't Send $this In Constructor All, Analyze 1 1 Minor 41 %
Empty Classes Analyze, All, Simple 3 3 Minor 60 %
Hidden Nullable Typehint All, Analyze, ClassReview 22 7 Minor 0 %
Mismatch Properties Typehints All, Analyze, LintButWontExec, ClassReview 1 1 Minor 0 %
Non Nullable Getters All, Analyze, ClassReview 2 1 Minor 0 %
Parent, Static Or Self Outside Class Analyze, All, Simple, ChangedBehavior 1 1 Major 2 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 4 1 Minor 63 %
Should Use Local Class Analyze, ClearPHP, All, Simple 122 22 Minor 95 %
Static Methods Called From Object Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 2 2 Minor 50 %
Too Many Dereferencing All, Analyze 3 2 Minor 0 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 182 22 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 8 3 Major 62 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, Undefined, ChangedBehavior, CE 54 4 Major 61 %
Undefined ::class All, Analyze, CI-checks, Undefined, CE 4 3 Major 36 %
Unfinished Object All, Analyze, ClassReview 25 5 Major 0 %
Unresolved Classes Analyze, All, Stubs 27 10 Major 76 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10 15 6 Major 48 %
Unused Class Constant All, Analyze, ClassReview, Unused 17 4 Minor 0 %
Unused Public Method All, Analyze 85 12 Minor 0 %
Use ::Class Operator All, Analyze, Performances, Simple, CI-checks, CE 4 4 Minor 71 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 9 2 Minor 71 %
Forgotten Thrown All, Analyze 1 1 Minor 33 %
Throw Functioncall Analyze, All, Simple, Level 1, CI-checks, CE 7 3 Major 4 %
Throw Raw Exceptions All, Analyze, Suggestions 1 1 Minor 0 %
Uncaught Exceptions Analyze, All 2 2 Minor 84 %
Useless Catch All, Analyze, CI-checks, CE 1 1 Minor 44 %
Use Named Boolean In Argument Definition All, Analyze 13 6 Minor 84 %
Could Make A Function All, Analyze, Suggestions 14 3 Minor 66 %
Empty Function Analyze, All, Simple 11 2 Minor 74 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 2 2 Major 70 %
Mismatched Default Arguments All, Analyze, Typechecks 1 1 Minor 80 %
Mismatched Typehint All, Analyze, Typechecks 111 13 Major 66 %
Modified Typed Parameter All, Analyze, ClassReview 2 2 Minor 0 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 7 4 Minor 92 %
No Boolean As Default All, Analyze 13 6 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4 6 3 Minor 69 %
Redeclared PHP Functions Analyze, Appinfo, All, Simple, CI-checks, CE 3 1 Minor 26 %
Relay Function Analyze, All 25 5 Major 84 %
Too Many Local Variables All, Analyze 2 2 Minor 64 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 367 23 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 92 13 Major 90 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 117 16 Minor 98 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, IsPHP, IsStub, IsExt, CE 23 2 Major 81 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 93 8 Minor 0 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks, CE 154 14 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 117 20 Major 72 %
Overload Existing Names All, Analyze, Semantics, IsPHP, IsStub, IsExt 35 10 Minor 0 %
Unresolved Use Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt 116 22 Major 69 %
Logical To in_array All, Analyze, Level 2 3 3 Minor 67 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, CE 2 2 Minor 74 %
Assumptions All, Analyze 3 3 Minor 0 %
Don't Pollute Global Space All, Analyze 6 4 Minor 0 %
No Class In Global All, Analyze, CI-checks, CE 6 4 Minor 77 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks, CE 4 1 Minor 0 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 4 2 Major 56 %
Comparison Is Always True All, Analyze 8 5 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 18 7 Minor 64 %
Buried Assignation Analyze, All 55 12 Minor 84 %
Could Be Else All, Analyze 1 1 Minor 49 %
Dangling Array References PHP recommendations, Analyze, ClearPHP, All, Simple, Level 1, Top10, CI-checks, CE 1 1 Major 46 %
Dont Change The Blind Var All, Analyze 3 2 Minor 73 %
Double Instructions Analyze, All, Simple 1 1 Minor 57 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, CE 5 3 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 1 1 Minor 60 %
Empty Blocks Analyze, All, Simple, CI-checks, CE 1 1 Minor 51 %
Empty Instructions Dead code, Analyze, All, Simple 1 1 Minor 57 %
Empty Try Catch Analyze, All, Level 3 7 3 Minor 49 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 5 3 Major 61 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 1 1 Minor 52 %
Identical Consecutive Expression All, Analyze 1 1 Minor 59 %
Iffectations Analyze, All 55 11 Minor 80 %
Implicit Conversion To Int All, Analyze, LintButWontExec 2 2 Minor 0 %
Inconsistent Elseif All, Analyze 3 3 Major 73 %
Max Level Of Nesting All, Analyze 1 1 Minor 0 %
Merge If Then All, Analyze, CI-checks, CE 5 4 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 10 2 Major 64 %
Maybe Missing New All, Analyze 3 1 Critical 57 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 4 1 Minor 63 %
Nested Ifthen Analyze, All, RadwellCodes 5 3 Major 84 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, CE 7 4 Major 42 %
No Need For Else All, Analyze 6 3 Minor 74 %
No Need For Triple Equal All, Analyze 2 1 Minor 0 %
Variable Is Not A Condition All, Analyze 54 8 Minor 93 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 18 8 Minor 86 %
Preprocessable Analyze, All, Rector 4 2 Minor 85 %
Static Loop Analyze, All, Simple, Level 4 4 2 Minor 67 %
Suspicious Comparison All, Analyze, Level 3 1 1 Major 39 %
Switch To Switch Analyze, All, RadwellCodes, Simple 1 1 Minor 58 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 5 2 Major 69 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 33 7 Minor 0 %
Use Positive Condition All, Analyze, OneFile, Simple 10 5 Minor 82 %
Use Same Types For Comparisons All, Analyze 3 3 Minor 0 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 7 4 Minor 63 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 44 11 Minor 81 %
var_dump()... Usage Analyze, ClearPHP, Security, All, CI-checks, CE 1 1 Critical 42 %
Dependant Trait Analyze, All, Level 3 1 1 Minor 28 %
Undefined Trait Analyze, All, LintButWontExec, CI-checks, Undefined, IsPHP, IsStub, IsExt, CE 1 1 Critical 15 %
String May Hold A Variable Analyze, All, Simple 7 1 Minor 59 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 22 3 Minor 0 %
Wrong Type With Default All, Analyze, LintButWontExec, ClassReview 3 1 Minor 0 %
Assigned Twice All, Analyze 64 6 Minor 79 %
Overwritten Literals Analyze, All 64 6 Major 79 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 10 2 Minor 77 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE 130 12 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 1 1 Minor 87 %