PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Null Or Boolean Arrays All, Analyze, ChangedBehavior 2 1 Minor 0 %
Weak Type With Array All, Analyze 60 11 Minor 0 %
Ambiguous Static All, Analyze, Semantics 23 17 Minor 66 %
Ambiguous Visibilities All, Analyze, Semantics 5 5 Minor 70 %
Avoid Optional Properties All, Analyze 1 1 Major 84 %
Could Be Abstract Class All, Analyze, ClassReview 1 1 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 41 41 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 25 17 Minor 92 %
Could Inject Param All, Analyze, ClassReview 14 6 Minor 0 %
Hidden Nullable Typehint All, Analyze, ClassReview 11 6 Minor 0 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 4 2 Minor 71 %
Make Global A Property Analyze, All, Simple 1 1 Minor 37 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 7 7 Critical 53 %
No Public Access Analyze, All 22 11 Minor 61 %
Parent First All, Analyze, Suggestions 2 2 Minor 56 %
Property Could Be Local All, Analyze, ClassReview 3 3 Minor 76 %
Same Name For Property And Method All, Analyze, ClassReview, Semantics 6 2 Minor 0 %
Never Used Properties Analyze, All, Simple, Unused 8 4 Minor 71 %
Property Used In One Method Only All, Analyze 9 7 Minor 84 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 1 1 Minor 63 %
Should Use Local Class Analyze, ClearPHP, All, Simple 42 18 Minor 95 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 140 33 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 9 2 Major 62 %
Undefined Parent Analyze, All, Simple, Undefined 5 4 Minor 45 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE 17 4 Major 61 %
Undefined ::class All, Analyze, CI-checks, Undefined, CE 2 1 Major 36 %
Unfinished Object All, Analyze, ClassReview 8 5 Major 0 %
Unreachable Method All, Analyze, Dead code, ClassReview, Unused 1 1 Minor 0 %
Unresolved Classes Analyze, All, Stubs 24 13 Major 76 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10 4 4 Major 48 %
Unused Classes Dead code, All, Simple, Analyze, Unused 13 13 Major 67 %
Unused Class Constant All, Analyze, ClassReview, Unused 7 2 Minor 0 %
Unused Public Method All, Analyze 54 25 Minor 0 %
Use Instanceof Analyze, All, Simple, CI-checks, CE 2 2 Major 63 %
Used Once Property All, Analyze 2 2 Minor 74 %
Wrong Typed Property Default All, Analyze, LintButWontExec, ClassReview, CI-checks, CE 2 2 Minor 0 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 9 2 Minor 71 %
Converted Exceptions All, Analyze 1 1 Minor 0 %
Throw Raw Exceptions All, Analyze, Suggestions 16 8 Minor 0 %
Uncaught Exceptions Analyze, All 20 8 Minor 84 %
Unthrown Exception Analyze, Dead code, ClearPHP, All, Simple 1 1 Minor 45 %
Useless Catch All, Analyze, CI-checks, CE 3 2 Minor 44 %
Useless Try All, Analyze 6 6 Minor 0 %
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 18 12 Minor 84 %
Callback Function Needs Return All, Analyze, CI-checks, CE 2 1 Major 42 %
Cancelled Parameter All, Analyze 2 1 Minor 0 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 1 1 Major 70 %
Method Is Not An If All, Analyze 6 3 Minor 0 %
Mismatched Default Arguments All, Analyze, Typechecks 1 1 Minor 80 %
Mismatched Typehint All, Analyze, Typechecks 7 5 Major 66 %
Modified Typed Parameter All, Analyze, ClassReview 9 8 Minor 0 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 10 7 Minor 92 %
No Boolean As Default All, Analyze 16 10 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4 2 2 Minor 69 %
Relay Function Analyze, All 7 4 Major 84 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 17 9 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 12 10 Major 90 %
Unused Inherited Variable In Closure All, Analyze, Dead code, CI-checks, Unused, CE 2 2 Major 23 %
Useless Referenced Argument All, Analyze 2 2 Minor 58 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 154 26 Minor 98 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, IsPHP, IsStub, IsExt, CE 3 2 Major 81 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 39 17 Minor 0 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks, CE 6 5 Minor 0 %
Interfaces Is Not Implemented All, Analyze, ClassReview, LintButWontExec, CI-checks, IsPHP, IsStub, IsExt, CE 10 10 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 28 12 Major 72 %
Useless Interfaces Analyze, ClearPHP, All, Simple, ClassReview, Typechecks 1 1 Minor 59 %
Multiple Alias Definitions Analyze, All, Simple, CI-checks, CE 20 19 Minor 44 %
Should Make Alias Analyze, OneFile, All, Simple, CI-checks, CE 5 4 Minor 46 %
Unresolved Use Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt 60 24 Major 69 %
Use With Fully Qualified Name Analyze, Coding Conventions, PHP recommendations, All, Simple 5 2 Minor 18 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, CE 3 2 Minor 74 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze, CE 2 2 Minor 0 %
Assumptions All, Analyze 16 11 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks, CE 1 1 Major 59 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, CE 15 4 Major 76 %
PHP Native Class Type Compatibility All, Analyze, CompatibilityPHP81 6 5 Major 0 %
No Null For Native PHP Functions All, Analyze, CompatibilityPHP81, Deprecated 16 4 Minor 0 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 30 8 Minor 0 %
Comparison Is Always The Same All, Analyze 2 2 Minor 0 %
Array_merge Needs Array Of Arrays All, Analyze 3 3 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 5 5 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 10 4 Minor 77 %
Buried Assignation Analyze, All 4 3 Minor 84 %
Check All Types All, Analyze 4 2 Major 69 %
Check JSON All, Analyze, CI-checks, CE 8 5 Major 65 %
Common Alternatives Analyze, All, Simple 2 1 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 2 2 Major 46 %
Double Assignation Analyze, All 1 1 Major 59 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, CE 3 2 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 2 1 Minor 60 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE 2 2 Minor 66 %
Empty Blocks Analyze, All, Simple, CI-checks, CE 1 1 Minor 51 %
Empty Loop All, Analyze 1 1 Major 0 %
Empty Try Catch Analyze, All, Level 3 4 4 Minor 49 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 1 1 Minor 52 %
Identical Consecutive Expression All, Analyze 1 1 Minor 59 %
If With Same Conditions Analyze, All, Simple, CI-checks, CE 1 1 Major 47 %
Inconsistent Elseif All, Analyze 1 1 Major 73 %
Merge If Then All, Analyze, CI-checks, CE 1 1 Minor 0 %
Missing Assignation In Command All, Analyze 11 6 Minor 0 %
Mixed Concat And Interpolation All, Coding Conventions, Analyze 3 2 Minor 45 %
Nested Ifthen Analyze, All, RadwellCodes 3 3 Major 84 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, CE 6 5 Major 42 %
No isset() With empty() All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE 2 2 Minor 30 %
No Need For Else All, Analyze 3 2 Minor 74 %
Variable Is Not A Condition All, Analyze 19 8 Minor 93 %
Objects Don't Need References Analyze, ClearPHP, OneFile, All, Simple, Level 2, Top10, CI-checks, CE 1 1 Minor 40 %
Several Instructions On The Same Line Analyze, All 1 1 Major 56 %
Should Chain Exception Analyze, All, Simple, CI-checks, CE 1 1 Minor 39 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 3 3 Minor 86 %
Preprocessable Analyze, All, Rector 16 8 Minor 85 %
Static Loop Analyze, All, Simple, Level 4 2 2 Minor 67 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 1 1 Major 69 %
Test Then Cast All, Analyze 1 1 Major 34 %
Timestamp Difference Analyze, All, Simple, Level 3, CI-checks, CE 4 2 Major 49 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 6 4 Minor 0 %
Use Constant Instead Of Function PHP recommendations, All, Analyze, php-cs-fixable, CI-checks, CE 1 1 Minor 61 %
Use Positive Condition All, Analyze, OneFile, Simple 2 2 Minor 82 %
Useless Global Analyze, OneFile, All, Simple, Level 2 1 1 Minor 27 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 6 5 Minor 63 %
Useless Null Coalesce All, Analyze, Typehints 4 2 Minor 0 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 5 2 Minor 81 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 10 6 Minor 0 %
StandaloneType True False Null All, Appcontent, Analyze 26 10 Minor 0 %
Wrong Type With Default All, Analyze, LintButWontExec, ClassReview 15 10 Minor 0 %
Assigned Twice All, Analyze 7 2 Minor 79 %
Overwritten Literals Analyze, All 7 2 Major 79 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 5 3 Minor 74 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE 33 14 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 11 7 Minor 87 %