PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Null Or Boolean Arrays All, Analyze, ChangedBehavior 2 2 Minor 0 %
Weak Type With Array All, Analyze 96 33 Minor 0 %
Ambiguous Static All, Analyze, Semantics 5 5 Minor 66 %
Ambiguous Visibilities All, Analyze, Semantics 21 9 Minor 70 %
Avoid option arrays in constructors All, Analyze, ClassReview 1 1 Minor 0 %
Avoid Optional Properties All, Analyze 9 5 Major 84 %
Could Be Abstract Class All, Analyze, ClassReview 1 1 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 54 47 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 106 45 Minor 92 %
Could Inject Param All, Analyze, ClassReview 13 9 Minor 0 %
Don't Send $this In Constructor All, Analyze 1 1 Minor 41 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 5 4 Minor 71 %
No Public Access Analyze, All 1 1 Minor 61 %
Parent First All, Analyze, Suggestions 1 1 Minor 56 %
Property Could Be Local All, Analyze, ClassReview 27 14 Minor 76 %
Same Name For Property And Method All, Analyze, ClassReview, Semantics 26 6 Minor 0 %
Never Used Properties Analyze, All, Simple, Unused 2 1 Minor 71 %
Property Used In One Method Only All, Analyze 18 11 Minor 84 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 11 10 Minor 63 %
Should Use Local Class Analyze, ClearPHP, All, Simple 81 25 Minor 95 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 125 45 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 17 2 Major 62 %
Undefined Parent Analyze, All, Simple, Undefined 1 1 Minor 45 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE 158 21 Major 61 %
Unfinished Object All, Analyze, ClassReview 10 6 Major 0 %
Unreachable Method All, Analyze, Dead code, ClassReview, Unused 4 1 Minor 0 %
Unresolved Classes Analyze, All, Stubs 44 26 Major 76 %
Unused Class Constant All, Analyze, ClassReview, Unused 21 21 Minor 0 %
Unused Public Method All, Analyze 109 41 Minor 0 %
Use ::Class Operator All, Analyze, Performances, Simple, CI-checks, CE 79 26 Minor 71 %
Use Instanceof Analyze, All, Simple, CI-checks, CE 1 1 Major 63 %
Used Once Property All, Analyze 1 1 Minor 74 %
Useless Abstract Class Analyze, All, Simple 1 1 Minor 33 %
Useless Constructor Analyze, All, Simple, Level 3 5 5 Minor 41 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks, CE 14 1 Minor 54 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 61 20 Minor 71 %
Missing Include All, Analyze 47 7 Critical 65 %
Use Named Boolean In Argument Definition All, Analyze 26 14 Minor 84 %
Callback Function Needs Return All, Analyze, CI-checks, CE 1 1 Major 42 %
Cancelled Parameter All, Analyze 1 1 Minor 0 %
Could Make A Function All, Analyze, Suggestions 882 76 Minor 66 %
Dont Collect Void All, Analyze, IsPHP, IsStub, IsExt 203 48 Minor 0 %
Empty Function Analyze, All, Simple 12 7 Minor 74 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 17 12 Major 70 %
Method Is Not An If All, Analyze 34 20 Minor 0 %
Mismatched Default Arguments All, Analyze, Typechecks 5 4 Minor 80 %
Mismatched Typehint All, Analyze, Typechecks 19 5 Major 66 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 13 6 Minor 92 %
No Boolean As Default All, Analyze 38 19 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4 14 6 Minor 69 %
Relay Function Analyze, All 5 5 Major 84 %
Too Many Local Variables All, Analyze 4 4 Minor 64 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 1972 77 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 58 37 Major 90 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple, Unused 43 25 Minor 41 %
Use Constant As Arguments Analyze, All, Simple, CI-checks, CE 1 1 Major 30 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 1031 79 Minor 98 %
Using Deprecated Method All, Analyze, Attributes 5 2 Minor 0 %
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 36 19 Major 81 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 389 73 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 12 2 Major 72 %
Hidden Use Expression Analyze, OneFile, All, Simple, CI-checks, CE 4 1 Minor 23 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 6 6 Major 57 %
Logical To in_array All, Analyze, Level 2 11 6 Minor 67 %
Assign With And Precedence All, Analyze, CI-checks, CE 4 3 Critical 9 %
Avoid mb_dectect_encoding() All, Analyze 1 1 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks, CE 1 1 Major 59 %
Don't Pollute Global Space All, Analyze 429 100 Minor 0 %
False To Array Conversion All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82, Analyze 3 2 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, CE 21 11 Major 76 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, CE 1 1 Minor 53 %
Logical Should Use Symbolic Operators Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks, CE 253 57 Minor 43 %
Missing __isset() Method All, Analyze, ClassReview 1 1 Minor 0 %
Possible Missing Subpattern All, Analyze, Top10, CI-checks, CE 1 1 Minor 45 %
No Class In Global All, Analyze, CI-checks, CE 367 99 Minor 77 %
No Null For Native PHP Functions All, Analyze, CompatibilityPHP81, Deprecated 52 20 Minor 0 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks, CE 12 1 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 44 34 Major 71 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 46 19 Minor 0 %
Adding Zero Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, Rector, CE 3 3 Minor 69 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 6 2 Major 56 %
Alternative Syntax Consistence All, Analyze 4 1 Major 21 %
Array_merge Needs Array Of Arrays All, Analyze 13 10 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 80 41 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 40 18 Minor 77 %
Buried Assignation Analyze, All 37 15 Minor 84 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 2 1 Minor 56 %
Check All Types All, Analyze 8 5 Major 69 %
Check Division By Zero All, Analyze 2 2 Minor 0 %
Check JSON All, Analyze, CI-checks, CE 14 6 Major 65 %
Common Alternatives Analyze, All, Simple 1 1 Major 80 %
Could Be Static Analyze, OneFile, All, ClassReview 1 1 Major 23 %
Could Use Yield From All, Analyze, Performances 3 2 Minor 0 %
Dont Change The Blind Var All, Analyze 20 16 Minor 73 %
Double Assignation Analyze, All 5 5 Major 59 %
Double Checks All, Analyze 1 1 Minor 0 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, CE 19 10 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 4 2 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 Instructions Dead code, Analyze, All, Simple 12 12 Minor 57 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 13 7 Major 61 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 5 4 Minor 52 %
If With Same Conditions Analyze, All, Simple, CI-checks, CE 1 1 Major 47 %
Iffectations Analyze, All 69 27 Minor 80 %
Implode() Arguments Order All, Analyze, CI-checks, ChangedBehavior, CE 4 3 Minor 0 %
Inconsistent Elseif All, Analyze 13 10 Major 73 %
Infinite Recursion All, Analyze 1 1 Major 0 %
Invalid Regex All, Analyze, CI-checks, CE 2 1 Major 37 %
Long Arguments All, Analyze 66 28 Minor 68 %
Max Level Of Nesting All, Analyze 2 2 Minor 0 %
Merge If Then All, Analyze, CI-checks, CE 41 16 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 7 3 Major 64 %
Missing Assignation In Command All, Analyze 67 28 Minor 0 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 20 10 Minor 63 %
Multiple Type Variable All, Analyze, Level 4 16 10 Minor 58 %
Nested Ifthen Analyze, All, RadwellCodes 24 17 Major 84 %
No Empty Regex All, Analyze, CI-checks, CE 4 1 Critical 22 %
No Hardcoded Ip Analyze, ClearPHP, Security, All, Simple 2 1 Minor 25 %
No Need For Else All, Analyze 22 12 Minor 74 %
No Null For Index All, Analyze 2 1 Minor 0 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE 7 7 Minor 62 %
Avoid Substr() One Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks, CE 10 5 Minor 58 %
Variable Is Not A Condition All, Analyze 206 52 Minor 93 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, CE 11 6 Minor 65 %
include_once() Usage Analyze, Appinfo, All, CE 49 8 Minor 73 %
Several Instructions On The Same Line Analyze, All 74 15 Major 56 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, CE 18 10 Major 50 %
Repeated Regex All, Analyze, Level 1, CI-checks, CE 12 9 Minor 47 %
Return True False Analyze, All, Simple, Level 1, CI-checks, CE 1 1 Major 46 %
Same Conditions In Condition Analyze, All, Simple, CI-checks, CE 2 2 Critical 55 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 37 21 Minor 86 %
Preprocessable Analyze, All, Rector 119 34 Minor 85 %
Switch To Switch Analyze, All, RadwellCodes, Simple 8 7 Minor 58 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 2 2 Major 69 %
Test Then Cast All, Analyze 3 2 Major 34 %
Unconditional Break In Loop All, Analyze, Level 3, CI-checks, CE 1 1 Major 48 %
Unpreprocessed Values Analyze, OneFile, ClearPHP, All, Simple, Performances 1 1 Minor 30 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 13 12 Minor 0 %
Use Positive Condition All, Analyze, OneFile, Simple 15 8 Minor 82 %
Useless Type Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE 13 7 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 4 1 Minor 63 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 18 13 Minor 81 %
Dependant Trait Analyze, All, Level 3 6 6 Minor 28 %
String May Hold A Variable Analyze, All, Simple 6 3 Minor 59 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 40 33 Minor 0 %
Wrong Type With Default All, Analyze, LintButWontExec, ClassReview 2 2 Minor 0 %
Assigned Twice All, Analyze 43 15 Minor 79 %
Overwritten Literals Analyze, All 51 15 Major 79 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 74 10 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 86 40 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 12 10 Minor 87 %