PHP Static analysis for Tensor

Label Recipes Issues Files Severity Frequence
Ambiguous Static All, Analyze 21 10 Minor 64 %
Ambiguous Visibilities All, Analyze 6 4 Minor 70 %
Avoid Optional Properties All, Analyze 1 1 Major 83 %
Child Class Removes Typehint All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Typechecks 1 1 Major 1 %
Class Could Be Final All, Analyze, ClassReview 57 57 Minor 95 %
Method Could Be Static All, Analyze, ClassReview 15 9 Minor 95 %
Locally Unused Property Dead code, All, Simple 2 2 Minor 76 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 4 3 Minor 49 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 57 2 Critical 50 %
Non Nullable Getters All, Analyze, ClassReview 7 5 Minor 0 %
Property Could Be Local All, Analyze, ClassReview 1 1 Minor 71 %
Never Used Properties Analyze, All, Simple 2 2 Minor 72 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 2 2 Minor 57 %
Should Use Local Class Analyze, ClearPHP, All, Simple 27 14 Minor 94 %
Undefined Classes Analyze, All 196 10 Major 91 %
Undefined Class Constants Analyze, All, CI-checks 2 2 Major 53 %
Unresolved Classes Analyze, All 15 3 Major 86 %
Unused Classes Dead code, All, Simple, Analyze 6 6 Major 72 %
Unused Class Constant All, Analyze, ClassReview 1 1 Minor 0 %
Unused Methods Dead code, All, Simple 193 55 Minor 95 %
Unused Private Methods Dead code, OneFile, All, Simple 1 1 Minor 45 %
Unused Private Properties Dead code, OneFile, All, Simple 1 1 Minor 37 %
Used Once Property All, Analyze 1 1 Minor 72 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks 15 2 Minor 57 %
Constants With Strange Names Analyze, All, Simple, CI-checks 12 3 Minor 1 %
Invalid Constant Name Analyze, All, Simple 11 2 Major 1 %
Multiple Constant Definition Analyze, All, Simple, CI-checks 2 2 Minor 32 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks 4 1 Minor 54 %
Unused Constants Dead code, All, Simple 4 1 Minor 36 %
Uncaught Exceptions Analyze, All 174 9 Minor 81 %
Use Named Boolean In Argument Definition All, Analyze 4 3 Minor 84 %
Could Make A Function All, Analyze, Suggestions 56 4 Minor 75 %
Empty Function Analyze, All, Simple 3 2 Minor 71 %
Mismatched Default Arguments All, Analyze, Typechecks 5 3 Minor 33 %
Modified Typed Parameter All, Analyze, ClassReview 16 3 Minor 0 %
Never Used Parameter All, Analyze, Suggestions 16 4 Minor 47 %
No Boolean As Default All, Analyze 4 3 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4 15 2 Minor 41 %
Relay Function Analyze, All 37 30 Major 83 %
Too Many Local Variables All, Analyze 3 2 Minor 65 %
Undefined Functions Analyze, All, CI-checks 4 2 Major 71 %
Unused Arguments Analyze, All, Simple 6 4 Major 89 %
Unused Functions Dead code, All, Simple 1 1 Minor 53 %
Use Constant As Arguments Analyze, All, Simple, CI-checks 66 1 Major 25 %
Uses Default Values Analyze, All, Simple, CI-checks 84 6 Minor 97 %
Methods Without Return All, Analyze 11 3 Minor 0 %
Wrong Returned Type All, Analyze, ClassReview, CI-checks 3 2 Minor 0 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks 39 4 Minor 0 %
Interfaces Is Not Implemented All, Analyze, ClassReview, LintButWontExec, CI-checks 1 1 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks 9 5 Major 67 %
Useless Interfaces Analyze, ClearPHP, All, Simple, ClassReview, Typechecks 6 6 Minor 57 %
Unresolved Use Analyze, ClearPHP, All, Simple 37 10 Major 65 %
Unused Use Dead code, ClearPHP, All, Simple 8 3 Major 54 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks 95 2 Minor 74 %
Assumptions All, Analyze 3 3 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks 11 3 Major 59 %
Don't Pollute Global Space All, Analyze 18 3 Minor 0 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks 1 1 Minor 52 %
List Short Syntax Internal, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Appinfo 10 4 Major 10 %
Logical Should Use Symbolic Operators Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks 21 5 Minor 42 %
No Class In Global All, Analyze, CI-checks 2 2 Minor 78 %
No Substr Minus One All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 22 1 Major 12 %
PHP 7.0 Scalar Typehints All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 79 9 Critical 31 %
PHP Keywords As Names Analyze, All, Simple 41 1 Major 89 %
Use Nullable Type All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 14 5 Major 21 %
Wrong Type For Native PHP Function All, Analyze, CI-checks 97 6 Minor 0 %
Adding Zero Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 77 2 Minor 33 %
Array_merge Needs Array Of Arrays All, Analyze 2 1 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 2 1 Minor 92 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 49 3 Minor 55 %
Check All Types All, Analyze 4 1 Major 68 %
Common Alternatives Analyze, All, Simple 5 1 Major 61 %
Could Be Else All, Analyze 1 1 Minor 48 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks 45 2 Minor 60 %
Could Use str_repeat() All, Analyze, Level 1, Top10, CI-checks 1 1 Minor 12 %
Dont Change The Blind Var All, Analyze 2 1 Minor 72 %
Double Instructions Analyze, All, Simple 5 2 Minor 57 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks 5 1 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 5 2 Minor 58 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks 3 1 Major 60 %
Global Usage Analyze, Appinfo, ClearPHP, All 1 1 Minor 52 %
Identical Consecutive Expression All, Analyze 7 7 Minor 58 %
If With Same Conditions Analyze, All, Simple, CI-checks 1 1 Major 44 %
Implode() Arguments Order All, Analyze, CI-checks 1 1 Minor 0 %
Inconsistent Elseif All, Analyze 1 1 Major 73 %
Infinite Recursion All, Analyze 1 1 Major 0 %
Max Level Of Nesting All, Analyze 3 2 Minor 0 %
Missing New ? All, Analyze 14 7 Critical 5 %
Multiples Identical Case Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 2 2 Minor 10 %
Multiply By One Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 12 4 Minor 17 %
Nested Ifthen Analyze, All, RadwellCodes 5 1 Major 87 %
No Direct Usage Analyze, All, Simple 2 1 Major 36 %
No Need For Else All, Analyze 5 1 Minor 74 %
No Need For Triple Equal All, Analyze 1 1 Minor 0 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks 7 1 Minor 61 %
Variable Is Not A Condition All, Analyze 11 4 Minor 57 %
include_once() Usage Analyze, Appinfo, All 2 1 Minor 73 %
Print And Die Analyze, All, Simple, CI-checks 2 1 Minor 29 %
Avoid Parenthesis Analyze, All, Simple, CI-checks 5 1 Minor 10 %
Return True False Analyze, All, Simple, Level 1, CI-checks 2 2 Major 53 %
Should Make Ternary All, Analyze, OneFile, Simple, CI-checks 9 5 Minor 85 %
Preprocessable Analyze, All, Rector 53 5 Minor 86 %
Static Loop Analyze, All, Simple, Level 4 3 2 Minor 65 %
Switch To Switch Analyze, All, RadwellCodes, Simple 1 1 Minor 79 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks 48 2 Major 68 %
Unreachable Code Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3 32 2 Major 44 %
Use Positive Condition All, Analyze, OneFile, Simple 2 2 Minor 81 %
Useless Parenthesis Analyze, All, Simple, CI-checks 19 4 Minor 81 %
No Real Comparison Analyze, All, Simple, Level 2, Top10, CI-checks 13 1 Major 22 %
One Variable String Analyze, All, RadwellCodes, Simple, CI-checks 12 1 Minor 29 %
Missing Returntype In Method All, Typehints, Analyze, CI-checks 19 7 Minor 0 %
Assigned Twice All, Analyze 15 4 Minor 78 %
Overwritten Literals Analyze, All 33 4 Major 78 %
Undefined Variable All, Analyze, CI-checks 7 2 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 1 1 Minor 87 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4 12 6 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple 3 2 Minor 78 %