PHP Static analysis for edwiser-bridge

Label Recipes Issues Files Severity Frequence
Multiple Index Definition Analyze, OneFile, All, Simple, CI-checks 2 2 Minor 25 %
String Initialization All, CompatibilityPHP71 16 7 Minor 33 %
Ambiguous Static All, Analyze 25 19 Minor 64 %
Ambiguous Visibilities All, Analyze 40 20 Minor 70 %
Class Could Be Final All, Analyze, ClassReview 56 56 Minor 95 %
Method Could Be Static All, Analyze, ClassReview 188 41 Minor 95 %
Different Argument Counts All, Analyze, ClassReview 4 4 Minor 0 %
Locally Unused Property Dead code, All, Simple 2 1 Minor 76 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 6 4 Minor 49 %
Make Global A Property Analyze, All, Simple 58 21 Minor 33 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 4 4 Critical 50 %
No Public Access Analyze, All 6 2 Minor 60 %
Property Could Be Local All, Analyze, ClassReview 11 6 Minor 71 %
Never Used Properties Analyze, All, Simple 2 1 Minor 72 %
Property Used In One Method Only All, Analyze 12 11 Minor 84 %
Should Use Local Class Analyze, ClearPHP, All, Simple 228 46 Minor 94 %
Static Methods Called From Object Analyze, All, Simple, CI-checks 2 1 Minor 38 %
Undefined Classes Analyze, All 20 9 Major 91 %
Undefined Class Constants Analyze, All, CI-checks 1 1 Major 53 %
Undefined Parent Analyze, All, Simple 1 1 Minor 63 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks 12 2 Major 58 %
Unresolved Classes Analyze, All 14 7 Major 86 %
Unused Methods Dead code, All, Simple 179 42 Minor 95 %
Unused Private Properties Dead code, OneFile, All, Simple 16 8 Minor 37 %
Unused Protected Methods Dead code, All 3 1 Major 72 %
Use Class Operator All, Analyze, Performances, Simple, CI-checks 13 4 Minor 74 %
Use Instanceof Analyze, All, Simple, CI-checks 4 1 Major 63 %
Used Once Property All, Analyze 16 8 Minor 72 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks 5 1 Minor 57 %
Constants With Strange Names Analyze, All, Simple, CI-checks 5 1 Minor 1 %
Invalid Constant Name Analyze, All, Simple 5 1 Major 1 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks 159 51 Minor 54 %
Uncaught Exceptions Analyze, All 14 2 Minor 81 %
Missing Include All, Analyze 61 11 Critical 61 %
Aliases Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks 1 1 Minor 42 %
Use Named Boolean In Argument Definition All, Analyze 14 5 Minor 84 %
Callback Needs Return All, Analyze, CI-checks 1 1 Major 51 %
Could Make A Function All, Analyze, Suggestions 1037 71 Minor 75 %
Empty Function Analyze, All, Simple 1 1 Minor 71 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 10 7 Major 61 %
Mismatched Default Arguments All, Analyze, Typechecks 28 12 Minor 33 %
Never Used Parameter All, Analyze, Suggestions 8 8 Minor 47 %
No Boolean As Default All, Analyze 14 5 Minor 84 %
Only Variable Passed By Reference All, Analyze 3 3 Critical 40 %
Relay Function Analyze, All 32 13 Major 83 %
Too Many Local Variables All, Analyze 5 5 Minor 65 %
Undefined Functions Analyze, All, CI-checks 2757 84 Major 71 %
Unused Arguments Analyze, All, Simple 11 5 Major 89 %
Unused Functions Dead code, All, Simple 1 1 Minor 53 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple 1 1 Minor 39 %
Uses Default Values Analyze, All, Simple, CI-checks 104 38 Minor 97 %
Using Deprecated Method All, Analyze 203 22 Minor 0 %
Methods Without Return All, Analyze 199 53 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks 3 2 Major 38 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks 2 2 Minor 0 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks 1 1 Major 55 %
Logical To in_array All, Analyze, Level 2 2 2 Minor 66 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks 8 5 Minor 74 %
Detect Current Class All, Suggestions, CompatibilityPHP74 10 6 None 47 %
Don't Pollute Global Space All, Analyze 36 3 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks 13 8 Major 45 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks 14 11 Minor 52 %
No Class In Global All, Analyze, CI-checks 30 3 Minor 78 %
PHP Keywords As Names Analyze, All, Simple 30 8 Major 89 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks 28 12 Major 71 %
Use Nullable Type All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 10 5 Major 21 %
Avoid Using stdClass All, Analyze, OneFile, Simple, Level 4 8 2 Minor 45 %
Usort Sorting In PHP 7.0 CompatibilityPHP70, All 2 2 Major 46 %
Wrong Type For Native PHP Function All, Analyze, CI-checks 3 2 Minor 0 %
Configure Extract All, Security 2 2 Minor 22 %
Direct Injection Security, All 11 6 Major 41 %
Integer Conversion All, Security 2 1 Major 0 %
No Weak SSL Crypto All, Security 1 1 Minor 0 %
Unserialize Second Arg Security, All 2 2 Critical 49 %
Adding Zero Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 2 2 Minor 33 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks 1 1 Major 52 %
Alternative Syntax Consistence All, Analyze 14 1 Major 20 %
Array_merge Needs Array Of Arrays All, Analyze 6 3 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 10 5 Minor 92 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks 8 8 Minor 76 %
Buried Assignation Analyze, All 2 1 Minor 82 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 2 2 Minor 55 %
Check All Types All, Analyze 9 7 Major 68 %
Common Alternatives Analyze, All, Simple 49 16 Major 61 %
Could Be Else All, Analyze 3 2 Minor 48 %
Could Be Static Analyze, OneFile, All, ClassReview 3 2 Major 20 %
Could Use __DIR__ Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks 2 1 Major 56 %
Could Use str_repeat() All, Analyze, Level 1, Top10, CI-checks 3 1 Minor 12 %
Dont Change The Blind Var All, Analyze 3 3 Minor 72 %
Dont Mix ++ All, Analyze 1 1 Minor 43 %
Double Assignation Analyze, All 7 6 Major 55 %
Double Instructions Analyze, All, Simple 2 2 Minor 57 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks 14 8 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 56 18 Minor 58 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks 3 3 Minor 65 %
Empty Instructions Dead code, Analyze, All, Simple 754 39 Minor 43 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks 42 12 Major 60 %
Global Usage Analyze, Appinfo, ClearPHP, All 70 26 Minor 52 %
If With Same Conditions Analyze, All, Simple, CI-checks 3 2 Major 44 %
Implied If Analyze, ClearPHP, All, Simple, CI-checks 2 2 Major 29 %
Inconsistent Elseif All, Analyze 11 7 Major 73 %
Logical Mistakes Analyze, All, Simple, Level 1, CI-checks 7 2 Critical 31 %
Long Arguments All, Analyze 40 20 Minor 67 %
Max Level Of Nesting All, Analyze 5 4 Minor 0 %
Merge If Then All, Analyze, CI-checks 23 18 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 5 4 Major 62 %
Missing Cases In Switch All, Analyze 2 1 Minor 2 %
Mixed Concat And Interpolation All, Coding Conventions, Analyze 1 1 Minor 43 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 17 14 Minor 56 %
Multiples Identical Case Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 1 1 Minor 10 %
Multiple Type Variable All, Analyze, Level 4 1 1 Minor 43 %
Nested Ifthen Analyze, All, RadwellCodes 38 19 Major 87 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks 1 1 Major 43 %
No Hardcoded Hash Analyze, Security, All, Simple 2 1 Critical 44 %
No isset() With empty() All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks 38 15 Minor 28 %
No Need For Else All, Analyze 19 9 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 113 36 Minor 57 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks 5 2 Minor 66 %
include_once() Usage Analyze, Appinfo, All 66 13 Minor 73 %
Several Instructions On The Same Line Analyze, All 48 13 Major 57 %
PHP7 Dirname CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Suggestions, php-cs-fixable 1 1 Minor 42 %
Print And Die Analyze, All, Simple, CI-checks 6 3 Minor 29 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks 14 9 Major 49 %
Return True False Analyze, All, Simple, Level 1, CI-checks 3 2 Major 53 %
Should Make Ternary All, Analyze, OneFile, Simple, CI-checks 44 20 Minor 85 %
Preprocessable Analyze, All, Rector 135 47 Minor 86 %
Static Loop Analyze, All, Simple, Level 4 10 6 Minor 65 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks 3 3 Major 68 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80 6 4 Minor 0 %
Unused Global Analyze, All, Simple 3 1 Minor 18 %
Use Constant PHP recommendations, All, Analyze, php-cs-fixable, CI-checks 2 1 Minor 0 %
Use Positive Condition All, Analyze, OneFile, Simple 19 13 Minor 81 %
Useless Check All, Analyze, OneFile, Simple, Level 1, CI-checks 1 1 Minor 48 %
Useless Global Analyze, OneFile, All, Simple, Level 2 4 3 Minor 24 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 8 8 Minor 58 %
Useless Parenthesis Analyze, All, Simple, CI-checks 16 10 Minor 81 %
Useless Switch Analyze, All, Simple 1 1 Major 30 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks 1 1 Minor 47 %
String May Hold A Variable Analyze, All, Simple 3 1 Minor 58 %
Assigned Twice All, Analyze 155 21 Minor 78 %
Overwritten Literals Analyze, All 143 21 Major 78 %
Undefined Variable All, Analyze, CI-checks 358 36 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 6 6 Minor 87 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4 86 33 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple 55 17 Minor 78 %