PHP Static analysis for haven_dump

Label Recipes Issues Files Severity Frequence
Null Or Boolean Arrays All, Analyze 2 1 Minor 0 %
String Initialization All, CompatibilityPHP71 1 1 Minor 33 %
Too Many Array Dimensions All, Analyze 2 2 Minor 0 %
Undefined Classes Analyze, All 9 2 Major 91 %
Undefined Class Constants Analyze, All, CI-checks 2 1 Major 53 %
Unresolved Classes Analyze, All 7 2 Major 86 %
Aliases Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks 8 5 Minor 42 %
Mismatched Default Arguments All, Analyze, Typechecks 4 1 Minor 33 %
Never Used Parameter All, Analyze, Suggestions 3 1 Minor 47 %
Too Many Local Variables All, Analyze 2 2 Minor 65 %
Undefined Functions Analyze, All, CI-checks 61 8 Major 71 %
Unused Arguments Analyze, All, Simple 1 1 Major 89 %
Unused Functions Dead code, All, Simple 5 1 Minor 53 %
Uses Default Values Analyze, All, Simple, CI-checks 164 19 Minor 97 %
Methods Without Return All, Analyze 7 1 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks 6 2 Major 38 %
Hidden Use Expression Analyze, OneFile, All, Simple, CI-checks 4 2 Minor 24 %
Should Make Alias Analyze, OneFile, All, Simple, CI-checks 4 2 Minor 44 %
Unused Use Dead code, ClearPHP, All, Simple 4 2 Major 54 %
Logical To in_array All, Analyze, Level 2 1 1 Minor 66 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks 5 3 Minor 74 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks 3 1 Major 59 %
Don't Pollute Global Space All, Analyze 40 4 Minor 0 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks 20 2 Minor 52 %
Logical Should Use Symbolic Operators Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks 1 1 Minor 42 %
No Class In Global All, Analyze, CI-checks 40 4 Minor 78 %
New Functions In PHP 8.0 All, CompatibilityPHP74 1 1 Major 0 %
PHP Keywords As Names Analyze, All, Simple 2 1 Major 89 %
Use Nullable Type All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 12 1 Major 21 %
Use PHP Object API Analyze, ClearPHP, All, Simple, CI-checks 4 1 Minor 23 %
Wrong Type For Native PHP Function All, Analyze, CI-checks 12 5 Minor 0 %
Avoid Those Hash Functions Security, All 1 1 Major 60 %
Direct Injection Security, All 43 14 Major 41 %
Indirect Injection Security, All 49 8 Critical 21 %
Adding Zero Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 1 1 Minor 33 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks 15 8 Minor 76 %
Buried Assignation Analyze, All 2 2 Minor 82 %
Check All Types All, Analyze 2 2 Major 68 %
Check JSON All, Analyze, CI-checks 4 2 Major 64 %
Common Alternatives Analyze, All, Simple 6 2 Major 61 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks 6 3 Minor 60 %
Dont Change The Blind Var All, Analyze 2 2 Minor 72 %
Double Assignation Analyze, All 2 2 Major 55 %
Double Instructions Analyze, All, Simple 14 3 Minor 57 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks 1 1 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 70 14 Minor 58 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks 12 5 Minor 65 %
Empty Instructions Dead code, Analyze, All, Simple 59 24 Minor 43 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks 5 3 Major 60 %
Forgotten Whitespace Analyze, All, CI-checks 1 1 Minor 15 %
Global Usage Analyze, Appinfo, ClearPHP, All 69 16 Minor 52 %
Htmlentities Calls Analyze, All, Simple, CI-checks 2 2 Major 39 %
Long Arguments All, Analyze 1 1 Minor 67 %
Max Level Of Nesting All, Analyze 4 2 Minor 0 %
Merge If Then All, Analyze, CI-checks 6 5 Minor 0 %
Mixed Concat And Interpolation All, Coding Conventions, Analyze 1 1 Minor 43 %
Nested Ifthen Analyze, All, RadwellCodes 15 4 Major 87 %
No Direct Usage Analyze, All, Simple 1 1 Major 36 %
No Need For Else All, Analyze 1 1 Minor 74 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks 95 29 Minor 61 %
Variable Is Not A Condition All, Analyze 13 5 Minor 57 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks 1 1 Minor 66 %
include_once() Usage Analyze, Appinfo, All 2 2 Minor 73 %
Several Instructions On The Same Line Analyze, All 3 1 Major 57 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks 53 16 Major 49 %
Should Make Ternary All, Analyze, OneFile, Simple, CI-checks 18 5 Minor 85 %
Preprocessable Analyze, All, Rector 20 2 Minor 86 %
Static Loop Analyze, All, Simple, Level 4 2 2 Minor 65 %
Switch To Switch Analyze, All, RadwellCodes, Simple 5 3 Minor 79 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks 2 2 Major 68 %
Timestamp Difference Analyze, All, Simple, Level 3, CI-checks 6 3 Major 50 %
Unchecked Resources Analyze, ClearPHP, All, Simple, Level 2, CI-checks 1 1 Major 49 %
Unconditional Break In Loop All, Analyze, Level 3, CI-checks 1 1 Major 46 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80 1 1 Minor 0 %
Use Positive Condition All, Analyze, OneFile, Simple 5 2 Minor 81 %
Useless Global Analyze, OneFile, All, Simple, Level 2 4 1 Minor 24 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 1 1 Minor 58 %
Useless Parenthesis Analyze, All, Simple, CI-checks 7 4 Minor 81 %
var_dump()... Usage Analyze, ClearPHP, Security, All, CI-checks 2 2 Critical 40 %
Assigned Twice All, Analyze 18 2 Minor 78 %
Overwritten Literals Analyze, All 19 2 Major 78 %
Undefined Variable All, Analyze, CI-checks 14 3 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 13 3 Minor 87 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4 14 5 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple 4 1 Minor 78 %