PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Multiple Index Definition Analyze, OneFile, All, Simple, CI-checks, Rector, CE 1 1 Minor 33 %
Ambiguous Static All, Analyze 10 4 Minor 66 %
Ambiguous Visibilities All, Analyze 10 4 Minor 70 %
Avoid Optional Properties All, Analyze 16 5 Major 84 %
Could Be Abstract Class All, Analyze, ClassReview 1 1 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 22 21 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 19 7 Minor 92 %
Could Inject Param All, Analyze, ClassReview 2 2 Minor 0 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 26 5 Critical 53 %
No Public Access Analyze, All 26 3 Minor 61 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 6 1 Minor 42 %
Parent First All, Analyze, Suggestions 1 1 Minor 56 %
Property Could Be Local All, Analyze, ClassReview 5 5 Minor 76 %
Same Name For Property And Method All, Analyze, ClassReview, Semantics 30 2 Minor 0 %
Property Used In One Method Only All, Analyze 31 6 Minor 84 %
Parent, Static Or Self Outside Class Analyze, All, Simple, ChangedBehavior 24 4 Major 2 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 4 1 Minor 63 %
Should Use Local Class Analyze, ClearPHP, All, Simple 25 11 Minor 95 %
Too Many Dereferencing All, Analyze 1 1 Minor 0 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 154 23 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 3 2 Major 62 %
Undefined Parent Analyze, All, Simple, Undefined 1 1 Minor 45 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, Undefined, ChangedBehavior, CE 247 7 Major 61 %
Unfinished Object All, Analyze, ClassReview 6 2 Major 0 %
Unreachable Method All, Analyze, Dead code, ClassReview, Unused 13 1 Minor 0 %
Unresolved Classes Analyze, All, Stubs 59 13 Major 76 %
Unused Class Constant All, Analyze, ClassReview, Unused 1 1 Minor 0 %
Unused Public Method All, Analyze 12 1 Minor 0 %
Use ::Class Operator All, Analyze, Performances, Simple, CI-checks, CE 14 8 Minor 71 %
Used Once Property All, Analyze 7 5 Minor 74 %
Weak Typing All, Analyze 8 3 Minor 47 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks, CE 6 3 Minor 54 %
Invalid Constant Name Analyze, All, Simple 5 3 Major 51 %
Multiple Constant Definition Analyze, All, Simple, CI-checks, CE 3 2 Minor 41 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 129 26 Minor 71 %
Throw Raw Exceptions All, Analyze, Suggestions 12 4 Minor 0 %
Uncaught Exceptions Analyze, All 12 4 Minor 84 %
Missing Include All, Analyze 7 5 Critical 65 %
Native Alias Functions Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks, CE 1 1 Minor 42 %
Use Named Boolean In Argument Definition All, Analyze 18 10 Minor 84 %
Callback Function Needs Return All, Analyze, CI-checks, CE 1 1 Major 42 %
Could Make A Function All, Analyze, Suggestions 1102 83 Minor 66 %
Dont Collect Void All, Analyze, IsPHP, IsStub, IsExt 65 30 Minor 0 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 6 4 Major 70 %
Mismatched Default Arguments All, Analyze, Typechecks 16 4 Minor 80 %
Mismatched Typehint All, Analyze, Typechecks 54 4 Major 66 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 18 6 Minor 92 %
No Boolean As Default All, Analyze 18 10 Minor 84 %
No Default For Referenced Parameter All, Analyze 2 1 Minor 0 %
Redeclared PHP Functions Analyze, Appinfo, All, Simple, CI-checks, CE 180 10 Minor 26 %
Relay Function Analyze, All 6 6 Major 84 %
Too Many Local Variables All, Analyze 19 5 Minor 64 %
Typehinted References All, Analyze, CI-checks, CE 2 1 Minor 37 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 2206 115 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 7 3 Major 90 %
Unused Inherited Variable In Closure All, Analyze, Dead code, CI-checks, Unused, CE 1 1 Major 23 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple, Unused 80 7 Minor 41 %
Use Constant As Arguments Analyze, All, Simple, CI-checks, CE 59 9 Major 30 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 1217 81 Minor 98 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, IsPHP, IsStub, IsExt, CE 1 1 Major 81 %
Wrong Optional Parameter Analyze, All, Simple, Level 1, CI-checks, CompatibilityPHP80, ChangedBehavior, CE 3 2 Minor 32 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 38 9 Minor 0 %
Interfaces Is Not Implemented All, Analyze, ClassReview, LintButWontExec, CI-checks, IsPHP, IsStub, IsExt, CE 2 2 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 1 1 Major 72 %
Useless Interfaces Analyze, ClearPHP, All, Simple, ClassReview, Typechecks 1 1 Minor 59 %
Hidden Use Expression Analyze, OneFile, All, Simple, CI-checks, CE 9 4 Minor 23 %
Multiple Alias Definitions Analyze, All, Simple, CI-checks, CE 4 4 Minor 44 %
Unresolved Use Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt 6 6 Major 69 %
Use With Fully Qualified Name Analyze, Coding Conventions, PHP recommendations, All, Simple 5 2 Minor 18 %
Logical To in_array All, Analyze, Level 2 17 6 Minor 67 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, CE 33 16 Minor 74 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze, CE 6 2 Minor 0 %
Assumptions All, Analyze 2 1 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks, CE 8 3 Major 59 %
Deprecated PHP Functions Analyze, All, CI-checks, CE 12 3 Major 23 %
Don't Pollute Global Space All, Analyze 191 17 Minor 0 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, CE 6 2 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 %
No Class In Global All, Analyze, CI-checks, CE 185 15 Minor 77 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks, CE 2 1 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 10 3 Major 71 %
Avoid Using stdClass All, Analyze, OneFile, Simple, Level 4 33 3 Minor 46 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 29 9 Minor 0 %
Don't Echo Error All, Analyze, Security, Simple, Level 1, CI-checks, CE 7 2 Critical 35 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 3 2 Major 56 %
Alternative Syntax Consistence All, Analyze 47 1 Major 21 %
Comparison Is Always True All, Analyze 14 6 Minor 0 %
Array_Map() Passes By Value All, Analyze, CompatibilityPHP80, IsPHP, IsStub, IsExt, CE 1 1 Major 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 96 16 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 11 6 Minor 77 %
Buried Assignation Analyze, All 37 7 Minor 84 %
Check All Types All, Analyze 1 1 Major 69 %
Check Division By Zero All, Analyze 3 2 Minor 0 %
Check JSON All, Analyze, CI-checks, CE 20 7 Major 65 %
Common Alternatives Analyze, All, Simple 149 34 Major 80 %
Could Use __DIR__ Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks, CE 10 7 Major 56 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks, Rector, CE 5 4 Minor 63 %
Dangling Array References PHP recommendations, Analyze, ClearPHP, All, Simple, Level 1, Top10, CI-checks, CE 1 1 Major 46 %
Dont Change The Blind Var All, Analyze 19 6 Minor 73 %
Dont Mix ++ All, Analyze 4 3 Minor 56 %
Double Assignation Analyze, All 6 3 Major 59 %
Double Instructions Analyze, All, Simple 3 2 Minor 57 %
Double Object Assignation All, Analyze, ClassReview 1 1 Minor 0 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, CE 22 6 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 138 34 Minor 60 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE 54 8 Minor 66 %
Empty Blocks Analyze, All, Simple, CI-checks, CE 6 3 Minor 51 %
Empty Instructions Dead code, Analyze, All, Simple 169 75 Minor 57 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 46 9 Major 61 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 7 6 Minor 52 %
Htmlentities Calls Analyze, All, Simple, CI-checks, CE 5 2 Major 40 %
Htmlentities Using Default Flag All, Analyze, Simple, CI-checks, ChangedBehavior 1 1 Minor 0 %
Identical Conditions Analyze, All, Simple, CI-checks, CE 1 1 Critical 28 %
Identical Consecutive Expression All, Analyze 2 2 Minor 59 %
Iffectations Analyze, All 9 2 Minor 80 %
Inconsistent Elseif All, Analyze 25 15 Major 73 %
Indices Are Int Or String Analyze, OneFile, All, Simple, CI-checks, CE 9 2 Major 20 %
Long Arguments All, Analyze 11 5 Minor 68 %
Max Level Of Nesting All, Analyze 20 7 Minor 0 %
Merge If Then All, Analyze, CI-checks, CE 57 17 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 6 2 Major 64 %
Mixed Concat And Interpolation All, Coding Conventions, Analyze 3 1 Minor 45 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 64 4 Minor 63 %
Multiple Type Variable All, Analyze, Level 4 1 1 Minor 58 %
Nested Ifthen Analyze, All, RadwellCodes 117 26 Major 84 %
Nested Ternary Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 2 1 Major 50 %
Don't Change Incomings Analyze, All 2 1 Minor 44 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, CE 1 1 Major 42 %
No Direct Usage Analyze, All, Simple 14 4 Major 39 %
No Hardcoded Hash Analyze, Security, All, Simple 15 3 Critical 45 %
No Hardcoded Path Analyze, ClearPHP, All, Simple 19 10 Major 35 %
No isset() With empty() All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE 1 1 Minor 30 %
No Need For Else All, Analyze 23 7 Minor 74 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE 32 11 Minor 62 %
Variable Is Not A Condition All, Analyze 128 15 Minor 93 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, CE 12 8 Minor 65 %
Not Not Analyze, OneFile, All, Simple, CI-checks, CE 4 3 Minor 14 %
include_once() Usage Analyze, Appinfo, All, CE 17 13 Minor 73 %
Several Instructions On The Same Line Analyze, All 284 48 Major 56 %
Overwritten Foreach Var All, Analyze, OneFile 2 1 Major 0 %
Print And Die Analyze, All, Simple, CI-checks, CE 3 3 Minor 32 %
Printf Number Of Arguments All, Analyze, CI-checks, CE 2 2 Minor 41 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, CE 22 5 Major 50 %
Repeated Regex All, Analyze, Level 1, CI-checks, CE 13 3 Minor 47 %
Return True False Analyze, All, Simple, Level 1, CI-checks, CE 2 2 Major 46 %
Same Conditions In Condition Analyze, All, Simple, CI-checks, CE 30 21 Critical 55 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 112 17 Minor 86 %
Preprocessable Analyze, All, Rector 167 91 Minor 85 %
Static Loop Analyze, All, Simple, Level 4 4 2 Minor 67 %
Strpos()-like Comparison Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 1 1 Major 54 %
Switch To Switch Analyze, All, RadwellCodes, Simple 4 3 Minor 58 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 2 2 Major 69 %
Timestamp Difference Analyze, All, Simple, Level 3, CI-checks, CE 2 1 Major 49 %
Unchecked Resources Analyze, ClearPHP, All, Simple, Level 2, CI-checks, CE 1 1 Major 50 %
Unconditional Break In Loop All, Analyze, Level 3, CI-checks, CE 2 2 Major 48 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 41 7 Minor 0 %
Use Constant Instead Of Function PHP recommendations, All, Analyze, php-cs-fixable, CI-checks, CE 11 8 Minor 61 %
Use Positive Condition All, Analyze, OneFile, Simple 102 33 Minor 82 %
Use Same Types For Comparisons All, Analyze 11 4 Minor 0 %
Useless Type Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE 1 1 Minor 47 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 21 6 Minor 63 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 25 8 Minor 81 %
Useless Switch Analyze, All, Simple 1 1 Major 32 %
Wrong Locale All, Analyze, Semantics 1 1 Major 0 %
One Variable String Analyze, All, RadwellCodes, Simple, CI-checks, CE 5 1 Minor 33 %
String May Hold A Variable Analyze, All, Simple 3 3 Minor 59 %
Strings With Strange Space All, Analyze, CI-checks, CE 1 1 Minor 21 %
Assigned Twice All, Analyze 148 10 Minor 79 %
Overwritten Literals Analyze, All 193 10 Major 79 %
Recycled Variables All, Analyze 2 1 Minor 0 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 800 60 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 8 4 Minor 74 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE 105 37 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 42 7 Minor 87 %