PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Weak Type With Array All, Analyze 55 17 Minor 0 %
Abstract Or Implements All, Analyze, LintButWontExec, ChangedBehavior 16 16 Major 24 %
Accessing Private Analyze, All, Simple 9 2 Major 17 %
Ambiguous Static All, Analyze, Semantics 13 13 Minor 66 %
Ambiguous Visibilities All, Analyze, Semantics 89 41 Minor 70 %
Avoid Optional Properties All, Analyze 14 9 Major 84 %
Could Be Abstract Class All, Analyze, ClassReview 2 2 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 60 60 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 21 12 Minor 92 %
Could Inject Parameter All, Analyze, ClassReview, ChangedBehavior 29 11 Minor 0 %
Cyclic References All, Analyze, ClassReview 7 7 Minor 0 %
No Direct Call To Magic Method Analyze, All, Level 2, CI-checks, CE 3 3 Major 43 %
Don't Send $this In Constructor All, Analyze 1 1 Minor 41 %
Empty Classes Analyze, All, Simple 1 1 Minor 60 %
Hidden Nullable Typehint All, Analyze, ClassReview 12 12 Minor 0 %
Incompatible Signature Methods With Covariance All, Analyze 1 1 Critical 0 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 3 2 Minor 71 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 1 1 Critical 53 %
Multiple Identical Trait Or Interface Analyze, OneFile, All, Simple, CI-checks, CE 2 2 Minor 0 %
New Object Then Immediate Call All, Analyze, ClassReview 3 3 Minor 0 %
No Public Access Analyze, All 3 1 Minor 61 %
Non Nullable Getters All, Analyze, ClassReview 8 7 Minor 0 %
Property Could Be Local All, Analyze, ClassReview 29 19 Minor 76 %
Never Used Properties Analyze, All, Simple, Unused 3 2 Minor 71 %
Property Used In One Method Only All, Analyze 19 11 Minor 84 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 9 4 Minor 63 %
Should Use Local Class Analyze, ClearPHP, All, Simple 31 13 Minor 95 %
$this Belongs To Classes Or Traits Analyze, All, Simple, LintButWontExec 48 12 Major 32 %
Too Many Injections All, Analyze, Dismell 4 4 Minor 19 %
Undefined Classes Analyze, All, Stubs, Undefined 57 28 Major 91 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE 58 14 Major 61 %
Undefined ::class All, Analyze, CI-checks, Undefined, CE 18 8 Major 36 %
Unfinished Object All, Analyze, ClassReview 26 17 Major 0 %
Unresolved Classes Analyze, All, Stubs 17 5 Major 76 %
Unused Classes Dead code, All, Simple, Analyze, Unused 1 1 Major 67 %
Unused Public Methods All, Analyze, ChangedBehavior 431 89 Minor 0 %
Used Once Property All, Analyze 6 5 Minor 74 %
Useless Constructor Analyze, All, Simple, Level 3, ChangedBehavior 1 1 Minor 41 %
Weak Typing All, Analyze 1 1 Minor 47 %
Converted Exceptions All, Analyze 10 4 Minor 0 %
Unthrown Exception Analyze, Dead code, ClearPHP, All, Simple 2 2 Minor 45 %
Useless Try All, Analyze, ChangedBehavior 1 1 Minor 0 %
Native Alias Functions Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks, CE 2 2 Minor 20 %
Use Named Boolean In Argument Definition All, Analyze 28 19 Minor 84 %
Could Make A Function All, Analyze, Suggestions 9 1 Minor 66 %
Don't Collect Void All, Analyze, IsPHP, IsStub, IsExt 2 1 Minor 0 %
Empty Function Analyze, All, Simple 4 4 Minor 74 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 5 5 Major 70 %
Method Is Not An If All, Analyze 1 1 Minor 0 %
Mismatched Default Arguments All, Analyze, Typechecks 3 2 Minor 80 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 2 2 Minor 92 %
No Boolean As Default All, Analyze 13 9 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4 6 5 Minor 69 %
Relay Function Analyze, All 82 31 Major 84 %
Unused Parameter Analyze, All, Simple, Unused 11 7 Major 90 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple, Unused 11 9 Minor 41 %
Useless Argument All, Analyze 27 16 Minor 0 %
Useless Referenced Argument All, Analyze 2 2 Minor 58 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 177 45 Minor 98 %
Wrong Argument Type All, Analyze, Typechecks 2 2 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, IsPHP, IsStub, IsExt, CE 19 13 Major 81 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 117 37 Minor 0 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks, CE 19 11 Minor 0 %
Already Parents Interface Analyze, All, Level 3, Suggestions, IsPHP, IsStub, IsExt 2 2 Minor 26 %
Forgotten Interface All, Analyze, ChangedBehavior 13 13 Minor 48 %
Interfaces Is Not Implemented All, Analyze, ClassReview, LintButWontExec, CI-checks, IsPHP, IsStub, IsExt, CE 3 3 Minor 0 %
Repeated Interface All, Analyze, LintButWontExec 2 2 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 30 21 Major 72 %
Useless Interfaces Analyze, ClearPHP, All, Simple, ClassReview, Typechecks 4 4 Minor 59 %
Multiple Alias Definitions Analyze, All, Simple, CI-checks, CE 25 21 Minor 44 %
Unresolved Use Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt 46 32 Major 69 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 2 2 Major 57 %
Logical To in_array All, Analyze, Level 2 2 2 Minor 67 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, CE 4 3 Minor 74 %
Assumptions All, Analyze 9 7 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, CE 1 1 Major 76 %
PHP Native Interfaces and Return Type All, Analyze, LintButWontExec, CompatibilityPHP81, Deprecated 3 3 Minor 0 %
PHP Native Class Type Compatibility All, Analyze, CompatibilityPHP81 6 6 Major 0 %
No Null For Native PHP Functions All, Analyze, CompatibilityPHP81, Deprecated 1 1 Minor 0 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 31 11 Minor 0 %
Comparison Is Always The Same All, Analyze, ChangedBehavior 5 4 Minor 0 %
Array_merge Needs Array Of Arrays All, Analyze 5 5 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 12 11 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 8 3 Minor 77 %
Buried Assignation Analyze, All 13 12 Minor 84 %
Check All Types All, Analyze 7 6 Major 69 %
Check JSON All, Analyze, CI-checks, CE 6 6 Major 65 %
Could Be Else All, Analyze 1 1 Minor 49 %
Dangling Array References PHP recommendations, Analyze, ClearPHP, All, Simple, Level 1, Top10, CI-checks, CE 1 1 Major 46 %
Don't Change The Blind Var All, Analyze 2 2 Minor 73 %
Don't Read And Write In One Expression All, Analyze, CompatibilityPHP73, CompatibilityPHP74, CE 1 1 Critical 38 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 1 1 Major 61 %
Iffectations Analyze, All 14 9 Minor 80 %
Infinite Recursion All, Analyze 1 1 Major 0 %
Lone Blocks Analyze, All, Simple, Level 4, CI-checks, ChangedBehavior, CE 2 2 Minor 15 %
Missing Assignation In Command All, Analyze 8 5 Minor 0 %
Mixed Concat And Interpolation All, Coding Conventions, Analyze 1 1 Minor 45 %
Nested Ternary Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 1 1 Major 50 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, ChangedBehavior, CE 2 2 Major 42 %
No Need For Triple Equal All, Analyze 2 2 Minor 0 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE 7 4 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 23 16 Minor 93 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, CE 1 1 Minor 65 %
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 2 2 Minor 73 %
Several Instructions On The Same Line Analyze, All, ChangedBehavior 5 4 Major 56 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, ChangedBehavior, CE 1 1 Major 50 %
Same Conditions In Condition Analyze, All, Simple, CI-checks, CE 1 1 Critical 55 %
Should Chain Exception Analyze, All, Simple, CI-checks, CE 10 4 Minor 39 %
Preprocessable Analyze, All, Rector 7 7 Minor 85 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 8 6 Minor 0 %
Avoid get_class() Analyze, All, Simple, CI-checks, CE 1 1 Minor 32 %
Useless Brackets Analyze, All, RadwellCodes, Simple, CI-checks, CE 2 2 Minor 15 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 2 2 Minor 63 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 35 16 Minor 81 %
Dependant Trait Analyze, All, Level 3 12 12 Minor 28 %
Empty Traits Analyze, All, Simple, Dead code 1 1 Minor 12 %
Method Collision Traits All, Analyze, LintButWontExec, ChangedBehavior 1 1 Critical 5 %
One Variable String Analyze, All, RadwellCodes, Simple, CI-checks, CE 1 1 Minor 33 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks, Rector, CE 3 3 Minor 49 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 11 7 Minor 0 %
StandaloneType True False Null All, Appcontent, Analyze 40 24 Minor 0 %
Wrong Type With Default All, Analyze, LintButWontExec, ClassReview 24 23 Minor 0 %
Assigned Twice All, Analyze 5 1 Minor 79 %
Overwritten Literals Analyze, All 5 1 Major 79 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE 5 4 Minor 95 %