PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Ambiguous Array Index Analyze, All, Simple, Level 2, Semantics, ChangedBehavior 1 1 Minor 10 %
Append And Assign Arrays All, Internal, Analyze, ChangedBehavior 12 12 Minor 0 %
Multiple Index Definition Analyze, OneFile, All, Simple, CI-checks, Rector, CE 4 3 Minor 33 %
Null Or Boolean Arrays All, Analyze 102 14 Minor 0 %
Randomly Sorted Arrays All, Analyze, Level 4, Suggestions 8 8 Minor 41 %
Too Many Array Dimensions All, Analyze 33 11 Minor 0 %
Weak Type With Array All, Analyze, ChangedBehavior 1803 168 Minor 0 %
Abstract Or Implements All, Analyze, LintButWontExec, ChangedBehavior 82 27 Major 24 %
Ambiguous Static All, Analyze, Semantics 92 52 Minor 66 %
Ambiguous Visibilities All, Analyze, Semantics, ChangedBehavior 66 34 Minor 70 %
Avoid option arrays in constructors All, Analyze, ClassReview 3 3 Minor 0 %
Avoid Optional Properties All, Analyze 149 40 Major 84 %
Clone With Non-Object All, Analyze, LintButWontExec 2 1 Minor 33 %
Could Be Abstract Class All, Analyze, ClassReview 16 14 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 267 162 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 215 107 Minor 92 %
Could Inject Parameter All, Analyze, ClassReview, ChangedBehavior 57 28 Minor 0 %
Cyclic References All, Analyze, ClassReview 54 19 Minor 0 %
Dependant Abstract Classes All, Analyze, ClassReview 2 2 Minor 0 %
Different Argument Counts All, Analyze, ClassReview 5 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 All, Analyze 4 3 Minor 41 %
Don't Unset Properties All, Analyze, Top10, php-cs-fixable, CI-checks, CE 14 5 Major 42 %
Empty Classes Analyze, All, Simple 15 5 Minor 60 %
Hidden Nullable Typehint All, Analyze, ClassReview 38 24 Minor 0 %
Incompatible Signature Methods With Covariance All, Analyze 3 3 Critical 0 %
Inherited Property Type Must Match All, Analyze, LintButWontExec, ClassReview 6 5 Minor 0 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 56 19 Minor 71 %
Make Global A Property Analyze, All, Simple 69 17 Minor 37 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 5 2 Critical 53 %
Mismatch Properties Typehints All, Analyze, LintButWontExec, ClassReview 50 14 Minor 0 %
New Object Then Immediate Call All, Analyze, ClassReview 57 46 Minor 0 %
No Public Access Analyze, All 267 58 Minor 61 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 803 32 Minor 42 %
Non Static Methods Called In A Static Analyze, CompatibilityPHP56, All, Simple, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CI-checks, IsPHP, IsStub, IsExt, CE 2 2 Minor 20 %
Var Keyword Analyze, OneFile, ClearPHP, All, Simple, Level 1 242 19 Minor 4 %
Parent First All, Analyze, Suggestions 4 3 Minor 56 %
Property Could Be Local All, Analyze, ClassReview 50 12 Minor 76 %
Same Name For Property And Method All, Analyze, ClassReview, Semantics 10 5 Minor 0 %
Never Used Properties Analyze, All, Simple, Unused 141 62 Minor 71 %
Property Used In One Method Only All, Analyze 342 57 Minor 84 %
Scalar Or Object Property All, Analyze 3 3 Minor 32 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 204 14 Minor 63 %
Should Use Local Class Analyze, ClearPHP, All, Simple 256 111 Minor 95 %
Static Methods Called From Object Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 7 3 Minor 50 %
Wrong Access Style to Property All, Analyze, Level 2, ClassReview, CI-checks, CE 1 1 Critical 37 %
Undefined Classes Analyze, All, Stubs, Undefined 3515 308 Major 91 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE 1374 97 Major 61 %
Unfinished Object All, Analyze, ClassReview 113 34 Major 0 %
Unreachable Method All, Analyze, Dead code, ClassReview, Unused, ChangedBehavior 11 3 Minor 0 %
Unresolved Classes Analyze, All, Stubs, ChangedBehavior 4 3 Major 76 %
Unused Classes Dead code, All, Simple, Analyze, Unused, ChangedBehavior 53 47 Major 67 %
Unused Class Constant All, Analyze, ClassReview, Unused, ChangedBehavior 23 6 Minor 0 %
Unused Public Methods All, Analyze, ChangedBehavior 755 147 Minor 0 %
Use ::Class Operator All, Analyze, Performances, Simple, CI-checks, ChangedBehavior, CE 346 70 Minor 71 %
Use Instanceof Analyze, All, Simple, CI-checks, ChangedBehavior, CE 38 23 Major 63 %
Used Once Property All, Analyze, ChangedBehavior 8 3 Minor 74 %
Useless Abstract Class Analyze, All, Simple, ChangedBehavior 9 8 Minor 33 %
Useless Constructor Analyze, All, Simple, Level 3, ChangedBehavior 2 2 Minor 41 %
Weak Typing All, Analyze, ChangedBehavior 37 8 Minor 47 %
Wrong Typed Property Default All, Analyze, LintButWontExec, ClassReview, CI-checks, CE 40 12 Minor 0 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks, CE 223 46 Minor 54 %
Multiple Constant Definition Analyze, All, Simple, CI-checks, ChangedBehavior, CE 157 35 Minor 41 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, ChangedBehavior, CE 124 5 Minor 71 %
Catch With Undefined Variable All, Analyze, Undefined, ChangedBehavior 3 2 Minor 0 %
Throw Raw Exceptions All, Analyze, Suggestions 49 11 Minor 0 %
Uncaught Exceptions Analyze, All, ChangedBehavior 49 11 Minor 84 %
Unthrown Exception Analyze, Dead code, ClearPHP, All, Simple, ChangedBehavior 1 1 Minor 45 %
Useless Try All, Analyze, ChangedBehavior 5 4 Minor 0 %
Missing Include All, Analyze 458 173 Critical 65 %
Native Alias Functions Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks, ChangedBehavior, CE 87 27 Minor 20 %
Use Named Boolean In Argument Definition All, Analyze, ChangedBehavior 158 72 Minor 84 %
Callback Function Needs Return All, Analyze, CI-checks, CE 6 2 Major 42 %
Could Make A Function All, Analyze, Suggestions, ChangedBehavior 1996 355 Minor 66 %
Deep Definitions Analyze, Appinfo, All, Simple, CE 37 4 Major 13 %
Don't Collect Void All, Analyze, IsPHP, IsStub, IsExt 170 35 Minor 0 %
Empty Function Analyze, All, Simple 21 13 Minor 74 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 174 22 Major 70 %
Insufficient Typehint All, Analyze, Typechecks 22 12 Major 43 %
Method Is Not An If All, Analyze 149 48 Minor 0 %
Mismatch Parameter Name All, Analyze, CompatibilityPHP80, ChangedBehavior, CE 7 6 Minor 0 %
Mismatched Default Arguments All, Analyze, Typechecks 50 20 Minor 80 %
Mismatched Typehint All, Analyze, Typechecks 15 10 Major 66 %
Modified Typed Parameter All, Analyze, ClassReview 8 7 Minor 0 %
Must Return Methods Analyze, All, Simple, Level 2, LintButWontExec, CI-checks, ChangedBehavior, CE 2 2 Major 34 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 78 38 Minor 92 %
No Boolean As Default All, Analyze 161 73 Minor 84 %
No Default For Referenced Parameter All, Analyze 19 10 Minor 0 %
No Literal For Reference All, Analyze, CI-checks, ChangedBehavior, CE 1 1 Minor 0 %
No Return Used All, Analyze, Suggestions, Level 4 68 34 Minor 69 %
Only Variable For Reference All, Analyze, LintButWontExec 2 1 Critical 20 %
Only Variable Passed By Reference All, Analyze, IsPHP, IsStub, IsExt 1712 253 Critical 43 %
Redeclared PHP Functions Analyze, Appinfo, All, Simple, CI-checks, CE 3 3 Minor 26 %
Relay Function Analyze, All 35 13 Major 84 %
Retyped Reference All, Analyze, Typehints 2 2 Major 0 %
Should Use Existing Constants Analyze, All, Simple 13 4 Minor 32 %
Too Many Local Variables All, Analyze 53 41 Minor 64 %
Class-typed References All, Analyze, CI-checks, CE 9 1 Minor 37 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, CE 52 16 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 217 81 Major 90 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple, Unused 875 230 Minor 41 %
Use Constant As Arguments Analyze, All, Simple, CI-checks, CE 2 1 Major 30 %
Useless Argument All, Analyze 2 2 Minor 0 %
Useless Referenced Argument All, Analyze, ChangedBehavior 90 22 Minor 58 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 5944 357 Minor 98 %
Using Deprecated Method All, Analyze, Attributes 60 43 Minor 0 %
Wrong Argument Type All, Analyze, Typechecks 2922 272 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, IsPHP, IsStub, IsExt, CE 208 86 Major 81 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 894 138 Minor 0 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks, CE 3660 286 Minor 0 %
Forgotten Interface All, Analyze, ChangedBehavior 30 6 Minor 48 %
Useless Interfaces Analyze, ClearPHP, All, Simple, ClassReview, Typechecks, ChangedBehavior 1 1 Minor 59 %
Unresolved Use Analyze, ClearPHP, All, Simple, ChangedBehavior 3 1 Major 69 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, ChangedBehavior, CE 40 22 Major 57 %
Logical To in_array All, Analyze, Level 2, ChangedBehavior 93 31 Minor 67 %
Memoize MagicCall All, Analyze, ClassReview, ChangedBehavior 23 14 Minor 0 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, ChangedBehavior, CE 380 103 Minor 74 %
strpos() Too Much All, Analyze, CI-checks, ChangedBehavior, CE 23 14 Minor 49 %
Use array_slice() All, Analyze, CI-checks, ChangedBehavior, CE 8 6 Minor 0 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze, ChangedBehavior, CE 12 8 Minor 0 %
Assign And Lettered Logical Operator Precedence All, Analyze, CI-checks, CE 13 7 Critical 9 %
Assumptions All, Analyze, ChangedBehavior 26 8 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks, ChangedBehavior, CE 36 18 Major 59 %
Crc32() Might Be Negative All, PHP recommendations, Analyze, ChangedBehavior 1 1 Major 4 %
Deprecated PHP Functions Analyze, All, CI-checks, CE 10 5 Major 23 %
Don't Pollute Global Space All, Analyze 1577 337 Minor 0 %
Exit Without Argument All, Analyze, ChangedBehavior 9 5 Minor 0 %
False To Array Conversion All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82, Analyze 215 24 Minor 0 %
Incompilable Files Analyze, Appinfo, ClearPHP, All, Simple, CE 6 6 Critical 24 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE 56 27 Major 76 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, ChangedBehavior, CE 39 23 Minor 53 %
Logical Should Use Symbolic Operators Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks, CE 920 161 Minor 43 %
Possible Missing Subpattern All, Analyze, Top10, CI-checks, ChangedBehavior, CE 17 11 Minor 45 %
No Class In Global All, Analyze, CI-checks, ChangedBehavior, CE 1103 319 Minor 77 %
No Null For Native PHP Functions All, Analyze, CompatibilityPHP81, Deprecated, ChangedBehavior 230 77 Minor 0 %
Only Variable Passed By Reference All, Analyze, LintButWontExec, ChangedBehavior 8 4 Minor 0 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks, ChangedBehavior, CE 49 7 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 131 68 Major 71 %
Strtr Arguments All, Analyze, CI-checks, CE 1 1 Major 7 %
Too Many Native Calls All, Analyze, IsPHP, IsExt 23 15 Minor 49 %
Unknown Pcre2 Option All, Analyze, CompatibilityPHP73 5 4 Minor 17 %
Avoid Using stdClass All, Analyze, OneFile, Simple, Level 4 1 1 Minor 46 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 328 85 Minor 0 %
Don't Echo Error All, Analyze, Security, Simple, Level 1, CI-checks, ChangedBehavior, CE 2 2 Critical 35 %
Should Use Prepared Statement Analyze, Security, All, Simple, CI-checks, ChangedBehavior, CE 1 1 Major 28 %
Adding Zero Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, Rector, CE 150 3 Minor 69 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 20 17 Major 56 %
Comparison Is Always The Same All, Analyze, ChangedBehavior 106 27 Minor 0 %
Assign And Compare All, Analyze, CI-checks, CE 2 1 Minor 18 %
Same Variable Foreach All, Analyze, CI-checks, CE 3 3 Minor 16 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 285 111 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 278 118 Minor 77 %
Buried Assignation Analyze, All 248 67 Minor 84 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 44 29 Minor 56 %
Check All Types All, Analyze 120 54 Major 69 %
Check Division By Zero All, Analyze, ChangedBehavior 55 22 Minor 0 %
Check JSON All, Analyze, CI-checks, CE 15 11 Major 65 %
Coalesce And Concat All, Analyze, CI-checks, CE 1 1 Minor 0 %
Common Alternatives Analyze, All, Simple 80 43 Major 80 %
Concat Empty String All, Analyze, OneFile 8 4 Minor 0 %
Could Be Else All, Analyze 6 6 Minor 49 %
Could Be A Static Variable Analyze, OneFile, All, ClassReview, ChangedBehavior 9 7 Major 23 %
Could Use __DIR__ Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks, CE 3 3 Major 56 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks, Rector, ChangedBehavior, CE 33 21 Minor 63 %
Could Use str_repeat() All, Analyze, Level 1, Top10, CI-checks, CE 1 1 Minor 14 %
Dangling Array References PHP recommendations, Analyze, ClearPHP, All, Simple, Level 1, Top10, CI-checks, CE 10 7 Major 46 %
Don't Change The Blind Var All, Analyze 51 38 Minor 73 %
Don't Mix ++ All, Analyze 24 15 Minor 56 %
Don't Read And Write In One Expression All, Analyze, CompatibilityPHP73, CompatibilityPHP74, CE 15 5 Critical 38 %
Don't Reuse Foreach Source All, Analyze 2 2 Minor 0 %
Double Checks All, Analyze 46 17 Minor 0 %
Double Instructions Analyze, All, Simple 8 6 Minor 57 %
Double Object Assignation All, Analyze, ClassReview, ChangedBehavior 1 1 Minor 0 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, CE 93 43 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 202 140 Minor 60 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE 261 97 Minor 66 %
Empty Blocks Analyze, All, Simple, CI-checks, CE 26 4 Minor 51 %
Empty Instructions Dead code, Analyze, All, Simple 1 1 Minor 57 %
Empty Try Catch Analyze, All, Level 3 6 5 Minor 49 %
Eval() Usage Analyze, Appinfo, Performances, OneFile, ClearPHP, All, Simple, Security, PHP recommendations, CE 17 13 Major 39 %
eval() Without Try Analyze, All, Simple, Level 3, Security, CI-checks, ChangedBehavior, CE 13 11 Critical 36 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 131 86 Major 61 %
Foreach Reference Is Not Modified Analyze, All, Simple, CI-checks, CE 2 2 Minor 24 %
Overwritten Source And Value All, Analyze, OneFile 3 3 Minor 0 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 587 72 Minor 52 %
Htmlentities Calls Analyze, All, Simple, CI-checks, CE 128 29 Major 40 %
Htmlentities Using Default Flag All, Analyze, Simple, CI-checks, ChangedBehavior 130 31 Minor 0 %
Identical Case In Switch All, Analyze, ChangedBehavior 143 22 Minor 0 %
Identical Consecutive Expression All, Analyze 5 4 Minor 59 %
Identical On Both Sides All, Analyze, CI-checks, CE 1 1 Major 19 %
Identical Variables In Foreach All, Analyze, OneFile 3 3 Minor 0 %
If With Same Conditions Analyze, All, Simple, CI-checks, CE 8 8 Major 47 %
Iffectations Analyze, All 197 55 Minor 80 %
Implied If Analyze, ClearPHP, All, Simple, CI-checks, Rector, CE 46 27 Major 33 %
Implode() Arguments Order All, Analyze, CI-checks, ChangedBehavior, CE 6 5 Minor 0 %
Indices Are Int Or String Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE 30 12 Major 20 %
Infinite Recursion All, Analyze 5 5 Major 0 %
Invalid Pack Format All, Analyze, CI-checks, ChangedBehavior, CE 3 1 Major 0 %
Invalid Regex All, Analyze, CI-checks, ChangedBehavior, CE 2 2 Major 37 %
Is Actually Zero All, Analyze, Level 2, CI-checks, ChangedBehavior, CE 1 1 Minor 18 %
list() May Omit Variables Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 18 10 Minor 37 %
Logical Mistakes Analyze, All, Simple, Level 1, CI-checks, CE 5 1 Critical 32 %
Lone Blocks Analyze, All, Simple, Level 4, CI-checks, ChangedBehavior, CE 106 14 Minor 15 %
Long Arguments All, Analyze 51 22 Minor 68 %
Max Level Of Nesting All, Analyze 103 51 Minor 0 %
Mbstring Unknown Encoding All, Analyze, CI-checks, CE 2 2 Minor 0 %
Merge If Then All, Analyze, CI-checks, ChangedBehavior, CE 179 97 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 28 16 Major 64 %
Missing Assignation In Command All, Analyze, ChangedBehavior 580 158 Minor 0 %
Missing Cases In Switch All, Analyze 14 12 Minor 36 %
Maybe Missing New All, Analyze, ChangedBehavior 119 1 Critical 57 %
Missing Parenthesis All, Analyze, Simple, Level 5, CI-checks, ChangedBehavior, CE 1 1 Major 16 %
Mixed Concat And Interpolation All, Coding Conventions, Analyze 11 8 Minor 45 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 79 28 Minor 63 %
Multiples Identical Case Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, Rector, CE 4 3 Minor 29 %
Multiple Type Variable All, Analyze, Level 4 19 16 Minor 58 %
Nested Ifthen Analyze, All, RadwellCodes 592 148 Major 84 %
Nested Ternary Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 22 8 Major 50 %
Next Month Trap All, Analyze, Top10, CI-checks, CE 2 2 Major 8 %
Don't Change Incomings Analyze, All 74 21 Minor 44 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, ChangedBehavior, CE 7 6 Major 42 %
No Direct Usage Analyze, All, Simple 9 7 Major 39 %
No Hardcoded Hash Analyze, Security, All, Simple 1 1 Critical 45 %
No Hardcoded Path Analyze, ClearPHP, All, Simple 2 2 Major 35 %
No Hardcoded Port Analyze, ClearPHP, Security, All, Simple 1 1 Minor 12 %
No isset() With empty() All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE 2 2 Minor 30 %
No Need For Else All, Analyze 114 51 Minor 74 %
No Null For Index All, Analyze, ChangedBehavior 30 19 Minor 0 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, ChangedBehavior, CE 537 180 Minor 62 %
Avoid Substr() One Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks, CE 44 12 Minor 58 %
Variable Is Not A Condition All, Analyze 582 146 Minor 93 %
Non Integer Nor String As Index All, Analyze, ChangedBehavior 22 8 Minor 0 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, CE 527 99 Minor 65 %
Not Not Analyze, OneFile, All, Simple, CI-checks, CE 10 6 Minor 14 %
Objects Don't Need References Analyze, ClearPHP, OneFile, All, Simple, Level 2, Top10, CI-checks, CE 9 1 Minor 40 %
include_once() Usage Analyze, Appinfo, All, CE 383 178 Minor 73 %
Several Instructions On The Same Line Analyze, All, ChangedBehavior 254 10 Major 56 %
Only Variable Returned By Reference Analyze, All, Simple 1 1 Major 3 %
Print And Die Analyze, All, Simple, CI-checks, CE 10 8 Minor 32 %
Printf Number Of Arguments All, Analyze, CI-checks, CE 2 1 Minor 41 %
Queries In Loops Analyze, OneFile, All, Simple, Level 1, Top10 67 44 Major 8 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, ChangedBehavior, CE 27 22 Major 50 %
Repeated Regex All, Analyze, Level 1, CI-checks, CE 110 44 Minor 47 %
Results May Be Missing Analyze, All, Simple, CI-checks, CE 2 2 Major 24 %
Return True False Analyze, All, Simple, Level 1, CI-checks, CE 18 11 Major 46 %
Same Conditions In Condition Analyze, All, Simple, CI-checks, CE 21 16 Critical 55 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 287 126 Minor 86 %
Preprocessable Analyze, All, Rector 2016 338 Minor 85 %
Should Use Explode Args All, Analyze, CI-checks, CE 2 2 Minor 0 %
Static Loop Analyze, All, Simple, Level 4 34 17 Minor 67 %
Strpos()-like Comparison Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 15 11 Major 54 %
Suspicious Comparison All, Analyze, Level 3 6 5 Major 39 %
Switch To Switch Analyze, All, RadwellCodes, Simple 82 27 Minor 58 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 40 29 Major 69 %
Test Then Cast All, Analyze 4 3 Major 34 %
Timestamp Difference Analyze, All, Simple, Level 3, CI-checks, CE 28 20 Major 49 %
Unchecked Resources Analyze, ClearPHP, All, Simple, Level 2, CI-checks, CE 9 8 Major 50 %
Unconditional Break In Loop All, Analyze, Level 3, CI-checks, CE 22 10 Major 48 %
Unpreprocessed Values Analyze, OneFile, ClearPHP, All, Simple, Performances 3 3 Minor 30 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 111 48 Minor 0 %
Unused Global Analyze, All, Simple, Unused 55 1 Minor 22 %
Use Constant Instead Of Function PHP recommendations, All, Analyze, php-cs-fixable, CI-checks, CE 3 3 Minor 61 %
Avoid get_class() Analyze, All, Simple, CI-checks, ChangedBehavior, CE 22 2 Minor 32 %
Use Positive Condition All, Analyze, OneFile, Simple 190 101 Minor 82 %
Use Same Types For Comparisons All, Analyze 26 5 Minor 0 %
Useless Brackets Analyze, All, RadwellCodes, Simple, CI-checks, CE 106 14 Minor 15 %
Useless Type Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE 6 6 Minor 47 %
Useless Check All, Analyze, OneFile, Simple, Level 1, CI-checks, CE 5 4 Minor 35 %
Useless Global Analyze, OneFile, All, Simple, Level 2 15 7 Minor 27 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 38 13 Minor 63 %
Useless Null Coalesce All, Analyze, Typehints 7 5 Minor 0 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 224 72 Minor 81 %
Useless Switch Analyze, All, Simple 4 4 Major 32 %
Useless Unset Analyze, OneFile, ClearPHP, All, Simple, Level 2, CI-checks, CE 3 2 Major 42 %
var_dump()... Usage Analyze, ClearPHP, Security, All, CI-checks, CE 6 5 Critical 42 %
While(List() = Each()) Analyze, Performances, OneFile, All, Simple, Suggestions, Level 2, CI-checks, ChangedBehavior, CE 1 1 Minor 14 %
Wrong Precedence In Expression All, Analyze, ChangedBehavior 2 2 Minor 0 %
One Variable String Analyze, All, RadwellCodes, Simple, CI-checks, CE 4 3 Minor 33 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks, Rector, CE 80 34 Minor 49 %
String May Hold A Variable Analyze, All, Simple 115 44 Minor 59 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 50 23 Minor 0 %
StandaloneType True False Null All, Appcontent, Analyze, ChangedBehavior 98 33 Minor 0 %
Wrong Type With Default All, Analyze, LintButWontExec, ClassReview 706 145 Minor 0 %
Assigned Twice All, Analyze 886 117 Minor 79 %
Overwritten Literals Analyze, All 1044 122 Major 79 %
Recycled Variables All, Analyze 29 10 Minor 0 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 4044 192 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 46 27 Minor 74 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE 5802 300 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 264 62 Minor 87 %