PHP Static analysis for MedShakeEHR-base

Label Recipes Issues Files Severity Frequence
Multiple Index Definition Analyze, OneFile, All, Simple, CI-checks 1 1 Minor 25 %
Null Or Boolean Arrays All, Analyze 6 2 Minor 0 %
Randomly Sorted Arrays All, Analyze, Level 4, Suggestions 7 7 Minor 41 %
String Initialization All, CompatibilityPHP71 44 13 Minor 33 %
Too Many Array Dimensions All, Analyze 396 78 Minor 0 %
Ambiguous Static All, Analyze 6 4 Minor 64 %
Ambiguous Visibilities All, Analyze 28 16 Minor 70 %
Avoid Optional Properties All, Analyze 224 34 Major 83 %
Could Be Abstract Class All, Analyze, ClassReview 1 1 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 53 53 Minor 95 %
Method Could Be Static All, Analyze, ClassReview 103 22 Minor 95 %
Cyclic References All, Analyze, ClassReview 1 1 Minor 0 %
Locally Unused Property Dead code, All, Simple 4 4 Minor 76 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 30 14 Minor 49 %
Make Global A Property Analyze, All, Simple 114 38 Minor 33 %
No Public Access Analyze, All 2 1 Minor 60 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks 3 3 Minor 42 %
Non Static Methods Called In A Static Analyze, CompatibilityPHP56, All, Simple, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CI-checks 7 7 Minor 20 %
Property Could Be Local All, Analyze, ClassReview 32 18 Minor 71 %
Never Used Properties Analyze, All, Simple 4 4 Minor 72 %
Property Used In One Method Only All, Analyze 12 10 Minor 84 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 15 4 Minor 57 %
Should Use Local Class Analyze, ClearPHP, All, Simple 205 41 Minor 94 %
Static Methods Called From Object Analyze, All, Simple, CI-checks 37 30 Minor 38 %
Undefined Classes Analyze, All 523 120 Major 91 %
Undefined Class Constants Analyze, All, CI-checks 6 4 Major 53 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks 18 3 Major 58 %
Undefined ::class All, Analyze, CI-checks 8 2 Major 34 %
Unresolved Classes Analyze, All 48 35 Major 86 %
Unused Classes Dead code, All, Simple, Analyze 1 1 Major 72 %
Unused Methods Dead code, All, Simple 258 30 Minor 95 %
Unused Private Methods Dead code, OneFile, All, Simple 1 1 Minor 45 %
Unused Private Properties Dead code, OneFile, All, Simple 27 13 Minor 37 %
Use Class Operator All, Analyze, Performances, Simple, CI-checks 11 6 Minor 74 %
Use Instanceof Analyze, All, Simple, CI-checks 3 2 Major 63 %
Used Once Property All, Analyze 22 13 Minor 72 %
Multiple Constant Definition Analyze, All, Simple, CI-checks 4 4 Minor 32 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks 6 5 Minor 54 %
Uncaught Exceptions Analyze, All 322 42 Minor 81 %
Aliases Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks 7 6 Minor 42 %
Use Named Boolean In Argument Definition All, Analyze 9 6 Minor 84 %
Callback Needs Return All, Analyze, CI-checks 1 1 Major 51 %
Could Make A Function All, Analyze, Suggestions 562 219 Minor 75 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 43 8 Major 61 %
Mismatched Default Arguments All, Analyze, Typechecks 29 11 Minor 33 %
Never Used Parameter All, Analyze, Suggestions 19 10 Minor 47 %
No Boolean As Default All, Analyze 9 6 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4 114 25 Minor 41 %
Relay Function Analyze, All 107 5 Major 83 %
Too Many Local Variables All, Analyze 6 5 Minor 65 %
Undefined Functions Analyze, All, CI-checks 23 6 Major 71 %
Unused Arguments Analyze, All, Simple 12 5 Major 89 %
Use Constant As Arguments Analyze, All, Simple, CI-checks 1 1 Major 25 %
Useless Return Analyze, OneFile, All, Simple, Level 4 2 2 Minor 29 %
Uses Default Values Analyze, All, Simple, CI-checks 1636 344 Minor 97 %
Methods Without Return All, Analyze 174 43 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks 55 27 Major 38 %
Unresolved Use Analyze, ClearPHP, All, Simple 7 4 Major 65 %
Unused Use Dead code, ClearPHP, All, Simple 1 1 Major 54 %
Use With Fully Qualified Name Analyze, Coding Conventions, PHP recommendations, All, Simple 1 1 Minor 16 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks 13 10 Major 55 %
Logical To in_array All, Analyze, Level 2 35 17 Minor 66 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks 47 20 Minor 74 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze 36 10 Minor 0 %
Assign With And All, Analyze, CI-checks 4 2 Critical 8 %
Avoid mb_dectect_encoding() All, Analyze 8 7 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks 6 5 Major 59 %
Don't Pollute Global Space All, Analyze 72 71 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks 37 30 Major 45 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks 2 1 Minor 52 %
List With Keys CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Appcontent, Appinfo, All 12 8 Major 32 %
Logical Should Use Symbolic Operators Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks 461 145 Minor 42 %
Possible Missing Subpattern All, Analyze, Top10, CI-checks 2 2 Minor 40 %
No Class In Global All, Analyze, CI-checks 68 67 Minor 78 %
PHP Keywords As Names Analyze, All, Simple 702 162 Major 89 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks 4 4 Major 71 %
Too Many Native Calls All, Analyze 11 6 Minor 47 %
Use Nullable Type All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 10 1 Major 21 %
Usort Sorting In PHP 7.0 CompatibilityPHP70, All 4 3 Major 46 %
Wrong Type For Native PHP Function All, Analyze, CI-checks 309 93 Minor 0 %
Always Anchor Regex All, Security 30 11 Major 65 %
Avoid Those Hash Functions Security, All 6 6 Major 60 %
Direct Injection Security, All 180 79 Major 41 %
Don't Echo Error All, Analyze, Security, Simple, Level 1, CI-checks 18 17 Critical 32 %
Indirect Injection Security, All 19 7 Critical 21 %
Integer Conversion All, Security 10 8 Major 0 %
Keep Files Access Restricted All, Security 1 1 Minor 0 %
No Net For Xml Load All, Security 5 4 Major 49 %
Set Cookie Safe Arguments All, Security 2 1 Major 23 %
Should Use Prepared Statement Analyze, Security, All, Simple, CI-checks 12 3 Major 22 %
Should Use session_regenerateid() All, Security 1 1 Major 82 %
Unserialize Second Arg Security, All 8 6 Critical 49 %
Adding Zero Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 25 6 Minor 33 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks 18 15 Major 52 %
Alternative Syntax Consistence All, Analyze 2 1 Major 20 %
Array_merge Needs Array Of Arrays All, Analyze 21 11 Minor 0 %
Assign And Compare All, Analyze, CI-checks 1 1 Minor 17 %
Same Variable Foreach All, Analyze, CI-checks 1 1 Minor 12 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 18 12 Minor 92 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks 153 85 Minor 76 %
Buried Assignation Analyze, All 213 58 Minor 82 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 2 2 Minor 55 %
Check All Types All, Analyze 23 15 Major 68 %
Check JSON All, Analyze, CI-checks 222 150 Major 64 %
Common Alternatives Analyze, All, Simple 34 23 Major 61 %
Concat Empty String All, Analyze, OneFile 2 1 Minor 0 %
Could Be Else All, Analyze 2 2 Minor 48 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks 64 13 Minor 60 %
Dont Change The Blind Var All, Analyze 14 11 Minor 72 %
Double Assignation Analyze, All 58 36 Major 55 %
Double Instructions Analyze, All, Simple 10 6 Minor 57 %
Double Object Assignation All, Analyze, ClassReview 2 2 Minor 0 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks 76 27 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 14 12 Minor 58 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks 33 22 Minor 65 %
Empty Blocks Analyze, All, Simple, CI-checks 8 8 Minor 57 %
Empty Instructions Dead code, Analyze, All, Simple 15 5 Minor 43 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks 300 174 Major 60 %
Overwritten Source And Value All, Analyze, OneFile 1 1 Minor 0 %
Global Usage Analyze, Appinfo, ClearPHP, All 143 58 Minor 52 %
Identical Consecutive Expression All, Analyze 3 2 Minor 58 %
If With Same Conditions Analyze, All, Simple, CI-checks 1 1 Major 44 %
Iffectations Analyze, All 302 126 Minor 80 %
Inconsistent Elseif All, Analyze 33 26 Major 73 %
Indices Are Int Or String Analyze, OneFile, All, Simple, CI-checks 3 2 Major 18 %
Infinite Recursion All, Analyze 3 3 Major 0 %
Lone Blocks Analyze, All, Simple, Level 4, CI-checks 1 1 Minor 14 %
Long Arguments All, Analyze 19 14 Minor 67 %
Max Level Of Nesting All, Analyze 34 19 Minor 0 %
Merge If Then All, Analyze, CI-checks 92 49 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 2 1 Major 62 %
Mixed Concat And Interpolation All, Coding Conventions, Analyze 20 8 Minor 43 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 18 12 Minor 56 %
Multiple Type Variable All, Analyze, Level 4 13 11 Minor 43 %
Multiply By One Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 6 1 Minor 17 %
Nested Ifthen Analyze, All, RadwellCodes 208 94 Major 87 %
Nested Ternary Analyze, ClearPHP, All, Simple, Level 1, CI-checks 1 1 Major 20 %
Don't Change Incomings Analyze, All 39 24 Minor 44 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks 2 2 Major 43 %
No Direct Usage Analyze, All, Simple 3 3 Major 36 %
No Hardcoded Hash Analyze, Security, All, Simple 1 1 Critical 44 %
No Hardcoded Path Analyze, ClearPHP, All, Simple 8 5 Major 33 %
No Need For Else All, Analyze 84 29 Minor 74 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks 59 47 Minor 61 %
Avoid Substr() One Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks 2 2 Minor 57 %
Variable Is Not A Condition All, Analyze 35 20 Minor 57 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks 25 8 Minor 66 %
Several Instructions On The Same Line Analyze, All 2 2 Major 57 %
Phpinfo OneFile, All, Simple, Security 1 1 Major 14 %
Print And Die Analyze, All, Simple, CI-checks 4 4 Minor 29 %
Queries In Loops Analyze, OneFile, All, Simple, Level 1, Top10 2 1 Major 7 %
Random Without Try Security, All 2 1 Critical 21 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks 13 9 Major 49 %
Repeated Regex All, Analyze, Level 1, CI-checks 5 4 Minor 47 %
Return True False Analyze, All, Simple, Level 1, CI-checks 46 26 Major 53 %
Same Conditions In Condition Analyze, All, Simple, CI-checks 13 11 Critical 49 %
Should Make Ternary All, Analyze, OneFile, Simple, CI-checks 225 95 Minor 85 %
Preprocessable Analyze, All, Rector 19 7 Minor 86 %
Static Loop Analyze, All, Simple, Level 4 1 1 Minor 65 %
Strpos()-like Comparison Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks 15 8 Major 54 %
Switch To Switch Analyze, All, RadwellCodes, Simple 29 24 Minor 79 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks 2 2 Major 68 %
Timestamp Difference Analyze, All, Simple, Level 3, CI-checks 14 5 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 %
Unused Global Analyze, All, Simple 11 8 Minor 18 %
Use Positive Condition All, Analyze, OneFile, Simple 105 84 Minor 81 %
Use System Tmp Analyze, All, Simple, Level 3, CI-checks 2 1 Major 1 %
Useless Brackets Analyze, All, RadwellCodes, Simple, CI-checks 1 1 Minor 14 %
Useless Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks 2 2 Minor 37 %
Useless Check All, Analyze, OneFile, Simple, Level 1, CI-checks 1 1 Minor 48 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 22 7 Minor 58 %
Useless Parenthesis Analyze, All, Simple, CI-checks 62 32 Minor 81 %
Useless Unset Analyze, OneFile, ClearPHP, All, Simple, Level 2, CI-checks 14 3 Major 28 %
var_dump()... Usage Analyze, ClearPHP, Security, All, CI-checks 22 5 Critical 40 %
One Variable String Analyze, All, RadwellCodes, Simple, CI-checks 1 1 Minor 29 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks 3 2 Minor 47 %
String May Hold A Variable Analyze, All, Simple 15 3 Minor 58 %
Assigned Twice All, Analyze 79 14 Minor 78 %
Overwritten Literals Analyze, All 89 14 Major 78 %
Strange Name For Variables All, Analyze 6 4 Minor 28 %
Undefined Variable All, Analyze, CI-checks 3385 352 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 12 11 Minor 87 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4 499 289 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple 84 27 Minor 78 %