PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Null Or Boolean Arrays All, Analyze, ChangedBehavior 18 2 Minor 0 %
Weak Type With Array All, Analyze 56 21 Minor 0 %
Ambiguous Static All, Analyze, Semantics 4 4 Minor 66 %
Ambiguous Visibilities All, Analyze, Semantics 6 4 Minor 70 %
Avoid Optional Properties All, Analyze 12 4 Major 84 %
Class Could Be Final All, Analyze, ClassReview 25 25 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 83 20 Minor 92 %
Could Inject Param All, Analyze, ClassReview 4 3 Minor 0 %
No Direct Call To Magic Method Analyze, All, Level 2, CI-checks, CE 1 1 Major 43 %
Don't Send $this In Constructor All, Analyze 3 3 Minor 41 %
Incompatible Signature Methods With Covariance All, Analyze 4 4 Critical 0 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 2 2 Minor 71 %
Make Global A Property Analyze, All, Simple 18 7 Minor 37 %
No Public Access Analyze, All 9 6 Minor 61 %
Parent First All, Analyze, Suggestions 1 1 Minor 56 %
Property Could Be Local All, Analyze, ClassReview 7 4 Minor 76 %
Never Used Properties Analyze, All, Simple, Unused 1 1 Minor 71 %
Property Used In One Method Only All, Analyze 12 6 Minor 84 %
Should Use Local Class Analyze, ClearPHP, All, Simple 103 24 Minor 95 %
Static Methods Called From Object Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 12 4 Minor 50 %
$this Belongs To Classes Or Traits Analyze, All, Simple, LintButWontExec 22 4 Major 32 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 77 22 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 19 3 Major 62 %
Undefined Parent Analyze, All, Simple, Undefined 1 1 Minor 45 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE 217 24 Major 61 %
Unfinished Object All, Analyze, ClassReview 2 2 Major 0 %
Unresolved Classes Analyze, All, Stubs 5 4 Major 76 %
Unused Class Constant All, Analyze, ClassReview, Unused 1 1 Minor 0 %
Unused Public Method All, Analyze 28 14 Minor 0 %
Use Instanceof Analyze, All, Simple, CI-checks, CE 2 1 Major 63 %
Used Once Property All, Analyze 3 3 Minor 74 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks, CE 3 1 Minor 54 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 11 6 Minor 71 %
Missing Include All, Analyze 3 3 Critical 65 %
Native Alias Functions Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks, CE 3 3 Minor 20 %
Use Named Boolean In Argument Definition All, Analyze 10 7 Minor 84 %
Could Make A Function All, Analyze, Suggestions 488 33 Minor 66 %
Empty Function Analyze, All, Simple 3 3 Minor 74 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 6 5 Major 70 %
Mismatched Default Arguments All, Analyze, Typechecks 7 4 Minor 80 %
Mismatched Typehint All, Analyze, Typechecks 3 3 Major 66 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 8 7 Minor 92 %
No Boolean As Default All, Analyze 15 8 Minor 84 %
Relay Function Analyze, All 3 1 Major 84 %
Too Many Local Variables All, Analyze 1 1 Minor 64 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 1169 42 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 7 3 Major 90 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple, Unused 12 6 Minor 41 %
Use Constant As Arguments Analyze, All, Simple, CI-checks, CE 2 1 Major 30 %
Useless Referenced Argument All, Analyze 1 1 Minor 58 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 340 36 Minor 98 %
Wrong Argument Type All, Analyze, Typechecks 1 1 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, IsPHP, IsStub, IsExt, CE 22 12 Major 81 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 36 9 Minor 0 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks, CE 5 3 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 1 1 Major 72 %
Should Make Alias Analyze, OneFile, All, Simple, CI-checks, CE 2 1 Minor 46 %
Unresolved Use Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt 27 14 Major 69 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 5 3 Major 57 %
Logical To in_array All, Analyze, Level 2 10 10 Minor 67 %
Memoize MagicCall All, Analyze, ClassReview 14 8 Minor 0 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, CE 6 3 Minor 74 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze, CE 4 3 Minor 0 %
Assumptions All, Analyze 2 2 Minor 0 %
Don't Pollute Global Space All, Analyze 4 2 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, CE 1 1 Major 76 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, CE 8 7 Minor 53 %
Logical Should Use Symbolic Operators Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks, CE 1 1 Minor 43 %
Possible Missing Subpattern All, Analyze, Top10, CI-checks, CE 1 1 Minor 45 %
No Class In Global All, Analyze, CI-checks, CE 1 1 Minor 77 %
No Null For Native PHP Functions All, Analyze, CompatibilityPHP81, Deprecated 3 3 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 5 5 Major 71 %
Too Many Native Calls All, Analyze, IsPHP, IsExt 5 3 Minor 49 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 25 12 Minor 0 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 2 2 Major 56 %
Array_merge Needs Array Of Arrays All, Analyze 5 5 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 29 17 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 1 1 Minor 77 %
Check Division By Zero All, Analyze 3 2 Minor 0 %
Check JSON All, Analyze, CI-checks, CE 2 2 Major 65 %
Common Alternatives Analyze, All, Simple 1 1 Major 80 %
Could Be Else All, Analyze 1 1 Minor 49 %
Could Be Static Analyze, OneFile, All, ClassReview 3 3 Major 23 %
Could Use __DIR__ Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks, CE 3 2 Major 56 %
Dont Change The Blind Var All, Analyze 5 5 Minor 73 %
Double Assignation Analyze, All 2 2 Major 59 %
Double Checks All, Analyze 1 1 Minor 0 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, CE 4 3 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 4 3 Minor 60 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE 2 2 Minor 66 %
Empty Instructions Dead code, Analyze, All, Simple 5 5 Minor 57 %
Eval() Usage Analyze, Appinfo, Performances, OneFile, ClearPHP, All, Simple, Security, CE 4 3 Major 39 %
eval() Without Try Analyze, All, Simple, Level 3, Security, CI-checks, ChangedBehavior, CE 4 3 Critical 36 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 17 6 Major 61 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 37 9 Minor 52 %
Implode() Arguments Order All, Analyze, CI-checks, ChangedBehavior, CE 1 1 Minor 0 %
Inconsistent Elseif All, Analyze 2 2 Major 73 %
Long Arguments All, Analyze 30 12 Minor 68 %
Max Level Of Nesting All, Analyze 1 1 Minor 0 %
Merge If Then All, Analyze, CI-checks, CE 11 7 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 2 2 Major 64 %
Missing Assignation In Command All, Analyze 22 10 Minor 0 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 5 5 Minor 63 %
Multiple Type Variable All, Analyze, Level 4 1 1 Minor 58 %
Nested Ifthen Analyze, All, RadwellCodes 8 5 Major 84 %
Nested Ternary Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 5 3 Major 50 %
Don't Change Incomings Analyze, All 8 2 Minor 44 %
No Need For Else All, Analyze 4 3 Minor 74 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE 1 1 Minor 62 %
Variable Is Not A Condition All, Analyze 64 18 Minor 93 %
include_once() Usage Analyze, Appinfo, All, CE 12 7 Minor 73 %
Several Instructions On The Same Line Analyze, All 1 1 Major 56 %
Print And Die Analyze, All, Simple, CI-checks, CE 3 2 Minor 32 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, CE 5 4 Major 50 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 2 2 Minor 86 %
Preprocessable Analyze, All, Rector 35 19 Minor 85 %
Static Loop Analyze, All, Simple, Level 4 1 1 Minor 67 %
Strpos()-like Comparison Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 1 1 Major 54 %
Suspicious Comparison All, Analyze, Level 3 1 1 Major 39 %
Switch To Switch Analyze, All, RadwellCodes, Simple 1 1 Minor 58 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 4 3 Major 69 %
Timestamp Difference Analyze, All, Simple, Level 3, CI-checks, CE 2 2 Major 49 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 3 2 Minor 0 %
Use Constant Instead Of Function PHP recommendations, All, Analyze, php-cs-fixable, CI-checks, CE 3 2 Minor 61 %
Use Positive Condition All, Analyze, OneFile, Simple 2 1 Minor 82 %
Use Same Types For Comparisons All, Analyze 4 3 Minor 0 %
Useless Global Analyze, OneFile, All, Simple, Level 2 4 4 Minor 27 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 1 1 Minor 81 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks, Rector, CE 30 14 Minor 49 %
String May Hold A Variable Analyze, All, Simple 2 1 Minor 59 %
Wrong Type With Default All, Analyze, LintButWontExec, ClassReview 2 2 Minor 0 %
Assigned Twice All, Analyze 14 5 Minor 79 %
Overwritten Literals Analyze, All 15 5 Major 79 %
Undefined Constant Name All, Analyze, Undefined 1 1 Minor 0 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 85 9 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 38 8 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 11 4 Minor 87 %