PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Null Or Boolean Arrays All, Analyze, ChangedBehavior 78 6 Minor 0 %
Too Many Array Dimensions All, Analyze 2 1 Minor 0 %
Weak Type With Array All, Analyze 28 4 Minor 0 %
Class Could Be Final All, Analyze, ClassReview 5 5 Minor 96 %
Could Inject Param All, Analyze, ClassReview 60 15 Minor 0 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 5 3 Minor 71 %
Multiple Class Declarations Analyze, All, Simple, CI-checks, CE 2 2 Major 29 %
No Public Access Analyze, All 4 2 Minor 61 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 39 2 Minor 42 %
Property Used In One Method Only All, Analyze 2 1 Minor 84 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 32 1 Minor 63 %
Should Use Local Class Analyze, ClearPHP, All, Simple 13 3 Minor 95 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 18 7 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 3 3 Major 62 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE 7 3 Major 61 %
Unfinished Object All, Analyze, ClassReview 2 2 Major 0 %
Unresolved Classes Analyze, All, Stubs 7 2 Major 76 %
Unused Public Method All, Analyze 12 2 Minor 0 %
Used Once Property All, Analyze 1 1 Minor 74 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks, CE 1 1 Minor 54 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 24 6 Minor 71 %
Catch With Undefined Variable All, Analyze, Undefined 1 1 Minor 0 %
Throw Raw Exceptions All, Analyze, Suggestions 17 16 Minor 0 %
Uncaught Exceptions Analyze, All 17 16 Minor 84 %
Useless Try All, Analyze 39 17 Minor 0 %
Missing Include All, Analyze 53 25 Critical 65 %
Use Named Boolean In Argument Definition All, Analyze 12 2 Minor 84 %
Callback Function Needs Return All, Analyze, CI-checks, CE 15 15 Major 42 %
Cancelled Parameter All, Analyze 1 1 Minor 0 %
Could Make A Function All, Analyze, Suggestions 67 16 Minor 66 %
Dont Collect Void All, Analyze, IsPHP, IsStub, IsExt 16 16 Minor 0 %
Empty Function Analyze, All, Simple 4 2 Minor 74 %
Mismatched Default Arguments All, Analyze, Typechecks 1 1 Minor 80 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 3 1 Minor 92 %
No Boolean As Default All, Analyze 12 2 Minor 84 %
Relay Function Analyze, All 1 1 Major 84 %
Too Many Local Variables All, Analyze 2 1 Minor 64 %
Unused Parameter Analyze, All, Simple, Unused 5 4 Major 90 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 423 27 Minor 98 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, IsPHP, IsStub, IsExt, CE 26 4 Major 81 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 5 1 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 2 2 Major 72 %
Hidden Use Expression Analyze, OneFile, All, Simple, CI-checks, CE 5 3 Minor 23 %
Should Make Alias Analyze, OneFile, All, Simple, CI-checks, CE 2 2 Minor 46 %
Unresolved Use Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt 7 3 Major 69 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 1 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 5 4 Minor 74 %
strpos() Too Much All, Analyze, CI-checks, CE 6 4 Minor 49 %
Assumptions All, Analyze 4 2 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks, CE 8 4 Major 59 %
Don't Pollute Global Space All, Analyze 32 20 Minor 0 %
False To Array Conversion All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82, Analyze 12 1 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, CE 30 14 Major 76 %
No Class In Global All, Analyze, CI-checks, CE 31 20 Minor 77 %
No Null For Native PHP Functions All, Analyze, CompatibilityPHP81, Deprecated 7 2 Minor 0 %
Too Many Native Calls All, Analyze, IsPHP, IsExt 1 1 Minor 49 %
Should Use SetCookie() All, Analyze 2 1 Major 6 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 26 9 Minor 0 %
Don't Echo Error All, Analyze, Security, Simple, Level 1, CI-checks, CE 37 15 Critical 35 %
Comparison Is Always The Same All, Analyze 3 1 Minor 0 %
Array_merge Needs Array Of Arrays All, Analyze 2 2 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 9 4 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 16 2 Minor 77 %
Buried Assignation Analyze, All 1 1 Minor 84 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 16 3 Minor 56 %
Check Division By Zero All, Analyze 11 1 Minor 0 %
Check JSON All, Analyze, CI-checks, CE 2 2 Major 65 %
Common Alternatives Analyze, All, Simple 21 7 Major 80 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks, Rector, CE 14 4 Minor 63 %
Double Assignation Analyze, All 1 1 Major 59 %
Double Instructions Analyze, All, Simple 2 1 Minor 57 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 244 17 Minor 60 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE 88 16 Minor 66 %
Empty Blocks Analyze, All, Simple, CI-checks, CE 2 1 Minor 51 %
Empty Try Catch Analyze, All, Level 3 21 9 Minor 49 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 74 21 Major 61 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 22 6 Minor 52 %
Htmlentities Calls Analyze, All, Simple, CI-checks, CE 3 3 Major 40 %
Htmlentities Using Default Flag All, Analyze, Simple, CI-checks, ChangedBehavior 3 3 Minor 0 %
Identical Case In Switch All, Analyze 6 1 Minor 0 %
Max Level Of Nesting All, Analyze 4 1 Minor 0 %
Merge If Then All, Analyze, CI-checks, CE 15 8 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 9 2 Major 64 %
Missing Assignation In Command All, Analyze 108 17 Minor 0 %
Nested Ifthen Analyze, All, RadwellCodes 105 15 Major 84 %
Nested Ternary Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 6 4 Major 50 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, CE 27 10 Major 42 %
No Hardcoded Path Analyze, ClearPHP, All, Simple 7 4 Major 35 %
No isset() With empty() All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE 2 1 Minor 30 %
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 2 1 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 155 22 Minor 93 %
include_once() Usage Analyze, Appinfo, All, CE 8 6 Minor 73 %
Several Instructions On The Same Line Analyze, All 2 1 Major 56 %
Print And Die Analyze, All, Simple, CI-checks, CE 17 4 Minor 32 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, CE 94 16 Major 50 %
Same Conditions In Condition Analyze, All, Simple, CI-checks, CE 1 1 Critical 55 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 17 9 Minor 86 %
Preprocessable Analyze, All, Rector 54 13 Minor 85 %
Suspicious Comparison All, Analyze, Level 3 2 2 Major 39 %
Switch To Switch Analyze, All, RadwellCodes, Simple 10 5 Minor 58 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 1 1 Major 69 %
Test Then Cast All, Analyze 2 1 Major 34 %
Timestamp Difference Analyze, All, Simple, Level 3, CI-checks, CE 33 7 Major 49 %
Unconditional Break In Loop All, Analyze, Level 3, CI-checks, CE 2 2 Major 48 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 12 7 Minor 0 %
Unused Global Analyze, All, Simple, Unused 2 1 Minor 22 %
Use Positive Condition All, Analyze, OneFile, Simple 16 8 Minor 82 %
Use Same Types For Comparisons All, Analyze 1 1 Minor 0 %
Useless Type Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE 1 1 Minor 47 %
Useless Check All, Analyze, OneFile, Simple, Level 1, CI-checks, CE 4 2 Minor 35 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 23 9 Minor 63 %
Useless Null Coalesce All, Analyze, Typehints 2 1 Minor 0 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 18 5 Minor 81 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks, Rector, CE 14 8 Minor 49 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 1 1 Minor 0 %
Assigned Twice All, Analyze 43 2 Minor 79 %
Overwritten Literals Analyze, All 52 2 Major 79 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 55 6 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 2 1 Minor 74 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE 55 15 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 6 2 Minor 87 %