PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Weak Type With Array All, Analyze 14 6 Minor 0 %
Class Could Be Final All, Analyze, ClassReview 8 8 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 13 7 Minor 92 %
Empty Classes Analyze, All, Simple 2 2 Minor 60 %
Hidden Nullable Typehint All, Analyze, ClassReview 2 1 Minor 0 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 1 1 Critical 53 %
No Public Access Analyze, All 2 2 Minor 61 %
Never Used Properties Analyze, All, Simple, Unused 7 2 Minor 71 %
Property Used In One Method Only All, Analyze 3 3 Minor 84 %
Should Use Local Class Analyze, ClearPHP, All, Simple 14 8 Minor 95 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 25 8 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 1 1 Major 62 %
Undefined static:: Or self:: Analyze, All, Simple, Undefined 3 1 Minor 35 %
Undefined ::class All, Analyze, CI-checks, Undefined, CE 1 1 Major 36 %
Unfinished Object All, Analyze, ClassReview 8 3 Major 0 %
Unresolved Classes Analyze, All, Stubs 4 2 Major 76 %
Unused Classes Dead code, All, Simple, Analyze, Unused 2 2 Major 67 %
Unused Public Method All, Analyze 5 3 Minor 0 %
Use Instanceof Analyze, All, Simple, CI-checks, CE 1 1 Major 63 %
Used Once Property All, Analyze 1 1 Minor 74 %
Useless Abstract Class Analyze, All, Simple 1 1 Minor 33 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 2 1 Minor 71 %
Throw Raw Exceptions All, Analyze, Suggestions 9 4 Minor 0 %
Uncaught Exceptions Analyze, All 9 4 Minor 84 %
Native Alias Functions Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks, CE 1 1 Minor 20 %
Use Named Boolean In Argument Definition All, Analyze 3 3 Minor 84 %
Mismatched Default Arguments All, Analyze, Typechecks 1 1 Minor 80 %
Must Return Methods Analyze, All, Simple, Level 2, LintButWontExec, CI-checks, CE 1 1 Major 34 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 3 2 Minor 92 %
No Boolean As Default All, Analyze 3 3 Minor 84 %
Relay Function Analyze, All 1 1 Major 84 %
Retyped Reference All, Analyze, Typehints 1 1 Major 0 %
Too Many Local Variables All, Analyze 1 1 Minor 64 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 22 7 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 1 1 Major 90 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 132 13 Minor 98 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, IsPHP, IsStub, IsExt, CE 2 2 Major 81 %
Wrong Optional Parameter Analyze, All, Simple, Level 1, CI-checks, CompatibilityPHP80, ChangedBehavior, CE 1 1 Minor 32 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 6 5 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 2 2 Major 72 %
Useless Interfaces Analyze, ClearPHP, All, Simple, ClassReview, Typechecks 1 1 Minor 59 %
Unresolved Use Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt 14 5 Major 69 %
Logical To in_array All, Analyze, Level 2 3 2 Minor 67 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, CE 8 4 Minor 74 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks, CE 4 3 Major 59 %
Deprecated PHP Functions Analyze, All, CI-checks, CE 3 1 Major 23 %
Don't Pollute Global Space All, Analyze 2 1 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, CE 4 2 Major 76 %
No Class In Global All, Analyze, CI-checks, CE 2 1 Minor 77 %
No Null For Native PHP Functions All, Analyze, CompatibilityPHP81, Deprecated 1 1 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 2 2 Major 71 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 11 6 Minor 0 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 3 2 Major 56 %
Array_merge Needs Array Of Arrays All, Analyze 1 1 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 2 2 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 3 2 Minor 77 %
Buried Assignation Analyze, All 2 1 Minor 84 %
Check All Types All, Analyze 3 2 Major 69 %
Check JSON All, Analyze, CI-checks, CE 5 3 Major 65 %
Concat Empty String All, Analyze, OneFile 1 1 Minor 0 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks, Rector, CE 7 3 Minor 63 %
Dont Mix ++ All, Analyze 5 3 Minor 56 %
Don't Read And Write In One Expression All, Analyze, CompatibilityPHP73, CompatibilityPHP74, CE 2 1 Critical 38 %
Double Assignation Analyze, All 1 1 Major 59 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, CE 1 1 Minor 70 %
Htmlentities Calls Analyze, All, Simple, CI-checks, CE 1 1 Major 40 %
Htmlentities Using Default Flag All, Analyze, Simple, CI-checks, ChangedBehavior 1 1 Minor 0 %
If With Same Conditions Analyze, All, Simple, CI-checks, CE 1 1 Major 47 %
Max Level Of Nesting All, Analyze 1 1 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 1 1 Major 64 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 2 1 Minor 63 %
Nested Ternary Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 1 1 Major 50 %
Next Month Trap All, Analyze, Top10, CI-checks, CE 6 1 Major 8 %
No Hardcoded Hash Analyze, Security, All, Simple 1 1 Critical 45 %
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 %
Avoid Substr() One Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks, CE 2 1 Minor 58 %
Variable Is Not A Condition All, Analyze 4 3 Minor 93 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, CE 5 3 Minor 65 %
include_once() Usage Analyze, Appinfo, All, CE 7 1 Minor 73 %
Should Chain Exception Analyze, All, Simple, CI-checks, CE 1 1 Minor 39 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 2 2 Minor 86 %
Preprocessable Analyze, All, Rector 11 5 Minor 85 %
Switch To Switch Analyze, All, RadwellCodes, Simple 2 2 Minor 58 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 2 1 Major 69 %
Use Positive Condition All, Analyze, OneFile, Simple 2 2 Minor 82 %
Use Same Types For Comparisons All, Analyze 3 1 Minor 0 %
Useless Type Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE 8 1 Minor 47 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 2 2 Minor 63 %
Useless Null Coalesce All, Analyze, Typehints 1 1 Minor 0 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 11 3 Minor 81 %
Cannot Call Static Trait Method Directly All, Analyze, CompatibilityPHP81, CompatibilityPHP82 2 1 Minor 0 %
Dependant Trait Analyze, All, Level 3 1 1 Minor 28 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks, Rector, CE 5 2 Minor 49 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 1 1 Minor 0 %
Assigned Twice All, Analyze 12 3 Minor 79 %
Overwritten Literals Analyze, All 12 3 Major 79 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 15 1 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 3 2 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 3 2 Minor 87 %