PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Arrays/WeakType All, Analyze 36 1 Minor 0 %
Avoid Optional Properties All, Analyze 2 1 Major 84 %
Class Could Be Final All, Analyze, ClassReview 1 1 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 1 1 Minor 92 %
Make Global A Property Analyze, All, Simple 5 1 Minor 37 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 5 1 Minor 42 %
Var Keyword Analyze, OneFile, ClearPHP, All, Simple, Level 1 4 1 Minor 4 %
Property Used In One Method Only All, Analyze 1 1 Minor 84 %
Should Use Local Class Analyze, ClearPHP, All, Simple 3 1 Minor 95 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 2 1 Major 91 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, Undefined, ChangedBehavior, CE 35 1 Major 61 %
Unused Public Method All, Analyze 1 1 Minor 0 %
Use Instanceof Analyze, All, Simple, CI-checks, CE 8 1 Major 63 %
Used Once Property All, Analyze 1 1 Minor 74 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks, CE 12 5 Minor 54 %
Multiple Constant Definition Analyze, All, Simple, CI-checks, CE 4 4 Minor 41 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 13 1 Minor 71 %
Missing Include All, Analyze 9 7 Critical 65 %
Could Make A Function All, Analyze, Suggestions 293 3 Minor 66 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 4 2 Major 70 %
Mismatched Default Arguments All, Analyze, Typechecks 1 1 Minor 80 %
No Return Used All, Analyze, Suggestions, Level 4 1 1 Minor 69 %
Too Many Local Variables All, Analyze 1 1 Minor 64 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 85 9 Major 68 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 71 5 Minor 98 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, IsPHP, IsStub, IsExt, CE 2 1 Major 81 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 2 1 Major 57 %
Logical To in_array All, Analyze, Level 2 1 1 Minor 67 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, CE 4 2 Minor 74 %
Don't Pollute Global Space All, Analyze 18 5 Minor 0 %
Logical Should Use Symbolic Operators Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks, CE 4 2 Minor 43 %
Possible Missing Subpattern All, Analyze, Top10, CI-checks, CE 1 1 Minor 45 %
No Class In Global All, Analyze, CI-checks, CE 5 1 Minor 77 %
No Null For Native PHP Functions All, Analyze, CompatibilityPHP81, Deprecated 7 2 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 2 1 Major 71 %
Use PHP Object API Analyze, ClearPHP, All, Simple, CI-checks, CE 2 1 Minor 27 %
Use Pathinfo Analyze, All, Simple, Level 3, CI-checks, CE 1 1 Minor 11 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 5 2 Minor 0 %
Don't Echo Error All, Analyze, Security, Simple, Level 1, CI-checks, CE 6 2 Critical 35 %
Array_merge Needs Array Of Arrays All, Analyze 1 1 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 1 1 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 7 6 Minor 77 %
Buried Assignation Analyze, All 3 3 Minor 84 %
Check All Types All, Analyze 1 1 Major 69 %
Common Alternatives Analyze, All, Simple 4 4 Major 80 %
Could Be Else All, Analyze 1 1 Minor 49 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks, Rector, CE 4 4 Minor 63 %
Dont Change The Blind Var All, Analyze 1 1 Minor 73 %
Double Instructions Analyze, All, Simple 3 1 Minor 57 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, CE 1 1 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 29 7 Minor 60 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE 23 3 Minor 66 %
Empty Instructions Dead code, Analyze, All, Simple 3 3 Minor 57 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 9 3 Major 61 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 19 1 Minor 52 %
Identical Consecutive Expression All, Analyze 1 1 Minor 59 %
Iffectations Analyze, All 2 1 Minor 80 %
Implied If Analyze, ClearPHP, All, Simple, CI-checks, Rector, CE 2 2 Major 33 %
Inconsistent Elseif All, Analyze 2 2 Major 73 %
Long Arguments All, Analyze 10 2 Minor 68 %
Max Level Of Nesting All, Analyze 2 1 Minor 0 %
Merge If Then All, Analyze, CI-checks, CE 4 1 Minor 0 %
Multiple Type Variable All, Analyze, Level 4 1 1 Minor 58 %
Nested Ifthen Analyze, All, RadwellCodes 36 6 Major 84 %
No Hardcoded Ip Analyze, ClearPHP, Security, All, Simple 552 2 Minor 25 %
No Need For Else All, Analyze 1 1 Minor 74 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE 6 6 Minor 62 %
Avoid Substr() One Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks, CE 1 1 Minor 58 %
Variable Is Not A Condition All, Analyze 7 2 Minor 93 %
include_once() Usage Analyze, Appinfo, All, CE 9 7 Minor 73 %
Several Instructions On The Same Line Analyze, All 21 3 Major 56 %
Or Die Analyze, OneFile, ClearPHP, All, Simple, CI-checks, CE 4 2 Minor 13 %
Print And Die Analyze, All, Simple, CI-checks, CE 4 2 Minor 32 %
Queries In Loops Analyze, OneFile, All, Simple, Level 1, Top10 3 2 Major 8 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, CE 4 2 Major 50 %
Repeated Regex All, Analyze, Level 1, CI-checks, CE 2 1 Minor 47 %
Return True False Analyze, All, Simple, Level 1, CI-checks, CE 1 1 Major 46 %
Same Conditions In Condition Analyze, All, Simple, CI-checks, CE 2 1 Critical 55 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 2 1 Minor 86 %
Preprocessable Analyze, All, Rector 24 4 Minor 85 %
Static Loop Analyze, All, Simple, Level 4 1 1 Minor 67 %
Strpos()-like Comparison Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 1 1 Major 54 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 1 1 Major 69 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 3 1 Minor 0 %
Use Positive Condition All, Analyze, OneFile, Simple 6 6 Minor 82 %
Use Same Types For Comparisons All, Analyze 1 1 Minor 0 %
Useless Check All, Analyze, OneFile, Simple, Level 1, CI-checks, CE 1 1 Minor 35 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 1 1 Minor 81 %
One Variable String Analyze, All, RadwellCodes, Simple, CI-checks, CE 3 2 Minor 33 %
String May Hold A Variable Analyze, All, Simple 23 1 Minor 59 %
Assigned Twice All, Analyze 12 1 Minor 79 %
Overwritten Literals Analyze, All 15 1 Major 79 %
Recycled Variables All, Analyze 2 1 Minor 0 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 126 7 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 1 1 Minor 74 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE 28 3 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 5 1 Minor 87 %