PHP Static analysis for test

Label Recipes Issues Files Severity Frequence
Multiple Index Definition Analyze, OneFile, All, Simple, CI-checks 1 1 Minor 25 %
Avoid Optional Properties All, Analyze 1 1 Major 83 %
Could Be Abstract Class All, Analyze, ClassReview 3 3 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 33 33 Minor 95 %
Method Could Be Static All, Analyze, ClassReview 20 9 Minor 95 %
Locally Unused Property Dead code, All, Simple 15 12 Minor 76 %
No Public Access Analyze, All 2 1 Minor 60 %
Non Static Methods Called In A Static Analyze, CompatibilityPHP56, All, Simple, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CI-checks 2 2 Minor 20 %
Never Used Properties Analyze, All, Simple 15 12 Minor 72 %
Property Used In One Method Only All, Analyze 1 1 Minor 84 %
Should Use Local Class Analyze, ClearPHP, All, Simple 20 9 Minor 94 %
$this Belongs To Classes Or Traits Analyze, All, Simple 1 1 Major 23 %
Undefined Classes Analyze, All 116 18 Major 91 %
Undefined Class Constants Analyze, All, CI-checks 29 8 Major 53 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks 34 4 Major 58 %
Unresolved Catch Dead code, ClearPHP, All 1 1 Major 51 %
Unresolved Classes Analyze, All 9 3 Major 86 %
Unused Classes Dead code, All, Simple, Analyze 5 5 Major 72 %
Unused Methods Dead code, All, Simple 74 24 Minor 95 %
Use Class Operator All, Analyze, Performances, Simple, CI-checks 30 8 Minor 74 %
Undefined Caught Exceptions Dead code, All 1 1 None 50 %
Missing Include All, Analyze 2 2 Critical 61 %
Aliases Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks 1 1 Minor 42 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 2 2 Major 61 %
Never Used Parameter All, Analyze, Suggestions 1 1 Minor 47 %
Relay Function Analyze, All 3 3 Major 83 %
Too Many Local Variables All, Analyze 1 1 Minor 65 %
Undefined Functions Analyze, All, CI-checks 14 4 Major 71 %
Unused Arguments Analyze, All, Simple 24 4 Major 89 %
Unused Inherited Variable In Closure All, Analyze, Dead code, CI-checks 1 1 Major 22 %
Uses Default Values Analyze, All, Simple, CI-checks 10 5 Minor 97 %
Methods Without Return All, Analyze 14 8 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks 3 3 Major 38 %
Undefined Interfaces Analyze, All, CI-checks 41 7 Major 67 %
Unresolved Use Analyze, ClearPHP, All, Simple 35 25 Major 65 %
Unused Use Dead code, ClearPHP, All, Simple 7 7 Major 54 %
Use With Fully Qualified Name Analyze, Coding Conventions, PHP recommendations, All, Simple 6 6 Minor 16 %
Memoize MagicCall All, Analyze, ClassReview 3 3 Minor 0 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks 2 1 Minor 74 %
Assumptions All, Analyze 6 2 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks 3 2 Major 59 %
Concat And Addition All, Analyze, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, CompatibilityPHP73, CompatibilityPHP54, CompatibilityPHP74, CompatibilityPHP80, CompatibilityPHP55, CompatibilityPHP56, Top10, CI-checks 3 1 Minor 0 %
Don't Pollute Global Space All, Analyze 5 5 Minor 0 %
No Class In Global All, Analyze, CI-checks 5 5 Minor 78 %
PHP 7.0 Scalar Typehints All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 1 1 Critical 31 %
Php7 Relaxed Keyword CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Appinfo 1 1 Major 25 %
PHP Keywords As Names Analyze, All, Simple 13 5 Major 89 %
Wrong Type For Native PHP Function All, Analyze, CI-checks 2 2 Minor 0 %
Should Use session_regenerateid() All, Security 1 1 Major 82 %
Adding Zero Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 1 1 Minor 33 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 2 1 Minor 92 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks 1 1 Minor 76 %
Common Alternatives Analyze, All, Simple 2 1 Major 61 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks 1 1 Minor 60 %
Double Assignation Analyze, All 1 1 Major 55 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks 1 1 Minor 70 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks 1 1 Minor 65 %
Empty Instructions Dead code, Analyze, All, Simple 1 1 Minor 43 %
Identical Consecutive Expression All, Analyze 14 2 Minor 58 %
Max Level Of Nesting All, Analyze 1 1 Minor 0 %
Merge If Then All, Analyze, CI-checks 1 1 Minor 0 %
Nested Ifthen Analyze, All, RadwellCodes 1 1 Major 87 %
No Hardcoded Path Analyze, ClearPHP, All, Simple 1 1 Major 33 %
No Need For Else All, Analyze 2 1 Minor 74 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks 1 1 Minor 61 %
Variable Is Not A Condition All, Analyze 7 3 Minor 57 %
Phpinfo OneFile, All, Simple, Security 1 1 Major 14 %
Return True False Analyze, All, Simple, Level 1, CI-checks 3 1 Major 53 %
Should Make Ternary All, Analyze, OneFile, Simple, CI-checks 3 1 Minor 85 %
Preprocessable Analyze, All, Rector 5 2 Minor 86 %
Unchecked Resources Analyze, ClearPHP, All, Simple, Level 2, CI-checks 1 1 Major 49 %
Unreachable Code Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3 3 2 Major 44 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80 1 1 Minor 0 %
Use Positive Condition All, Analyze, OneFile, Simple 1 1 Minor 81 %
Useless Parenthesis Analyze, All, Simple, CI-checks 4 3 Minor 81 %
Assigned Twice All, Analyze 2 1 Minor 78 %
Overwritten Literals Analyze, All 2 1 Major 78 %
Undefined Variable All, Analyze, CI-checks 2 2 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 6 1 Minor 87 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4 37 7 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple 13 4 Minor 78 %