PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Null Or Boolean Arrays All, Analyze, ChangedBehavior 14 2 Minor 0 %
Too Many Array Dimensions All, Analyze 9 2 Minor 0 %
Ambiguous Visibilities All, Analyze 36 11 Minor 70 %
Avoid Optional Properties All, Analyze 9 3 Major 84 %
Class Could Be Final All, Analyze, ClassReview 20 20 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 36 5 Minor 92 %
Could Inject Param All, Analyze, ClassReview 19 9 Minor 0 %
Empty Classes Analyze, All, Simple 2 2 Minor 60 %
Hidden Nullable Typehint All, Analyze, ClassReview 24 15 Minor 0 %
Make Global A Property Analyze, All, Simple 1 1 Minor 37 %
No Public Access Analyze, All 26 2 Minor 61 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 41 4 Minor 42 %
Parent First All, Analyze, Suggestions 1 1 Minor 56 %
Property Could Be Local All, Analyze, ClassReview 2 2 Minor 76 %
Same Name For Property And Method All, Analyze, ClassReview, Semantics 30 2 Minor 0 %
Never Used Properties Analyze, All, Simple, Unused 139 18 Minor 71 %
Parent, Static Or Self Outside Class Analyze, All, Simple, ChangedBehavior 16 13 Major 2 %
Should Use Local Class Analyze, ClearPHP, All, Simple 39 5 Minor 95 %
Too Many Dereferencing All, Analyze 1 1 Minor 0 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 233 63 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 1 1 Major 62 %
Undefined Parent Analyze, All, Simple, Undefined 10 2 Minor 45 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, Undefined, ChangedBehavior, CE 702 49 Major 61 %
Undefined static:: Or self:: Analyze, All, Simple, Undefined 4 1 Minor 35 %
Unfinished Object All, Analyze, ClassReview 66 16 Major 0 %
Unresolved Classes Analyze, All, Stubs 93 25 Major 76 %
Unused Classes Dead code, All, Simple, Analyze, Unused 20 20 Major 67 %
Unused Class Constant All, Analyze, ClassReview, Unused 3 3 Minor 0 %
Unused Public Method All, Analyze 45 7 Minor 0 %
Weak Typing All, Analyze 7 3 Minor 47 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 5 1 Minor 71 %
Throw Raw Exceptions All, Analyze, Suggestions 3 2 Minor 0 %
Uncaught Exceptions Analyze, All 3 2 Minor 84 %
Missing Include All, Analyze 93 9 Critical 65 %
Native Alias Functions Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks, CE 4 2 Minor 42 %
Use Named Boolean In Argument Definition All, Analyze 9 8 Minor 84 %
Could Make A Function All, Analyze, Suggestions 765 79 Minor 66 %
Empty Function Analyze, All, Simple 1 1 Minor 74 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 34 2 Major 70 %
Modified Typed Parameter All, Analyze, ClassReview 4 2 Minor 0 %
No Boolean As Default All, Analyze 10 8 Minor 84 %
No Default For Referenced Parameter All, Analyze 2 1 Minor 0 %
Relay Function Analyze, All 48 20 Major 84 %
Too Many Local Variables All, Analyze 14 11 Minor 64 %
Typehinted References All, Analyze, CI-checks, CE 3 2 Minor 37 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 1617 91 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 17 10 Major 90 %
Unused Inherited Variable In Closure All, Analyze, Dead code, CI-checks, Unused, CE 1 1 Major 23 %
Use Constant As Arguments Analyze, All, Simple, CI-checks, CE 2 1 Major 30 %
Useless Referenced Argument All, Analyze 4 4 Minor 58 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 1193 102 Minor 98 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, IsPHP, IsStub, IsExt, CE 49 21 Major 81 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 56 11 Minor 0 %
Forgotten Interface All, Analyze 1 1 Minor 48 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 51 20 Major 72 %
Useless Interfaces Analyze, ClearPHP, All, Simple, ClassReview, Typechecks 4 4 Minor 59 %
Hidden Use Expression Analyze, OneFile, All, Simple, CI-checks, CE 4 2 Minor 23 %
Unresolved Use Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt 4 2 Major 69 %
Logical To in_array All, Analyze, Level 2 11 6 Minor 67 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, CE 43 23 Minor 74 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze, CE 2 1 Minor 0 %
Assumptions All, Analyze 20 7 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks, CE 10 2 Major 59 %
Don't Pollute Global Space All, Analyze 251 91 Minor 0 %
False To Array Conversion All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82, Analyze 49 8 Minor 0 %
Incompilable Files Analyze, Appinfo, ClearPHP, All, Simple, CE 1 1 Critical 24 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, CE 17 6 Major 76 %
Logical Should Use Symbolic Operators Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks, CE 45 3 Minor 43 %
Possible Missing Subpattern All, Analyze, Top10, CI-checks, CE 3 1 Minor 45 %
No Class In Global All, Analyze, CI-checks, CE 247 91 Minor 77 %
No Null For Native PHP Functions All, Analyze, CompatibilityPHP81, Deprecated 93 25 Minor 0 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks, CE 16 2 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 6 3 Major 71 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 74 29 Minor 0 %
Don't Echo Error All, Analyze, Security, Simple, Level 1, CI-checks, CE 36 35 Critical 35 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 3 2 Major 56 %
Alternative Syntax Consistence All, Analyze 11 1 Major 21 %
Comparison Is Always True All, Analyze 6 4 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 57 33 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 30 17 Minor 77 %
Buried Assignation Analyze, All 15 7 Minor 84 %
Check All Types All, Analyze 1 1 Major 69 %
Check Division By Zero All, Analyze 12 9 Minor 0 %
Check JSON All, Analyze, CI-checks, CE 29 9 Major 65 %
Common Alternatives Analyze, All, Simple 47 24 Major 80 %
Could Use __DIR__ Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks, CE 10 6 Major 56 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks, Rector, CE 4 2 Minor 63 %
Dont Change The Blind Var All, Analyze 16 9 Minor 73 %
Dont Mix ++ All, Analyze 3 3 Minor 56 %
Double Assignation Analyze, All 7 6 Major 59 %
Double Instructions Analyze, All, Simple 2 1 Minor 57 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, CE 19 13 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 153 24 Minor 60 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE 37 13 Minor 66 %
Empty Blocks Analyze, All, Simple, CI-checks, CE 6 6 Minor 51 %
Empty Instructions Dead code, Analyze, All, Simple 50 21 Minor 57 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 57 30 Major 61 %
Forgotten Whitespace Analyze, All, CI-checks, CE 2 2 Minor 16 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 29 5 Minor 52 %
Htmlentities Calls Analyze, All, Simple, CI-checks, CE 7 5 Major 40 %
Htmlentities Using Default Flag All, Analyze, Simple, CI-checks, ChangedBehavior 1 1 Minor 0 %
Identical Consecutive Expression All, Analyze 5 2 Minor 59 %
If With Same Conditions Analyze, All, Simple, CI-checks, CE 1 1 Major 47 %
Iffectations Analyze, All 5 2 Minor 80 %
Implied If Analyze, ClearPHP, All, Simple, CI-checks, Rector, CE 1 1 Major 33 %
Inconsistent Elseif All, Analyze 4 4 Major 73 %
Indices Are Int Or String Analyze, OneFile, All, Simple, CI-checks, CE 5 4 Major 20 %
list() May Omit Variables Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 2 1 Minor 37 %
Long Arguments All, Analyze 8 3 Minor 68 %
Max Level Of Nesting All, Analyze 17 12 Minor 0 %
Merge If Then All, Analyze, CI-checks, CE 31 20 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 1 1 Major 64 %
Maybe Missing New All, Analyze 5 4 Critical 57 %
Mixed Concat And Interpolation All, Coding Conventions, Analyze 6 3 Minor 45 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 20 12 Minor 63 %
Multiple Type Variable All, Analyze, Level 4 2 2 Minor 58 %
Nested Ifthen Analyze, All, RadwellCodes 74 31 Major 84 %
Nested Ternary Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 2 1 Major 50 %
Don't Change Incomings Analyze, All 1 1 Minor 44 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, CE 1 1 Major 42 %
No Hardcoded Path Analyze, ClearPHP, All, Simple 6 6 Major 35 %
No isset() With empty() All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE 1 1 Minor 30 %
No Need For Else All, Analyze 25 15 Minor 74 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE 58 16 Minor 62 %
Avoid Substr() One Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks, CE 5 2 Minor 58 %
Variable Is Not A Condition All, Analyze 116 38 Minor 93 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, CE 1 1 Minor 65 %
Not Equal Is Not !== All, Analyze, CI-checks, CE 2 1 Minor 0 %
Objects Don't Need References Analyze, ClearPHP, OneFile, All, Simple, Level 2, Top10, CI-checks, CE 1 1 Minor 40 %
include_once() Usage Analyze, Appinfo, All, CE 109 15 Minor 73 %
Several Instructions On The Same Line Analyze, All 54 9 Major 56 %
Print And Die Analyze, All, Simple, CI-checks, CE 3 3 Minor 32 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, CE 54 15 Major 50 %
Repeated Regex All, Analyze, Level 1, CI-checks, CE 37 8 Minor 47 %
Results May Be Missing Analyze, All, Simple, CI-checks, CE 1 1 Major 24 %
Return True False Analyze, All, Simple, Level 1, CI-checks, CE 4 4 Major 46 %
Same Conditions In Condition Analyze, All, Simple, CI-checks, CE 11 7 Critical 55 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 106 42 Minor 86 %
Preprocessable Analyze, All, Rector 87 39 Minor 85 %
Static Loop Analyze, All, Simple, Level 4 3 1 Minor 67 %
Strpos()-like Comparison Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 27 10 Major 54 %
Switch To Switch Analyze, All, RadwellCodes, Simple 4 4 Minor 58 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 1 1 Major 69 %
Timestamp Difference Analyze, All, Simple, Level 3, CI-checks, CE 2 2 Major 49 %
Unconditional Break In Loop All, Analyze, Level 3, CI-checks, CE 3 3 Major 48 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 54 11 Minor 0 %
Unused Global Analyze, All, Simple, Unused 13 1 Minor 22 %
Use Constant Instead Of Function PHP recommendations, All, Analyze, php-cs-fixable, CI-checks, CE 10 6 Minor 61 %
Use Positive Condition All, Analyze, OneFile, Simple 44 24 Minor 82 %
Use Same Types For Comparisons All, Analyze 21 10 Minor 0 %
Useless Type Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE 1 1 Minor 47 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 4 2 Minor 63 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 27 14 Minor 81 %
var_dump()... Usage Analyze, ClearPHP, Security, All, CI-checks, CE 1 1 Critical 42 %
One Variable String Analyze, All, RadwellCodes, Simple, CI-checks, CE 4 4 Minor 33 %
String May Hold A Variable Analyze, All, Simple 3 2 Minor 59 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 8 7 Minor 0 %
Assigned Twice All, Analyze 81 22 Minor 79 %
Overwritten Literals Analyze, All 119 22 Major 79 %
Recycled Variables All, Analyze 2 1 Minor 0 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 376 51 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 28 11 Minor 74 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE 74 34 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 36 12 Minor 87 %