PHP Static analysis for bitnix-service

Label Recipes Issues Files Severity Frequence
Multiple Index Definition Analyze, OneFile, All, Simple 1 1 Minor 25 %
String Initialization All, CompatibilityPHP71 4 3 Minor 33 %
Anonymous Classes Appinfo, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All 2 1 Major 15 %
Avoid Optional Properties All, Analyze 3 3 Major 83 %
Const Visibility Usage All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 28 7 Minor 16 %
Class Could Be Final All, Analyze, ClassReview 5 4 Minor 95 %
Method Could Be Static All, Analyze, ClassReview 11 4 Minor 95 %
Hidden Nullable All, Analyze, ClassReview 4 2 Minor 0 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 2 1 Critical 50 %
Non Nullable Getters All, Analyze, ClassReview 2 2 Minor 0 %
Property Could Be Local All, Analyze, ClassReview 25 7 Minor 71 %
Property Used In One Method Only All, Analyze 3 1 Minor 84 %
Scalar Or Object Property All, Analyze 1 1 Minor 24 %
Should Use Local Class Analyze, ClearPHP, All, Simple 11 4 Minor 94 %
Unresolved Classes Analyze, All 2 1 Major 86 %
Unused Methods Dead code, All, Simple 20 11 Minor 95 %
Unused Private Methods Dead code, OneFile, All, Simple 1 1 Minor 45 %
Use Instanceof Analyze, All, Simple 1 1 Major 63 %
Wrong Typed Property Init All, Analyze, LintButWontExec, ClassReview 5 3 Minor 0 %
Catch Undefined Variable All, Analyze 2 1 Minor 0 %
Overwritten Exceptions Analyze, All, Simple, Suggestions, Level 4 1 1 Minor 19 %
Use Named Boolean In Argument Definition All, Analyze 7 6 Minor 84 %
Callback Needs Return All, Analyze 5 1 Major 51 %
Could Make A Function All, Analyze, Suggestions 10 5 Minor 75 %
Mismatched Default Arguments All, Analyze, Typechecks 11 4 Minor 33 %
Mismatched Typehint All, Analyze, Typechecks 5 4 Major 5 %
Must Return Methods Analyze, All, Simple, Level 2, LintButWontExec 2 1 Major 22 %
Never Used Parameter All, Analyze, Suggestions 8 7 Minor 47 %
No Boolean As Default All, Analyze 7 6 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4 1 1 Minor 41 %
Relay Function Analyze, All 2 2 Major 83 %
Typehint Must Be Returned All, Analyze, LintButWontExec 8 5 Major 10 %
Undefined Functions Analyze, All 6 2 Major 71 %
Unused Arguments Analyze, All, Simple 1 1 Major 89 %
Uses Default Values Analyze, All, Simple 26 8 Minor 97 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple 8 3 Major 38 %
Wrong Returned Type All, Analyze, ClassReview 29 5 Minor 0 %
Undefined Interfaces Analyze, All 2 1 Major 67 %
Useless Interfaces Analyze, ClearPHP, All, Simple, ClassReview, Typechecks 2 2 Minor 57 %
Unresolved Use Analyze, ClearPHP, All, Simple 3 1 Major 65 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze 2 2 Minor 0 %
Coalesce Equal All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, CompatibilityPHP73, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 3 2 None 0 %
PHP 7.0 Scalar Typehints All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 79 18 Critical 31 %
PHP 7.2 Scalar Typehints All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 5 2 Critical 0 %
Php7 Relaxed Keyword CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Appinfo 31 9 Major 25 %
PHP Keywords As Names Analyze, All, Simple 85 9 Major 89 %
Typed Property Usage All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, CompatibilityPHP73, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 50 11 Minor 0 %
Unpacking Inside Arrays All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, CompatibilityPHP73, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 3 3 Minor 0 %
Use Nullable Type All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 11 6 Major 21 %
Usort Sorting In PHP 7.0 CompatibilityPHP70, All 2 1 Major 46 %
Wrong Type For Native PHP Function All, Analyze 48 12 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 1 1 Minor 92 %
Buried Assignation Analyze, All 10 5 Minor 82 %
Check All Types All, Analyze 8 2 Major 68 %
Dont Change The Blind Var All, Analyze 2 1 Minor 72 %
Dont Mix ++ All, Analyze 2 2 Minor 43 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4 2 1 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 1 1 Minor 58 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector 13 3 Minor 65 %
Empty Instructions Dead code, Analyze, All, Simple 4 1 Minor 43 %
Empty Try Catch Analyze, All, Level 3 2 1 Minor 47 %
Iffectations Analyze, All 4 2 Minor 80 %
Infinite Recursion All, Analyze 2 2 Major 0 %
isset() With Constant CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All 1 1 Major 6 %
Max Level Of Nesting All, Analyze 2 1 Minor 0 %
Missing New ? All, Analyze 2 2 Critical 5 %
Multiply By One Analyze, OneFile, ClearPHP, All, Simple, Level 1 1 1 Minor 17 %
Nested Ifthen Analyze, All, RadwellCodes 9 2 Major 87 %
Nested Ternary Analyze, ClearPHP, All, Simple, Level 1 1 1 Major 20 %
No Choice Analyze, All, Simple, Level 2, Top10 1 1 Major 43 %
No Need For Else All, Analyze 8 1 Minor 74 %
No Need For Triple Equal All, Analyze 1 1 Minor 0 %
Variable Is Not A Condition All, Analyze 33 7 Minor 57 %
Same Conditions In Condition Analyze, All, Simple 1 1 Critical 49 %
Should Chain Exception Analyze, All, Simple 6 2 Minor 36 %
Should Make Ternary All, Analyze, OneFile, Simple 4 3 Minor 85 %
Static Loop Analyze, All, Simple, Level 4 1 1 Minor 65 %
Switch To Switch Analyze, All, RadwellCodes, Simple 1 1 Minor 79 %
Useless Parenthesis Analyze, All, Simple 4 2 Minor 81 %
String May Hold A Variable Analyze, All, Simple 8 3 Minor 58 %
Undefined Variable All, Analyze 8 1 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 7 1 Minor 87 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4 14 4 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple 13 3 Minor 78 %