PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Null Or Boolean Arrays All, Analyze, ChangedBehavior 33 2 Minor 0 %
Ambiguous Static All, Analyze 11 6 Minor 66 %
Ambiguous Visibilities All, Analyze 15 6 Minor 70 %
Avoid Optional Properties All, Analyze 4 4 Major 84 %
Could Be Abstract Class All, Analyze, ClassReview 1 1 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 17 17 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 63 19 Minor 92 %
Could Inject Param All, Analyze, ClassReview 5 4 Minor 0 %
Don't Send $this In Constructor All, Analyze 4 4 Minor 41 %
Make Global A Property Analyze, All, Simple 4 3 Minor 37 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 14 1 Critical 53 %
No Public Access Analyze, All 1 1 Minor 61 %
Property Could Be Local All, Analyze, ClassReview 7 5 Minor 76 %
Never Used Properties Analyze, All, Simple, Unused 4 4 Minor 71 %
Property Used In One Method Only All, Analyze 7 4 Minor 84 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 1 1 Minor 63 %
Should Use Local Class Analyze, ClearPHP, All, Simple 64 19 Minor 95 %
Static Methods Called From Object Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 3 2 Minor 50 %
Wrong Access Style to Property All, Analyze, Level 2, ClassReview, CI-checks, CE 75 3 Critical 37 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 99 17 Major 91 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, Undefined, ChangedBehavior, CE 247 10 Major 61 %
Undefined static:: Or self:: Analyze, All, Simple, Undefined 2 1 Minor 35 %
Unfinished Object All, Analyze, ClassReview 4 3 Major 0 %
Unresolved Classes Analyze, All, Stubs 24 10 Major 76 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10 3 1 Major 48 %
Unused Public Method All, Analyze 30 8 Minor 0 %
Use ::Class Operator All, Analyze, Performances, Simple, CI-checks, CE 8 2 Minor 71 %
Use Instanceof Analyze, All, Simple, CI-checks, CE 2 2 Major 63 %
Used Once Property All, Analyze 3 3 Minor 74 %
Weak Typing All, Analyze 1 1 Minor 47 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks, CE 1 1 Minor 54 %
Invalid Constant Name Analyze, All, Simple 1 1 Major 51 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 19 11 Minor 71 %
Missing Include All, Analyze 4 4 Critical 65 %
Use Named Boolean In Argument Definition All, Analyze 10 5 Minor 84 %
Could Make A Function All, Analyze, Suggestions 109 19 Minor 66 %
Deep Definitions Analyze, Appinfo, All, Simple, CE 1 1 Major 13 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 1 1 Minor 92 %
No Boolean As Default All, Analyze 10 5 Minor 84 %
Redeclared PHP Functions Analyze, Appinfo, All, Simple, CI-checks, CE 5 2 Minor 26 %
Relay Function Analyze, All 6 4 Major 84 %
Too Many Local Variables All, Analyze 3 3 Minor 64 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 940 24 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 2 2 Major 90 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple, Unused 1 1 Minor 41 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 9 4 Minor 98 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 38 11 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 3 1 Major 72 %
Useless Interfaces Analyze, ClearPHP, All, Simple, ClassReview, Typechecks 1 1 Minor 59 %
Overload Existing Names All, Analyze, Semantics, IsPHP, IsStub, IsExt 2 2 Minor 0 %
Unresolved Use Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt 16 12 Major 69 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze, CE 2 2 Minor 0 %
Assumptions All, Analyze 1 1 Minor 0 %
Don't Pollute Global Space All, Analyze 5 2 Minor 0 %
No Class In Global All, Analyze, CI-checks, CE 4 1 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 36 9 Major 71 %
Avoid Using stdClass All, Analyze, OneFile, Simple, Level 4 9 6 Minor 46 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 1 1 Minor 0 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 1 1 Major 56 %
Alternative Syntax Consistence All, Analyze 1 1 Major 21 %
Comparison Is Always True All, Analyze 3 3 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 37 15 Minor 64 %
Buried Assignation Analyze, All 2 1 Minor 84 %
Check Division By Zero All, Analyze 1 1 Minor 0 %
Check JSON All, Analyze, CI-checks, CE 1 1 Major 65 %
Common Alternatives Analyze, All, Simple 2 2 Major 80 %
Could Be Else All, Analyze 2 2 Minor 49 %
Could Be Static Analyze, OneFile, All, ClassReview 1 1 Major 23 %
Dont Change The Blind Var All, Analyze 6 4 Minor 73 %
Double Assignation Analyze, All 5 5 Major 59 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, CE 1 1 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 8 2 Minor 60 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 2 1 Major 61 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 10 7 Minor 52 %
Long Arguments All, Analyze 6 4 Minor 68 %
Merge If Then All, Analyze, CI-checks, CE 4 4 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 12 5 Major 64 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 14 5 Minor 63 %
Nested Ifthen Analyze, All, RadwellCodes 4 3 Major 84 %
Don't Change Incomings Analyze, All 3 2 Minor 44 %
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 2 Minor 62 %
Variable Is Not A Condition All, Analyze 80 14 Minor 93 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, CE 1 1 Minor 65 %
include_once() Usage Analyze, Appinfo, All, CE 6 6 Minor 73 %
Several Instructions On The Same Line Analyze, All 2 1 Major 56 %
Avoid Parenthesis With Language Construct Analyze, All, Simple, CI-checks, CE 1 1 Minor 11 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, CE 6 3 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 3 3 Minor 86 %
Preprocessable Analyze, All, Rector 30 20 Minor 85 %
Static Loop Analyze, All, Simple, Level 4 3 3 Minor 67 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 2 2 Major 69 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 20 7 Minor 0 %
Use Positive Condition All, Analyze, OneFile, Simple 3 2 Minor 82 %
Useless Type Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE 3 3 Minor 47 %
Useless Global Analyze, OneFile, All, Simple, Level 2 1 1 Minor 27 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 3 2 Minor 63 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 7 6 Minor 81 %
Cannot Call Static Trait Method Directly All, Analyze, CompatibilityPHP81, CompatibilityPHP82 9 2 Minor 0 %
Dependant Trait Analyze, All, Level 3 3 3 Minor 28 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 1 1 Minor 0 %
Assigned Twice All, Analyze 19 5 Minor 79 %
Overwritten Literals Analyze, All 19 5 Major 79 %
Undefined Constant Name All, Analyze, Undefined 1 1 Minor 0 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 57 9 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 15 6 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 11 8 Minor 87 %