PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Null Or Boolean Arrays All, Analyze, ChangedBehavior 5 2 Minor 0 %
Randomly Sorted Arrays All, Analyze, Level 4, Suggestions 2 1 Minor 41 %
Too Many Array Dimensions All, Analyze 7 3 Minor 0 %
Ambiguous Static All, Analyze 8 6 Minor 66 %
Ambiguous Visibilities All, Analyze 5 4 Minor 70 %
Avoid option arrays in constructors All, Analyze, ClassReview 4 4 Minor 0 %
Avoid Optional Properties All, Analyze 5 2 Major 84 %
Class Could Be Final All, Analyze, ClassReview 64 64 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 100 23 Minor 92 %
Could Inject Param All, Analyze, ClassReview 10 6 Minor 0 %
Cyclic References All, Analyze, ClassReview 1 1 Minor 0 %
Don't Unset Properties All, Analyze, Top10, php-cs-fixable, CI-checks, CE 3 3 Major 42 %
Empty Classes Analyze, All, Simple 3 3 Minor 60 %
Hidden Nullable Typehint All, Analyze, ClassReview 5 3 Minor 0 %
Make Global A Property Analyze, All, Simple 261 40 Minor 37 %
No Public Access Analyze, All 16 7 Minor 61 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 2 2 Minor 42 %
Parent First All, Analyze, Suggestions 9 9 Minor 56 %
Property Could Be Local All, Analyze, ClassReview 1 1 Minor 76 %
Never Used Properties Analyze, All, Simple, Unused 106 34 Minor 71 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 2 2 Minor 63 %
Should Use Local Class Analyze, ClearPHP, All, Simple 125 26 Minor 95 %
$this Belongs To Classes Or Traits Analyze, All, Simple, LintButWontExec 128 14 Major 32 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 1138 77 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 206 30 Major 62 %
Undefined Parent Analyze, All, Simple, Undefined 28 17 Minor 45 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, Undefined, ChangedBehavior, CE 1065 63 Major 61 %
Undefined static:: Or self:: Analyze, All, Simple, Undefined 10 2 Minor 35 %
Unfinished Object All, Analyze, ClassReview 52 25 Major 0 %
Unresolved Classes Analyze, All, Stubs 394 53 Major 76 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10 18 8 Major 48 %
Unused Classes Dead code, All, Simple, Analyze, Unused 65 65 Major 67 %
Unused Class Constant All, Analyze, ClassReview, Unused 1 1 Minor 0 %
Unused Public Method All, Analyze 106 39 Minor 0 %
Use Instanceof Analyze, All, Simple, CI-checks, CE 4 3 Major 63 %
Useless Abstract Class Analyze, All, Simple 1 1 Minor 33 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 21 10 Minor 71 %
Catch Undefined Variable All, Analyze, Undefined 11 7 Minor 0 %
Overwritten Exceptions Analyze, All, Simple, Suggestions, Level 4, CI-checks, CE 1 1 Minor 22 %
Throw Raw Exceptions All, Analyze, Suggestions 4 3 Minor 0 %
Uncaught Exceptions Analyze, All 149 19 Minor 84 %
Useless Catch All, Analyze, CI-checks, CE 4 3 Minor 44 %
Missing Include All, Analyze 11 6 Critical 65 %
Native Alias Functions Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks, CE 565 67 Minor 42 %
Use Named Boolean In Argument Definition All, Analyze 43 21 Minor 84 %
Cancelled Parameter All, Analyze 1 1 Minor 0 %
Could Make A Function All, Analyze, Suggestions 48 18 Minor 66 %
Empty Function Analyze, All, Simple 5 3 Minor 74 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 12 5 Major 70 %
Modified Typed Parameter All, Analyze, ClassReview 2 1 Minor 0 %
No Boolean As Default All, Analyze 46 23 Minor 84 %
Relay Function Analyze, All 23 7 Major 84 %
Too Many Local Variables All, Analyze 17 11 Minor 64 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 1 1 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 58 21 Major 90 %
Useless Referenced Argument All, Analyze 5 3 Minor 58 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 719 73 Minor 98 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, IsPHP, IsStub, IsExt, CE 59 24 Major 81 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 32 17 Minor 0 %
Forgotten Interface All, Analyze 2 2 Minor 48 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 72 27 Major 72 %
Should Make Alias Analyze, OneFile, All, Simple, CI-checks, CE 7 1 Minor 46 %
Unresolved Use Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt 3 1 Major 69 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 14 8 Major 57 %
Logical To in_array All, Analyze, Level 2 7 3 Minor 67 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, CE 25 12 Minor 74 %
strpos() Too Much All, Analyze, CI-checks, CE 1 1 Minor 49 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze, CE 2 2 Minor 0 %
Assumptions All, Analyze 28 11 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks, CE 2 2 Major 59 %
Deprecated PHP Functions Analyze, All, CI-checks, CE 4 2 Major 23 %
Don't Pollute Global Space All, Analyze 67 64 Minor 0 %
False To Array Conversion All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82, Analyze 11 3 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, CE 1 1 Major 76 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, CE 26 14 Minor 53 %
PHP Native Interfaces and Return Type All, Analyze, LintButWontExec, CompatibilityPHP81, Deprecated 2 1 Minor 0 %
Possible Missing Subpattern All, Analyze, Top10, CI-checks, CE 1 1 Minor 45 %
PHP Native Class Type Compatibility All, Analyze, CompatibilityPHP81 8 4 Major 0 %
No Class In Global All, Analyze, CI-checks, CE 64 64 Minor 77 %
No Null For Native PHP Functions All, Analyze, CompatibilityPHP81, Deprecated 18 7 Minor 0 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks, CE 116 2 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 47 14 Major 71 %
Too Many Native Calls All, Analyze, IsPHP, IsExt 18 5 Minor 49 %
Avoid Using stdClass All, Analyze, OneFile, Simple, Level 4 5 4 Minor 46 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 7 5 Minor 0 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 2 2 Major 56 %
Alternative Syntax Consistence All, Analyze 4 1 Major 21 %
Comparison Is Always True All, Analyze 1 1 Minor 0 %
Array_merge Needs Array Of Arrays All, Analyze 24 9 Minor 0 %
Same Variable Foreach All, Analyze, CI-checks, CE 1 1 Minor 16 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 61 31 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 92 18 Minor 77 %
Buried Assignation Analyze, All 27 16 Minor 84 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 4 3 Minor 56 %
Catch Overwrite Variable Analyze, ClearPHP, All, Simple 7 2 Minor 25 %
Check All Types All, Analyze 14 7 Major 69 %
Check Division By Zero All, Analyze 1 1 Minor 0 %
Common Alternatives Analyze, All, Simple 28 17 Major 80 %
Could Be Else All, Analyze 1 1 Minor 49 %
Dangling Array References PHP recommendations, Analyze, ClearPHP, All, Simple, Level 1, Top10, CI-checks, CE 9 5 Major 46 %
Dont Change The Blind Var All, Analyze 18 9 Minor 73 %
Dont Mix ++ All, Analyze 6 5 Minor 56 %
Don't Read And Write In One Expression All, Analyze, CompatibilityPHP73, CompatibilityPHP74, CE 4 3 Critical 38 %
Dont Reuse Foreach Source All, Analyze 1 1 Minor 0 %
Double Assignation Analyze, All 1 1 Major 59 %
Double Instructions Analyze, All, Simple 1 1 Minor 57 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, CE 4 4 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 30 13 Minor 60 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE 13 5 Minor 66 %
Empty Instructions Dead code, Analyze, All, Simple 48 21 Minor 57 %
Empty Try Catch Analyze, All, Level 3 41 17 Minor 49 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 6 2 Major 61 %
Foreach Reference Is Not Modified Analyze, All, Simple, CI-checks, CE 1 1 Minor 24 %
Overwritten Source And Value All, Analyze, OneFile 1 1 Minor 0 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 391 56 Minor 52 %
Htmlentities Calls Analyze, All, Simple, CI-checks, CE 56 16 Major 40 %
Htmlentities Using Default Flag All, Analyze, Simple, CI-checks, ChangedBehavior 56 16 Minor 0 %
Identical Variables In Foreach All, Analyze, OneFile 1 1 Minor 0 %
If With Same Conditions Analyze, All, Simple, CI-checks, CE 1 1 Major 47 %
Iffectations Analyze, All 26 14 Minor 80 %
Inconsistent Elseif All, Analyze 10 6 Major 73 %
list() May Omit Variables Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 2 1 Minor 37 %
Long Arguments All, Analyze 6 6 Minor 68 %
Max Level Of Nesting All, Analyze 27 14 Minor 0 %
Merge If Then All, Analyze, CI-checks, CE 30 13 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 3 3 Major 64 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 28 10 Minor 63 %
Multiple Type Variable All, Analyze, Level 4 5 3 Minor 58 %
Nested Ifthen Analyze, All, RadwellCodes 65 19 Major 84 %
Nested Ternary Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 4 2 Major 50 %
No Need For Else All, Analyze 8 4 Minor 74 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE 6 4 Minor 62 %
Avoid Substr() One Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks, CE 3 2 Minor 58 %
Variable Is Not A Condition All, Analyze 153 36 Minor 93 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, CE 38 10 Minor 65 %
Not Equal Is Not !== All, Analyze, CI-checks, CE 1 1 Minor 0 %
Objects Don't Need References Analyze, ClearPHP, OneFile, All, Simple, Level 2, Top10, CI-checks, CE 8 2 Minor 40 %
include_once() Usage Analyze, Appinfo, All, CE 23 23 Minor 73 %
Several Instructions On The Same Line Analyze, All 32 10 Major 56 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, CE 3 3 Major 50 %
Repeated Regex All, Analyze, Level 1, CI-checks, CE 3 1 Minor 47 %
Same Conditions In Condition Analyze, All, Simple, CI-checks, CE 4 4 Critical 55 %
Should Chain Exception Analyze, All, Simple, CI-checks, CE 26 6 Minor 39 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 31 15 Minor 86 %
Preprocessable Analyze, All, Rector 91 17 Minor 85 %
Should Use Explode Args All, Analyze, CI-checks, CE 2 1 Minor 0 %
Static Loop Analyze, All, Simple, Level 4 2 2 Minor 67 %
Strpos()-like Comparison Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 2 2 Major 54 %
Switch To Switch Analyze, All, RadwellCodes, Simple 2 2 Minor 58 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 24 15 Major 69 %
Unconditional Break In Loop All, Analyze, Level 3, CI-checks, CE 1 1 Major 48 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 102 16 Minor 0 %
Unused Global Analyze, All, Simple, Unused 6 1 Minor 22 %
Use Positive Condition All, Analyze, OneFile, Simple 31 16 Minor 82 %
Use Same Types For Comparisons All, Analyze 5 4 Minor 0 %
Useless Check All, Analyze, OneFile, Simple, Level 1, CI-checks, CE 1 1 Minor 35 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 5 4 Minor 63 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 14 8 Minor 81 %
Useless Switch Analyze, All, Simple 5 4 Major 32 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks, Rector, CE 13 11 Minor 49 %
String May Hold A Variable Analyze, All, Simple 3 2 Minor 59 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 1 1 Minor 0 %
Assigned Twice All, Analyze 74 14 Minor 79 %
Overwritten Literals Analyze, All 87 14 Major 79 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 763 53 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 7 5 Minor 74 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE 348 65 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 55 11 Minor 87 %