PHP Static analysis for StudiousMe

Label Recipes Issues Files Severity Frequence
Null Or Boolean Arrays All, Analyze 66 7 Minor 0 %
Randomly Sorted Arrays All, Analyze, Level 4, Suggestions 99 3 Minor 41 %
String Initialization All, CompatibilityPHP71 210 7 Minor 33 %
Too Many Array Dimensions All, Analyze 35 5 Minor 0 %
Avoid Optional Properties All, Analyze 22 7 Major 83 %
Could Be Abstract Class All, Analyze, ClassReview 1 1 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 22 17 Minor 95 %
Method Could Be Static All, Analyze, ClassReview 39 13 Minor 95 %
Don't Unset Properties All, Analyze, Top10, php-cs-fixable, CI-checks 38 2 Major 40 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 100 11 Minor 49 %
Make Global A Property Analyze, All, Simple 3 3 Minor 33 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks 400 18 Minor 42 %
Old Style Constructor Analyze, OneFile, Appinfo, ClearPHP, All, Simple, CompatibilityPHP80 19 14 Minor 14 %
Var Keyword Analyze, OneFile, ClearPHP, All, Simple, Level 1 192 14 Minor 22 %
Property Used In One Method Only All, Analyze 11 3 Minor 84 %
Should Use Local Class Analyze, ClearPHP, All, Simple 39 13 Minor 94 %
$this Belongs To Classes Or Traits Analyze, All, Simple 172 5 Major 23 %
Wrong Access Style to Property All, Analyze, Level 2, ClassReview, CI-checks 4 1 Critical 3 %
Undefined Classes Analyze, All 81 64 Major 91 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks 66 6 Major 58 %
Unresolved Classes Analyze, All 81 64 Major 86 %
Unused Methods Dead code, All, Simple 90 18 Minor 95 %
Use Class Operator All, Analyze, Performances, Simple, CI-checks 38 15 Minor 74 %
Used Once Property All, Analyze 15 5 Minor 72 %
Useless Constructor Analyze, All, Simple, Level 3 2 2 Minor 38 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks 31 12 Minor 57 %
Constants With Strange Names Analyze, All, Simple, CI-checks 30 11 Minor 1 %
Invalid Constant Name Analyze, All, Simple 30 11 Major 1 %
Multiple Constant Definition Analyze, All, Simple, CI-checks 16 10 Minor 32 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks 118 15 Minor 54 %
Unused Constants Dead code, All, Simple 5 5 Minor 36 %
Missing Include All, Analyze 78 65 Critical 61 %
Use Named Boolean In Argument Definition All, Analyze 33 10 Minor 84 %
Callback Needs Return All, Analyze, CI-checks 2 1 Major 51 %
Could Make A Function All, Analyze, Suggestions 3127 88 Minor 75 %
Deep Definitions Analyze, Appinfo, All, Simple 3 1 Major 12 %
Empty Function Analyze, All, Simple 3 3 Minor 71 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 16 14 Major 61 %
Mismatched Default Arguments All, Analyze, Typechecks 13 2 Minor 33 %
Never Used Parameter All, Analyze, Suggestions 24 11 Minor 47 %
No Boolean As Default All, Analyze 33 10 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4 2 2 Minor 41 %
Too Many Local Variables All, Analyze 32 14 Minor 65 %
Undefined Functions Analyze, All, CI-checks 517 73 Major 71 %
Unused Arguments Analyze, All, Simple 15 8 Major 89 %
Unused Functions Dead code, All, Simple 5 3 Minor 53 %
Useless Referenced Argument All, Analyze 17 11 Minor 57 %
Uses Default Values Analyze, All, Simple, CI-checks 1267 98 Minor 97 %
Methods Without Return All, Analyze 88 17 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks 7 2 Major 38 %
Wrong Optional Parameter Analyze, All, Simple, Level 1, CI-checks 1 1 Minor 38 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks 6 2 Major 55 %
Logical To in_array All, Analyze, Level 2 68 11 Minor 66 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks 294 31 Minor 74 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks 4 4 Major 59 %
Deprecated Functions Analyze, All, CI-checks 4 4 Major 22 %
Don't Pollute Global Space All, Analyze 82 35 Minor 0 %
Incompilable Files Analyze, Appinfo, ClearPHP, All, Simple 1 1 Critical 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks 26 10 Major 45 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks 6 3 Minor 52 %
Logical Should Use Symbolic Operators Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks 30 8 Minor 42 %
No Class In Global All, Analyze, CI-checks 47 26 Minor 78 %
No More Curly Arrays All, CompatibilityPHP74 77 4 Minor 0 %
PHP 7.0 Removed Functions CompatibilityPHP70, CompatibilityPHP71, All 4 4 Major 0 %
PHP 7.4 Removed Functions All, CompatibilityPHP74 1 1 Critical 0 %
PHP Keywords As Names Analyze, All, Simple 128 8 Major 89 %
Use Nullable Type All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 5 3 Major 21 %
Wrong Type For Native PHP Function All, Analyze, CI-checks 139 17 Minor 0 %
Always Anchor Regex All, Security 123 10 Major 65 %
Direct Injection Security, All 3 2 Major 41 %
Encoded Simple Letters All, Security 1 1 Minor 40 %
Indirect Injection Security, All 20 17 Critical 21 %
Should Use session_regenerateid() All, Security 1 1 Major 82 %
Adding Zero Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 320 16 Minor 33 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks 2 2 Major 52 %
Array_merge Needs Array Of Arrays All, Analyze 21 4 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 16 8 Minor 92 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks 55 11 Minor 76 %
Buried Assignation Analyze, All 23 7 Minor 82 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 8 2 Minor 55 %
Check All Types All, Analyze 5 4 Major 68 %
Common Alternatives Analyze, All, Simple 108 14 Major 61 %
Concat Empty String All, Analyze, OneFile 2 1 Minor 0 %
Could Be Else All, Analyze 2 1 Minor 48 %
Could Be Static Analyze, OneFile, All, ClassReview 3 3 Major 20 %
Could Use __DIR__ Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks 1 1 Major 56 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks 40 11 Minor 60 %
Could Use str_repeat() All, Analyze, Level 1, Top10, CI-checks 1 1 Minor 12 %
Dont Change The Blind Var All, Analyze 3 2 Minor 72 %
Dont Mix ++ All, Analyze 2 2 Minor 43 %
Double Assignation Analyze, All 19 12 Major 55 %
Double Instructions Analyze, All, Simple 12 5 Minor 57 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks 16 7 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 28 6 Minor 58 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks 371 26 Minor 65 %
Empty Blocks Analyze, All, Simple, CI-checks 8 3 Minor 57 %
Empty Instructions Dead code, Analyze, All, Simple 85 23 Minor 43 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks 186 111 Major 60 %
Switch Fallthrough All, Inventory, Security, Stats 1 1 Minor 37 %
Forgotten Whitespace Analyze, All, CI-checks 1 1 Minor 15 %
Global Usage Analyze, Appinfo, ClearPHP, All 10 5 Minor 52 %
Htmlentities Calls Analyze, All, Simple, CI-checks 17 7 Major 39 %
Identical Consecutive Expression All, Analyze 68 8 Minor 58 %
If With Same Conditions Analyze, All, Simple, CI-checks 14 5 Major 44 %
Iffectations Analyze, All 9 5 Minor 80 %
Implode() Arguments Order All, Analyze, CI-checks 1 1 Minor 0 %
Inconsistent Elseif All, Analyze 2 1 Major 73 %
Indices Are Int Or String Analyze, OneFile, All, Simple, CI-checks 45 1 Major 18 %
Invalid Regex All, Analyze, CI-checks 8 2 Major 18 %
Is Actually Zero All, Analyze, Level 2, CI-checks 3 2 Minor 32 %
list() May Omit Variables Analyze, All, Simple, Suggestions, Level 3, CI-checks 2 1 Minor 37 %
Lone Blocks Analyze, All, Simple, Level 4, CI-checks 34 1 Minor 14 %
Long Arguments All, Analyze 29 13 Minor 67 %
Max Level Of Nesting All, Analyze 34 13 Minor 0 %
Merge If Then All, Analyze, CI-checks 66 15 Minor 0 %
Missing Parenthesis All, Analyze, Simple, Level 5, CI-checks 24 1 Major 14 %
Mixed Concat And Interpolation All, Coding Conventions, Analyze 1 1 Minor 43 %
Multiple Type Variable All, Analyze, Level 4 1 1 Minor 43 %
Multiply By One Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 3 2 Minor 17 %
Nested Ifthen Analyze, All, RadwellCodes 400 29 Major 87 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks 5 3 Major 43 %
No Direct Usage Analyze, All, Simple 5 1 Major 36 %
No Empty Regex All, Analyze, CI-checks 6 1 Critical 1 %
No Hardcoded Hash Analyze, Security, All, Simple 7 1 Critical 44 %
No Hardcoded Path Analyze, ClearPHP, All, Simple 21 18 Major 33 %
No Need For Else All, Analyze 21 10 Minor 74 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks 103 71 Minor 61 %
Avoid Substr() One Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks 27 7 Minor 57 %
Variable Is Not A Condition All, Analyze 328 28 Minor 57 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks 4 4 Minor 66 %
Objects Don't Need References Analyze, ClearPHP, OneFile, All, Simple, Level 2, Top10, CI-checks 4 2 Minor 31 %
include_once() Usage Analyze, Appinfo, All 13 4 Minor 73 %
Several Instructions On The Same Line Analyze, All 89 24 Major 57 %
Or Die Analyze, OneFile, ClearPHP, All, Simple, CI-checks 5 1 Minor 13 %
Print And Die Analyze, All, Simple, CI-checks 28 17 Minor 29 %
Printf Number Of Arguments All, Analyze, CI-checks 1 1 Minor 42 %
Queries In Loops Analyze, OneFile, All, Simple, Level 1, Top10 4 4 Major 7 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks 4 2 Major 49 %
Repeated Regex All, Analyze, Level 1, CI-checks 71 8 Minor 47 %
Return True False Analyze, All, Simple, Level 1, CI-checks 31 8 Major 53 %
Same Conditions In Condition Analyze, All, Simple, CI-checks 15 5 Critical 49 %
Should Make Ternary All, Analyze, OneFile, Simple, CI-checks 192 21 Minor 85 %
Preprocessable Analyze, All, Rector 3186 38 Minor 86 %
Static Loop Analyze, All, Simple, Level 4 35 9 Minor 65 %
Strpos()-like Comparison Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks 21 4 Major 54 %
Suspicious Comparison All, Analyze, Level 3 1 1 Major 15 %
Switch To Switch Analyze, All, RadwellCodes, Simple 100 14 Minor 79 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks 11 7 Major 68 %
Unchecked Resources Analyze, ClearPHP, All, Simple, Level 2, CI-checks 3 3 Major 49 %
Unconditional Break In Loop All, Analyze, Level 3, CI-checks 1 1 Major 46 %
Unpreprocessed Values Analyze, OneFile, ClearPHP, All, Simple 1 1 Minor 28 %
Unreachable Code Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3 3 3 Major 44 %
Use Constant PHP recommendations, All, Analyze, php-cs-fixable, CI-checks 1 1 Minor 0 %
Use Positive Condition All, Analyze, OneFile, Simple 19 7 Minor 81 %
Useless Brackets Analyze, All, RadwellCodes, Simple, CI-checks 34 1 Minor 14 %
Useless Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks 1 1 Minor 37 %
Useless Check All, Analyze, OneFile, Simple, Level 1, CI-checks 3 2 Minor 48 %
Useless Global Analyze, OneFile, All, Simple, Level 2 3 3 Minor 24 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 7 2 Minor 58 %
Useless Parenthesis Analyze, All, Simple, CI-checks 454 27 Minor 81 %
Useless Unset Analyze, OneFile, ClearPHP, All, Simple, Level 2, CI-checks 1 1 Major 28 %
var_dump()... Usage Analyze, ClearPHP, Security, All, CI-checks 1 1 Critical 40 %
preg_replace With Option e Analyze, CompatibilityPHP70, Security, CompatibilityPHP71, All, Simple, CompatibilityPHP72, CI-checks 2 1 Major 8 %
No Real Comparison Analyze, All, Simple, Level 2, Top10, CI-checks 2 1 Major 22 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks 28 10 Minor 47 %
String May Hold A Variable Analyze, All, Simple 54 15 Minor 58 %
Assigned Twice All, Analyze 552 16 Minor 78 %
Overwritten Literals Analyze, All 678 16 Major 78 %
Undefined Variable All, Analyze, CI-checks 367 18 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 30 12 Minor 87 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4 286 74 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple 53 12 Minor 78 %