PHP Static analysis for espocrm

Label Recipes Issues Files Severity Frequence
Ambiguous Array Index Analyze, All, Simple, Level 2, Semantics 74 13 Minor 10 %
Append And Assign Arrays Analyze, Internal, All 15 13 Minor 0 %
Null Or Boolean Arrays Analyze, All 186 44 Minor 0 %
Randomly Sorted Arrays Analyze, All, Suggestions, Level 4 27 21 Minor 41 %
Too Many Array Dimensions Analyze, All 62 15 Minor 0 %
Weak Type With Array Analyze, All 1896 292 Minor 0 %
Modify Immutable Analyze, All, Attributes 278 70 Minor 0 %
Abstract Or Implements Analyze, All, LintButWontExec, ChangedBehavior 165 165 Major 24 %
Accessing Private Analyze, All, Simple 11 9 Major 17 %
Ambiguous Static Analyze, All, Semantics 531 402 Minor 66 %
Ambiguous Visibilities Analyze, All, Semantics 2300 1110 Minor 70 %
Avoid Optional Properties Analyze, All 365 93 Major 84 %
Cant Instantiate Non Class Analyze, All, ClassReview 2 2 Minor 0 %
Check After Null Safe Operator Analyze, All, Suggestions 22 19 Major 0 %
Class, Interface, Enum Or Trait With Identical Names Analyze, All 253 253 Minor 19 %
Const Visibility Usage Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, All 992 330 Minor 24 %
Could Be Abstract Class Analyze, All, ClassReview 66 66 Minor 65 %
Class Could Be Final Analyze, All, ClassReview 1998 1969 Minor 96 %
Method Could Be Static Analyze, All, ClassReview 716 465 Minor 92 %
Could Inject Parameter Analyze, All, ClassReview, ChangedBehavior 186 114 Minor 0 %
Cyclic References Analyze, All, ClassReview 39 15 Minor 0 %
Dependant Abstract Classes Analyze, All, ClassReview 3 3 Minor 0 %
Different Argument Counts Analyze, All, ClassReview 2 2 Minor 0 %
No Direct Call To Magic Method Analyze, All, Level 2, CI-checks, CE 10 3 Major 43 %
Don't Send $this In Constructor Analyze, All 10 10 Minor 41 %
Don't Unset Properties Analyze, All, Top10, php-cs-fixable, CI-checks, CE 90 28 Major 42 %
Empty Classes Analyze, All, Simple 53 53 Minor 60 %
Final Private Methods OneFile, All, ClassReview, CompatibilityPHP80, CE 1 1 Minor 0 %
Hidden Nullable Typehint Analyze, All, ClassReview 244 84 Minor 0 %
Incompatible Signature Methods With Covariance Analyze, All 46 46 Critical 0 %
Inherited Property Type Must Match Analyze, All, LintButWontExec, ClassReview 2 1 Minor 0 %
Locally Unused Property Dead code, All, Simple, Unused 251 104 Minor 76 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 28 10 Minor 71 %
Make Global A Property Analyze, All, Simple 7 4 Minor 37 %
Method Signature Must Be Compatible Analyze, All, LintButWontExec 82 80 Critical 53 %
Mismatch Properties Typehints Analyze, All, LintButWontExec, ClassReview 24 16 Minor 0 %
Multiple Class Declarations Analyze, All, Simple, CI-checks, CE 33 33 Major 29 %
Multiple Identical Trait Or Interface Analyze, OneFile, All, Simple, CI-checks, CE 44 44 Minor 0 %
New Object Then Immediate Call Analyze, All, ClassReview 92 63 Minor 0 %
No Null With Null Safe Operator Analyze, All, ClassReview, ChangedBehavior 16 12 Minor 0 %
No Public Access Analyze, All 161 67 Minor 61 %
No Readonly Assignation In Global Analyze, All, ClassReview, ChangedBehavior 4 1 Minor 0 %
Non Nullable Getters Analyze, All, ClassReview 54 42 Minor 0 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 308 6 Minor 42 %
Parent First Analyze, All, Suggestions 5 5 Minor 56 %
Property Could Be Local Analyze, All, ClassReview 1546 538 Minor 76 %
Same Name For Property And Method Analyze, All, ClassReview, Semantics 134 50 Minor 0 %
Never Used Properties Analyze, All, Simple, Unused 107 48 Minor 71 %
Property Used In One Method Only Analyze, All 2164 873 Minor 84 %
Parent, Static Or Self Outside Class Analyze, All, Simple, ChangedBehavior 79 1 Major 21 %
Scalar Or Object Property Analyze, All 2 2 Minor 32 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 44 15 Minor 63 %
Should Use Local Class Analyze, ClearPHP, All, Simple 636 330 Minor 95 %
Static Methods Called From Object Analyze, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt 11 7 Minor 50 %
Too Many Dereferencing Analyze, All 46 37 Minor 0 %
Too Many Injections Analyze, All, Dismell 29 29 Minor 19 %
Wrong Access Style to Property Analyze, All, Level 2, ClassReview, CI-checks, CE 128 15 Critical 37 %
Undefined Classes Analyze, All, Stubs, Undefined 390 123 Major 91 %
Undefined Class Constants Analyze, All, LintButWontExec, CI-checks, CE, Stubs, ChangedBehavior, Undefined 46 21 Major 62 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, CE, CompatibilityPHP82, ChangedBehavior, Undefined 2014 175 Major 61 %
Undefined static:: Or self:: Analyze, All, Simple, Undefined 1 1 Minor 35 %
Unfinished Object Analyze, All, ClassReview 2655 956 Major 0 %
Unreachable Method Analyze, Dead code, All, ClassReview, Unused 9 6 Minor 0 %
Unresolved Catch Dead code, ClearPHP, All 9 5 Major 52 %
Unresolved Classes Analyze, All, Stubs 127 54 Major 76 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10 8 6 Major 48 %
Unused Classes Analyze, Dead code, All, Simple, Unused 208 208 Major 67 %
Unused Class Constant Analyze, All, ClassReview, Unused 93 36 Minor 0 %
Unused Methods Dead code, All, Simple, Unused 2862 1534 Minor 96 %
Unused Private Methods Dead code, OneFile, All, Simple, Unused 29 15 Minor 50 %
Unused Private Properties Dead code, OneFile, All, Simple, Unused 16 10 Minor 51 %
Unused Protected Methods Dead code, All, Unused 158 78 Major 68 %
Unused Public Methods Analyze, All, ChangedBehavior 1911 831 Minor 0 %
Use ::Class Operator Analyze, Performances, All, Simple, CI-checks, CE 79 36 Minor 71 %
Use Instanceof Analyze, All, Simple, CI-checks, CE 104 51 Major 63 %
Used Once Property Analyze, All 1299 691 Minor 74 %
Useless Abstract Class Analyze, All, Simple 14 14 Minor 33 %
Useless Constructor Analyze, All, Simple, Level 3, ChangedBehavior 401 401 Minor 41 %
Useless Method Analyze, All 3 2 Minor 0 %
Weak Typing Analyze, All 32 8 Minor 47 %
Wrong Typed Property Default Analyze, All, LintButWontExec, ClassReview, CI-checks, CE 46 33 Minor 0 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks, CE 6 1 Minor 54 %
Undefined Constants stubs 1 1 Minor 71 %
Could Be A Constant All, Dump 236 93 Minor 0 %
Undefined Caught Exceptions Dead code, All, ChangedBehavior 19 14 None 53 %
Caught Exceptions All, Dump, ChangedBehavior 324 188 None 100 %
Converted Exceptions Analyze, All 109 71 Minor 0 %
Could Drop Variable Dead code, All, Suggestions 4 2 Minor 0 %
Multiple Exceptions Catch() Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, All, CE 17 12 Major 10 %
Overwritten Exceptions Analyze, All, Simple, Suggestions, Level 4, CI-checks, CE 1 1 Minor 22 %
Throw Raw Exceptions Analyze, All, Suggestions 916 352 Minor 0 %
Uncaught Exceptions Analyze, All 965 361 Minor 84 %
Unthrown Exception Analyze, Dead code, ClearPHP, All, Simple 6 6 Minor 45 %
Useless Catch Analyze, All, CI-checks, CE 25 21 Minor 44 %
Useless Try Analyze, All, ChangedBehavior 127 84 Minor 0 %
Missing Include Analyze, All 54 31 Critical 65 %
Native Alias Functions Usage Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 20 8 Minor 20 %
Use Named Boolean In Argument Definition Analyze, All 345 169 Minor 84 %
Can't Call Generator Analyze, All 2 2 Minor 0 %
Could Make A Function Analyze, All, Suggestions 850 198 Minor 66 %
Don't Collect Void Analyze, All, IsPHP, IsStub, IsExt 541 186 Minor 0 %
Empty Function Analyze, All, Simple 985 889 Minor 74 %
Fn Argument Variable Confusion Analyze, All, Semantics 12 10 Minor 0 %
Hardcoded Passwords Analyze, Security, OneFile, All, Simple, Level 3 35 19 Major 70 %
Insufficient Typehint Analyze, All, Typechecks 23 11 Major 43 %
Method Is Not An If Analyze, All 108 58 Minor 0 %
Mismatch Parameter Name Analyze, All, CompatibilityPHP80, CE, ChangedBehavior 7 4 Minor 0 %
Mismatch Type And Default Analyze, All, LintButWontExec, Typechecks, ChangedBehavior 3 3 Critical 8 %
Mismatched Default Arguments Analyze, All, Typechecks 84 34 Minor 80 %
Mismatched Typehint Analyze, All, Typechecks 942 280 Major 66 %
Modified Typed Parameter Analyze, All, ClassReview 127 93 Minor 0 %
Must Return Methods Analyze, All, Simple, Level 2, LintButWontExec, CI-checks, CE 17 7 Major 34 %
Never Called Parameter Analyze, All, Suggestions, Rector, Unused 124 77 Minor 92 %
No Boolean As Default Analyze, All 256 136 Minor 84 %
No Default For Referenced Parameter Analyze, All 14 9 Minor 0 %
No Return Used Analyze, All, Suggestions, Level 4 81 29 Minor 69 %
Only Variable Passed By Reference Analyze, All, IsPHP, IsStub, IsExt 1 1 Critical 43 %
Relay Function Analyze, All 390 170 Major 84 %
Retyped Reference Analyze, All, Typehints 1 1 Major 0 %
Should Use Existing Constants Analyze, All, Simple 13 3 Minor 32 %
Too Many Local Variables Analyze, All 100 81 Minor 64 %
Class-typed References Analyze, All, CI-checks, CE 7 2 Minor 37 %
Undefined Functions stubs 5 2 Major 68 %
Unknown Parameter Name Analyze, All, CI-checks, CE 30 6 Minor 0 %
Unused Parameter Analyze, All, Simple, Unused 419 128 Major 90 %
Unused Functions Dead code, All, Simple, Unused 53 44 Minor 52 %
Unused Returned Value Analyze, Dead code, OneFile, All, Simple, Unused 780 306 Minor 41 %
Useless Argument Analyze, All 1343 552 Minor 0 %
Useless Referenced Argument Analyze, All 23 14 Minor 58 %
Useless Type Check Dead code, OneFile, All 19 17 Minor 0 %
Uses Default Values Analyze, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt 6854 1226 Minor 98 %
Using Deprecated Method Analyze, All, Attributes 385 137 Minor 0 %
Wrong Argument Type Analyze, All, Typechecks 44 18 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, CE, Stubs, IsPHP, IsStub, IsExt 88 60 Major 81 %
Wrong Type Returned Analyze, All, LintButWontExec, ClassReview, CI-checks, CE 3267 879 Minor 0 %
Wrong Type With Call Analyze, All, Typechecks, CI-checks, CE 2858 781 Minor 0 %
Already Parents Interface Analyze, All, Suggestions, Level 3, IsPHP, IsStub, IsExt 44 44 Minor 26 %
Can't Implement Traversable Analyze, All, LintButWontExec, CI-checks, CE 3 3 Minor 0 %
Forgotten Interface Analyze, All, ChangedBehavior 663 661 Minor 48 %
Empty Interfaces Analyze, All, Simple 11 11 Minor 41 %
Repeated Interface Analyze, All, LintButWontExec 46 46 Minor 0 %
Undefined Interfaces Analyze, All, LintButWontExec, CI-checks, CE, IsPHP, IsStub, IsExt, Undefined 150 50 Major 72 %
Unused Interfaces Dead code, All, Simple, Suggestions, Level 2, Unused 14 14 Minor 26 %
Useless Interfaces Analyze, ClearPHP, All, Simple, ClassReview, Typechecks 67 67 Minor 59 %
Hidden Use Expression Analyze, OneFile, All, Simple, CI-checks, CE 37 11 Minor 23 %
Multiple Alias Definitions Per File Analyze, All, CI-checks, CE 12 6 Minor 7 %
Multiple Alias Definitions Analyze, All, Simple, CI-checks, CE 3998 1563 Minor 44 %
No Keyword In Namespace CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74 8 8 Minor 0 %
Overload Existing Names Analyze, All, Semantics, IsPHP, IsStub, IsExt 1 1 Minor 0 %
Should Make Alias Analyze, OneFile, All, Simple, CI-checks, CE 213 111 Minor 46 %
Unresolved Use Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt 225 100 Major 69 %
Unused Use Dead code, ClearPHP, All, Simple, php-cs-fixable, Unused 580 357 Major 60 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 65 47 Major 57 %
Logical To in_array Analyze, All, Level 2 45 27 Minor 67 %
Memoize MagicCall Analyze, All, ClassReview 15 8 Minor 0 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, CE 172 72 Minor 74 %
strpos() Too Much Analyze, All, CI-checks, CE 12 11 Minor 49 %
Use array_slice() Analyze, All, CI-checks, CE 2 2 Minor 0 %
array_key_exists() Works On Arrays Analyze, All, CompatibilityPHP74, CE 89 34 Minor 0 %
Assumptions Analyze, All 137 58 Minor 0 %
Avoid get_object_vars() All, CompatibilityPHP74, CompatibilityPHP80 98 61 Minor 0 %
Use random_int() Analyze, Security, CompatibilityPHP71, All, Simple, Level 2, CI-checks, CE 30 13 Major 59 %
Constant Scalar Expression Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All 581 270 Major 0 %
Deprecated PHP Functions Analyze, All, CI-checks, CE 4 3 Major 23 %
Don't Pollute Global Space Analyze, All 394 165 Minor 0 %
Exit Without Argument Analyze, All 15 9 Minor 0 %
False To Array Conversion Analyze, All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82 42 11 Minor 0 %
Group Use Declaration Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, CE 66 66 Minor 5 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, CE 172 83 Major 76 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, CE 115 54 Minor 53 %
PHP Native Interfaces and Return Type Analyze, All, LintButWontExec, CompatibilityPHP81, Deprecated 6 3 Minor 0 %
List Short Syntax Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Internal, CompatibilityPHP53, CompatibilityPHP70, All, CE 47 37 Major 17 %
Possible Missing Subpattern Analyze, All, Top10, CI-checks, CE 1 1 Minor 45 %
Named Parameter Usage Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74 9 8 Minor 0 %
PHP Native Class Type Compatibility Analyze, All, CompatibilityPHP81 54 13 Major 0 %
No Class In Global Analyze, All, CI-checks, CE 214 164 Minor 77 %
No Null For Native PHP Functions Analyze, All, CompatibilityPHP81, Deprecated 425 160 Minor 0 %
Only Variable Passed By Reference Analyze, All, LintButWontExec 1 1 Minor 0 %
PHP 8.0 Typehints CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74 86 51 Minor 0 %
Php7 Relaxed Keyword Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, CE 213 108 Major 28 %
Php 8.0 Only TypeHints Appinfo, CompatibilityPHP56, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CE 122 61 Minor 0 %
PHP 8.0 Removed Directives All, CompatibilityPHP80, CE, CompatibilityPHP81 2 2 Minor 0 %
Union Typehint Appinfo, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CE 131 36 Minor 0 %
Php 8.0 Variable Syntax Tweaks Appinfo, All, CompatibilityPHP74, CE 1 1 Major 0 %
Scalar Are Not Arrays Analyze, All, CompatibilityPHP74, CI-checks, CE 162 24 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 38 16 Major 71 %
Signature Trailing Comma CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CE 2 2 Minor 0 %
String Int Comparison All, CompatibilityPHP80, ChangedBehavior 458 216 Minor 0 %
Trailing Comma In Calls Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CE 24 19 Minor 1 %
Typed Property Usage Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CE 3598 1212 Minor 6 %
Unknown Pcre2 Option Analyze, All, CompatibilityPHP73 1 1 Minor 17 %
Uses PHP 8 Match() All, CompatibilityPHP74, CE 7 7 None 0 %
Use Nullable Type Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, All, CE 2249 592 Major 90 %
Avoid Using stdClass Analyze, OneFile, All, Simple, Level 4 450 219 Minor 46 %
Wrong Type For Native PHP Function Analyze, All, CI-checks, CE 846 252 Minor 0 %
Always Anchor Regex Security, All 45 29 Major 65 %
Avoid Those Hash Functions Security, All 31 21 Major 62 %
Configure Extract Security, All 1 1 Minor 25 %
Direct Injection Security, All 4 3 Major 51 %
Don't Echo Error Analyze, Security, All, Simple, Level 1, CI-checks, CE 3 2 Critical 35 %
Encoded Simple Letters Security, All 1 1 Minor 41 %
filter_input() As A Source Security, All 1 1 Minor 7 %
Filter Not Raw Security, All, ChangedBehavior 1 1 Minor 0 %
Incompatible Types With Incoming Values Security, All, ChangedBehavior 2 2 Minor 0 %
Indirect Injection Security, All 8 8 Critical 42 %
Keep Files Access Restricted Security, All 1 1 Minor 0 %
No Net For Xml Load Security, All 1 1 Major 51 %
Avoid sleep()/usleep() Security, All 6 5 Minor 41 %
Set Cookie Safe Arguments Security, All 1 1 Major 25 %
Should Use Prepared Statement Analyze, Security, All, Simple, CI-checks, CE 2 2 Major 28 %
Should Use session_regenerateid() Security, All 1 1 Major 18 %
Unserialize Second Arg Security, All 4 4 Critical 50 %
Adding Zero Dump 135 3 Minor 69 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 17 12 Major 56 %
Comparison Is Always The Same Analyze, All, ChangedBehavior 329 152 Minor 0 %
Array Access On Literal Array Analyze, All, Semantics 1 1 Minor 0 %
Bail Out Early Analyze, OneFile, All, Simple, Level 4 441 237 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 533 251 Minor 77 %
Buried Assignation Analyze, All 46 26 Minor 84 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 10 8 Minor 56 %
Check All Types Analyze, All 132 50 Major 69 %
Check Division By Zero Analyze, All, ChangedBehavior 22 9 Minor 0 %
Check JSON Analyze, All, CI-checks, CE 47 34 Major 65 %
Coalesce And Concat Analyze, All, CI-checks, CE 1 1 Minor 0 %
Common Alternatives Analyze, All, Simple 50 33 Major 80 %
Could Be Else Analyze, All 29 25 Minor 49 %
Could Use __DIR__ Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks, CE 8 5 Major 56 %
Could Use Short Assignation Analyze, Performances, OneFile, All, Simple, Rector, CI-checks, CE 116 63 Minor 63 %
Could Use str_repeat() Analyze, All, Level 1, Top10, CI-checks, CE 1 1 Minor 14 %
Could Use Yield From Analyze, Performances, All 1 1 Minor 0 %
Dangling Array References Analyze, PHP recommendations, ClearPHP, All, Simple, Level 1, Top10, CI-checks, CE 18 11 Major 46 %
Default Then Discard Analyze, All, Readability 19 14 Minor 0 %
Don't Change The Blind Var Analyze, All 50 34 Minor 73 %
Don't Mix ++ Analyze, All 10 6 Minor 56 %
Don't Read And Write In One Expression Analyze, All, CompatibilityPHP73, CompatibilityPHP74, CE 3 1 Critical 38 %
Don't Reuse Foreach Source Analyze, All 1 1 Minor 0 %
Double Assignation Analyze, All 16 11 Major 59 %
Double Checks Analyze, All 63 23 Minor 0 %
Double Instructions Analyze, All, Simple 9 8 Minor 57 %
Double Object Assignation Analyze, All, ClassReview 1 1 Minor 0 %
Drop Else After Return Analyze, OneFile, All, Simple, Suggestions, Level 4, CI-checks, CE 72 29 Minor 70 %
Echo With Concat Analyze, Performances, All, Simple, Suggestions 50 11 Minor 60 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE 295 108 Minor 66 %
Empty Blocks Analyze, All, Simple, CI-checks, CE 11 7 Minor 51 %
Empty Json Error Analyze, All 2 2 Minor 0 %
Empty Instructions Analyze, Dead code, All, Simple 1 1 Minor 57 %
Empty Try Catch Analyze, All, Level 3 38 31 Minor 49 %
Eval() Usage Analyze, Appinfo, Security, Performances, PHP recommendations, OneFile, ClearPHP, All, Simple, CE 17 13 Major 39 %
eval() Without Try Analyze, Security, All, Simple, Level 3, CI-checks, CE, ChangedBehavior 15 13 Critical 36 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 37 15 Major 61 %
Switch Fallthrough Inventory, Security, All, Stats 3 3 Minor 39 %
Foreach Reference Is Not Modified Analyze, All, Simple, CI-checks, CE 1 1 Minor 24 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 8 5 Minor 52 %
Htmlentities Calls Analyze, All, Simple, CI-checks, CE 17 8 Major 40 %
Htmlentities Using Default Flag Analyze, All, Simple, CI-checks, ChangedBehavior 13 7 Minor 0 %
Identical Case In Switch Analyze, All 41 13 Minor 0 %
Identical Conditions Analyze, All, Simple, CI-checks, CE 1 1 Critical 28 %
Identical Consecutive Expression Analyze, All 24 16 Minor 59 %
If With Same Conditions Analyze, All, Simple, CI-checks, CE 18 16 Major 47 %
Iffectations Analyze, All 28 20 Minor 80 %
Implicit Conversion To Int Analyze, All, LintButWontExec 14 5 Minor 0 %
Implode() Arguments Order Analyze, All, CI-checks, CE, ChangedBehavior 3 3 Minor 0 %
Indices Are Int Or String Analyze, OneFile, All, Simple, CI-checks, CE 43 18 Major 20 %
Infinite Recursion Analyze, All 14 11 Major 0 %
Invalid Date Scanning Format Analyze, All 1 1 Major 0 %
list() May Omit Variables Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 15 8 Minor 37 %
Long Arguments Analyze, All 8 7 Minor 68 %
Max Level Of Nesting Analyze, All 82 53 Minor 0 %
Mbstring Unknown Encoding Analyze, All, CI-checks, CE 2 2 Minor 0 %
Merge If Then Analyze, All, CI-checks, CE, ChangedBehavior 226 111 Minor 0 %
Mismatched Ternary Alternatives Analyze, All, Suggestions, Level 4 16 10 Major 64 %
Missing Assignation In Command Analyze, All 355 142 Minor 0 %
Missing Cases In Switch Analyze, All 6 4 Minor 36 %
Maybe Missing New Analyze, All 1 1 Critical 57 %
Mixed Concat And Interpolation Analyze, Coding Conventions, All 35 19 Minor 45 %
Modernize Empty With Expression Analyze, OneFile, All, Simple 61 39 Minor 63 %
Multiple Type Variable Analyze, All, Level 4 4 2 Minor 58 %
Nested Ifthen Analyze, All, RadwellCodes 409 128 Major 84 %
Nested Ternary Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 15 7 Major 50 %
Don't Change Incomings Analyze, All 3 2 Minor 44 %
No Choice Analyze, All, Simple, Level 2, Top10, Rector, CI-checks, CE, ChangedBehavior 764 264 Major 42 %
No Direct Usage Analyze, All, Simple 1 1 Major 39 %
No Empty String With explode() Analyze, All, ChangedBehavior 1 1 Minor 0 %
No Hardcoded Hash Analyze, Security, All, Simple 4 2 Critical 45 %
No Hardcoded Path Analyze, ClearPHP, All, Simple 1 1 Major 35 %
No Max On Empty Array All, CompatibilityPHP80, ChangedBehavior 6 5 Minor 0 %
No Need For Else Analyze, All 87 35 Minor 74 %
No Need For Triple Equal Analyze, All 224 113 Minor 0 %
No Null For Index Analyze, All 99 23 Minor 0 %
No Object As Index Analyze, All 3 1 Minor 0 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE 54 32 Minor 62 %
Avoid Substr() One Analyze, Performances, CompatibilityPHP71, All, Simple, Suggestions, Level 2, Top10, CI-checks, CE 57 15 Minor 58 %
Variable Is Not A Condition Analyze, All 3293 811 Minor 93 %
Non Integer Nor String As Index Analyze, All 40 16 Minor 0 %
@ Operator Analyze, Appinfo, Performances, ClearPHP, All, CI-checks, CE 35 11 Minor 65 %
Not Equal Is Not !== Analyze, All, CI-checks, CE 3 2 Minor 0 %
Not Not Analyze, OneFile, All, Simple, CI-checks, CE 21 13 Minor 14 %
Objects Don't Need References Analyze, OneFile, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 7 2 Minor 40 %
include_once() Usage Analyze, Appinfo, All, CE 50 25 Minor 73 %
Several Instructions On The Same Line Analyze, All, ChangedBehavior 8 5 Major 56 %
PHP7 Dirname CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, Suggestions, php-cs-fixable 1 1 Minor 44 %
Print And Die Analyze, All, Simple, CI-checks, CE 3 2 Minor 32 %
Printf Number Of Arguments Analyze, All, CI-checks, CE 2 1 Minor 41 %
Random Without Try Security, All 7 6 Critical 30 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, CE, ChangedBehavior 5 4 Major 50 %
Repeated Regex Analyze, All, Level 1, CI-checks, CE 45 24 Minor 47 %
Results May Be Missing Analyze, All, Simple, CI-checks, CE 1 1 Major 24 %
Return True False Analyze, All, Simple, Level 1, CI-checks, CE 10 7 Major 46 %
Same Conditions In Condition Analyze, All, Simple, CI-checks, CE 11 10 Critical 55 %
Should Chain Exception Analyze, All, Simple, CI-checks, CE 73 57 Minor 39 %
Should Use Ternary Operator Analyze, OneFile, All, Simple, CI-checks, CE 203 91 Minor 86 %
Preprocessable Analyze, All, Rector 255 107 Minor 85 %
Should Use Explode Args Analyze, All, CI-checks, CE 2 2 Minor 0 %
Static Loop Analyze, All, Simple, Level 4 32 14 Minor 67 %
Strpos()-like Comparison Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 14 10 Major 54 %
Suspicious Comparison Analyze, All, Level 3 69 31 Major 39 %
Switch To Switch Analyze, All, RadwellCodes, Simple 70 20 Minor 58 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 50 34 Major 69 %
Test Then Cast Analyze, All 7 4 Major 34 %
Timestamp Difference Analyze, All, Simple, Level 3, CI-checks, CE 18 11 Major 49 %
Unchecked Resources Analyze, ClearPHP, All, Simple, Level 2, CI-checks, CE 1 1 Major 50 %
Unconditional Break In Loop Analyze, All, Level 3, CI-checks, CE 33 19 Major 48 %
Unreachable Code Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3, Unused, ChangedBehavior 170 67 Major 61 %
Unsupported Operand Types Analyze, PHP recommendations, All 5 3 Minor 0 %
Unsupported Types With Operators Analyze, All, CompatibilityPHP80, CE 541 228 Minor 0 %
Use Constant Instead Of Function Analyze, PHP recommendations, All, php-cs-fixable, CI-checks, CE 20 15 Minor 61 %
Use Positive Condition Analyze, OneFile, All, Simple 94 58 Minor 82 %
Use Same Types For Comparisons Analyze, All 10 5 Minor 0 %
Use Variable Created Inside Loop Dead code, All 106 60 Minor 0 %
Useless Type Casting Analyze, PHP recommendations, OneFile, All, RadwellCodes, Simple, Level 4, CI-checks, CE 37 17 Minor 47 %
Useless Check Analyze, OneFile, All, Simple, Level 1, CI-checks, CE 2 2 Minor 35 %
Useless Coalesce Analyze, All 3 3 Minor 0 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 767 266 Minor 63 %
Useless Null Coalesce Analyze, All, Typehints 730 329 Minor 0 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 114 39 Minor 81 %
Useless Short Ternary Analyze, All, ChangedBehavior 1 1 Minor 0 %
Useless Switch Analyze, All, Simple 12 11 Major 32 %
var_dump()... Usage Analyze, Security, ClearPHP, All, CI-checks, CE 1 1 Critical 42 %
Wrong Precedence In Expression Analyze, All, ChangedBehavior 4 4 Minor 0 %
Already Parents Trait Analyze, All 16 16 Minor 0 %
Dependant Trait Analyze, All, Level 3 3 3 Minor 28 %
Empty Traits Analyze, Dead code, All, Simple 2 2 Minor 12 %
Trait Is Not A Type Analyze, All, ClassReview, Typehints 9 3 Minor 0 %
One Variable String Analyze, All, RadwellCodes, Simple, CI-checks, CE 7 7 Minor 33 %
Should Typecast Analyze, OneFile, All, Simple, Rector, CI-checks, CE 154 72 Minor 49 %
String May Hold A Variable Analyze, All, Simple 94 35 Minor 59 %
Missing Some Returntype Analyze, All, Typehints, CI-checks, CE 174 98 Minor 0 %
StandaloneType True False Null Analyze, Appcontent, All 2215 575 Minor 0 %
Wrong Type With Default Analyze, All, LintButWontExec, ClassReview 386 115 Minor 0 %
Assigned Twice Analyze, All 551 125 Minor 79 %
Overwritten Literals Analyze, All 699 132 Major 79 %
Recycled Variables Analyze, All 20 9 Minor 0 %
Undefined Variable Analyze, All, CI-checks, CE, Undefined 173 43 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 10 9 Minor 74 %
Used Once Variables (In Scope) Analyze, OneFile, ClearPHP, All, Simple, Level 4, CE 2753 985 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 160 58 Minor 87 %