PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Non-constant Index In Array Analyze, All, Simple 1 1 Minor 14 %
Abstract Or Implements All, Analyze, LintButWontExec 11 11 Major 24 %
Ambiguous Visibilities All, Analyze 1 1 Minor 70 %
Avoid Optional Properties All, Analyze 11 5 Major 84 %
Could Be Abstract Class All, Analyze, ClassReview 1 1 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 92 92 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 32 12 Minor 92 %
Could Inject Param All, Analyze, ClassReview 21 5 Minor 0 %
Don't Send $this In Constructor All, Analyze 3 3 Minor 41 %
Empty Classes Analyze, All, Simple 1 1 Minor 60 %
Hidden Nullable Typehint All, Analyze, ClassReview 18 12 Minor 0 %
Incompatible Signature Methods With Covariance All, Analyze 1 1 Critical 0 %
Make Global A Property Analyze, All, Simple 8 4 Minor 37 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 26 25 Critical 53 %
No Public Access Analyze, All 3 3 Minor 61 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 7 6 Minor 42 %
Parent First All, Analyze, Suggestions 1 1 Minor 56 %
Never Used Properties Analyze, All, Simple, Unused 2 1 Minor 71 %
Property Used In One Method Only All, Analyze 4 4 Minor 84 %
Should Use Local Class Analyze, ClearPHP, All, Simple 56 17 Minor 95 %
$this Belongs To Classes Or Traits Analyze, All, Simple, LintButWontExec 2 1 Major 32 %
Too Many Injections All, Analyze, Dismell 1 1 Minor 19 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 313 77 Major 91 %
Undefined Parent Analyze, All, Simple, Undefined 7 5 Minor 45 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, Undefined, ChangedBehavior, CE 55 8 Major 61 %
Unfinished Object All, Analyze, ClassReview 5 4 Major 0 %
Unresolved Classes Analyze, All, Stubs 25 11 Major 76 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10 3 3 Major 48 %
Unused Class Constant All, Analyze, ClassReview, Unused 2 1 Minor 0 %
Unused Public Method All, Analyze 312 83 Minor 0 %
Use ::Class Operator All, Analyze, Performances, Simple, CI-checks, CE 3 1 Minor 71 %
Useless Constructor Analyze, All, Simple, Level 3 2 2 Minor 41 %
Weak Typing All, Analyze 4 3 Minor 47 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 23 9 Minor 71 %
Catch Undefined Variable All, Analyze, Undefined 1 1 Minor 0 %
Throw Raw Exceptions All, Analyze, Suggestions 5 3 Minor 0 %
Uncaught Exceptions Analyze, All 14 8 Minor 84 %
Useless Catch All, Analyze, CI-checks, CE 2 2 Minor 44 %
Missing Include All, Analyze 21 4 Critical 65 %
Native Alias Functions Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks, CE 2 1 Minor 42 %
Use Named Boolean In Argument Definition All, Analyze 4 4 Minor 84 %
Could Make A Function All, Analyze, Suggestions 94 25 Minor 66 %
Deep Definitions Analyze, Appinfo, All, Simple, CE 2 1 Major 13 %
Dont Collect Void All, Analyze, IsPHP, IsStub, IsExt 19 4 Minor 0 %
Empty Function Analyze, All, Simple 2 2 Minor 74 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 1 1 Major 70 %
Mismatched Typehint All, Analyze, Typechecks 2 2 Major 66 %
No Boolean As Default All, Analyze 4 4 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4 6 5 Minor 69 %
Redeclared PHP Functions Analyze, Appinfo, All, Simple, CI-checks, CE 13 4 Minor 26 %
Relay Function Analyze, All 6 3 Major 84 %
Too Many Local Variables All, Analyze 2 2 Minor 64 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 493 49 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 4 4 Major 90 %
Useless Referenced Argument All, Analyze 1 1 Minor 58 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 1 1 Minor 98 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 16 6 Minor 0 %
Forgotten Interface All, Analyze 3 3 Minor 48 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 16 11 Major 72 %
Useless Interfaces Analyze, ClearPHP, All, Simple, ClassReview, Typechecks 3 3 Minor 59 %
Hidden Use Expression Analyze, OneFile, All, Simple, CI-checks, CE 4 3 Minor 23 %
Multiple Alias Definitions Analyze, All, Simple, CI-checks, CE 11 6 Minor 44 %
Should Make Alias Analyze, OneFile, All, Simple, CI-checks, CE 2 1 Minor 46 %
Unresolved Use Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt 27 19 Major 69 %
Use With Fully Qualified Name Analyze, Coding Conventions, PHP recommendations, All, Simple 2 1 Minor 18 %
Logical To in_array All, Analyze, Level 2 2 2 Minor 67 %
Assumptions All, Analyze 8 5 Minor 0 %
Don't Pollute Global Space All, Analyze 30 14 Minor 0 %
No Class In Global All, Analyze, CI-checks, CE 24 14 Minor 77 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks, CE 4 1 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 5 5 Major 71 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 2 1 Minor 0 %
Comparison Is Always True All, Analyze 10 5 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 17 5 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 5 3 Minor 77 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 4 4 Minor 56 %
Common Alternatives Analyze, All, Simple 4 3 Major 80 %
Could Be Static Analyze, OneFile, All, ClassReview 1 1 Major 23 %
Dont Change The Blind Var All, Analyze 2 1 Minor 73 %
Dont Mix ++ All, Analyze 3 2 Minor 56 %
Double Assignation Analyze, All 1 1 Major 59 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 3 1 Minor 60 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 4 3 Major 61 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 9 5 Minor 52 %
Htmlentities Using Default Flag All, Analyze, Simple, CI-checks, ChangedBehavior 1 1 Minor 0 %
Identical Consecutive Expression All, Analyze 1 1 Minor 59 %
Iffectations Analyze, All 1 1 Minor 80 %
Lone Blocks Analyze, All, Simple, Level 4, CI-checks, CE 1 1 Minor 15 %
Long Arguments All, Analyze 2 1 Minor 68 %
Max Level Of Nesting All, Analyze 1 1 Minor 0 %
Merge If Then All, Analyze, CI-checks, CE 3 1 Minor 0 %
Maybe Missing New All, Analyze 6 1 Critical 57 %
Mixed Concat And Interpolation All, Coding Conventions, Analyze 6 3 Minor 45 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 5 3 Minor 63 %
Nested Ifthen Analyze, All, RadwellCodes 4 2 Major 84 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, CE 1 1 Major 42 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE 21 4 Minor 62 %
Variable Is Not A Condition All, Analyze 37 26 Minor 93 %
Not Equal Is Not !== All, Analyze, CI-checks, CE 1 1 Minor 0 %
include_once() Usage Analyze, Appinfo, All, CE 21 4 Minor 73 %
Several Instructions On The Same Line Analyze, All 2 2 Major 56 %
Print And Die Analyze, All, Simple, CI-checks, CE 1 1 Minor 32 %
Should Chain Exception Analyze, All, Simple, CI-checks, CE 1 1 Minor 39 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 1 1 Minor 86 %
Preprocessable Analyze, All, Rector 25 16 Minor 85 %
Strpos()-like Comparison Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 1 1 Major 54 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 2 2 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 5 4 Minor 0 %
Use Positive Condition All, Analyze, OneFile, Simple 3 1 Minor 82 %
Use Same Types For Comparisons All, Analyze 4 1 Minor 0 %
Useless Brackets Analyze, All, RadwellCodes, Simple, CI-checks, CE 1 1 Minor 15 %
Useless Global Analyze, OneFile, All, Simple, Level 2 1 1 Minor 27 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 1 1 Minor 63 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 21 2 Minor 81 %
Useless Switch Analyze, All, Simple 2 2 Major 32 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 3 3 Minor 0 %
Wrong Type With Default All, Analyze, LintButWontExec, ClassReview 2 2 Minor 0 %
Assigned Twice All, Analyze 2 1 Minor 79 %
Overwritten Literals Analyze, All 2 1 Major 79 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 29 5 Minor 77 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE 14 7 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 3 2 Minor 87 %