PHP Static analysis for tpshop

Label Recipes Issues Files Severity Frequence
Multiple Index Definition Analyze, OneFile, All, Simple, CI-checks 3 3 Minor 25 %
Non-constant Index In Array Analyze, All, Simple 39 16 Minor 26 %
Null Or Boolean Arrays All, Analyze 149 28 Minor 0 %
Randomly Sorted Arrays All, Analyze, Level 4, Suggestions 34 1 Minor 41 %
String Initialization All, CompatibilityPHP71 403 77 Minor 33 %
Too Many Array Dimensions All, Analyze 38 10 Minor 0 %
Ambiguous Static All, Analyze 559 256 Minor 64 %
Ambiguous Visibilities All, Analyze 284 141 Minor 70 %
Avoid option arrays in constructors All, Analyze, ClassReview 4 4 Minor 0 %
Avoid Optional Properties All, Analyze 404 103 Major 83 %
Cant Instantiate Class All, Analyze 4 3 Critical 28 %
Child Class Removes Typehint All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Typechecks 8 8 Major 1 %
Clone With Non-Object All, Analyze, LintButWontExec 9 6 Minor 0 %
Constant Class Analyze, All, Simple, CI-checks 3 3 Minor 49 %
Could Be Abstract Class All, Analyze, ClassReview 18 17 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 516 444 Minor 95 %
Method Could Be Static All, Analyze, ClassReview 445 168 Minor 95 %
Cyclic References All, Analyze, ClassReview 61 28 Minor 0 %
Dependant Abstract Classes All, Analyze, ClassReview 8 8 Minor 0 %
Different Argument Counts All, Analyze, ClassReview 4 2 Minor 0 %
No Direct Call To Magic Method Analyze, All, Level 2, CI-checks 26 12 Major 41 %
Don't Send $this In Constructor All, Analyze 21 21 Minor 39 %
Don't Unset Properties All, Analyze, Top10, php-cs-fixable, CI-checks 22 15 Major 40 %
Empty Classes Analyze, All, Simple 6 6 Minor 58 %
Class Should Be Final By Ocramius All, Analyze 3 3 Minor 42 %
Hidden Nullable All, Analyze, ClassReview 219 61 Minor 0 %
Incompatible Signature Methods With Covariance All, Analyze 12 10 Critical 0 %
Instantiating Abstract Class Analyze, All, Simple 2 2 Major 9 %
Locally Unused Property Dead code, All, Simple 237 82 Minor 76 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 234 64 Minor 49 %
Make Global A Property Analyze, All, Simple 29 12 Minor 33 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 4 2 Critical 50 %
Multiple Class Declarations Analyze, All, Simple, CI-checks 36 34 Major 5 %
No Public Access Analyze, All 353 66 Minor 60 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks 959 56 Minor 42 %
Non Static Methods Called In A Static Analyze, CompatibilityPHP56, All, Simple, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CI-checks 2 2 Minor 20 %
Old Style Constructor Analyze, OneFile, Appinfo, ClearPHP, All, Simple, CompatibilityPHP80 13 12 Minor 14 %
Var Keyword Analyze, OneFile, ClearPHP, All, Simple, Level 1 168 13 Minor 22 %
Parent First All, Analyze, Suggestions 11 11 Minor 55 %
Property Could Be Local All, Analyze, ClassReview 161 82 Minor 71 %
Never Used Properties Analyze, All, Simple 127 43 Minor 72 %
Property Used In One Method Only All, Analyze 307 87 Minor 84 %
Redefined Default Analyze, All, Simple, CI-checks 140 37 Major 26 %
Redefined Private Property All, Analyze 1 1 Major 18 %
Scalar Or Object Property All, Analyze 1 1 Minor 24 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 286 26 Minor 57 %
Should Use Local Class Analyze, ClearPHP, All, Simple 872 229 Minor 94 %
Static Methods Can't Contain $this Analyze, ClearPHP, All, Simple, Level 1, CI-checks 1 1 Major 5 %
Static Methods Called From Object Analyze, All, Simple, CI-checks 32 14 Minor 38 %
$this Belongs To Classes Or Traits Analyze, All, Simple 36 1 Major 23 %
$this Is Not An Array Analyze, All 6 3 Major 3 %
$this Is Not For Static Methods Analyze, All 1 1 Major 5 %
Too Many Dereferencing All, Analyze 1 1 Minor 0 %
Too Many Injections All, Analyze, Dismell 1 1 Minor 0 %
Wrong Access Style to Property All, Analyze, Level 2, ClassReview, CI-checks 124 13 Critical 3 %
Undefined Classes Analyze, All 1445 93 Major 91 %
Undefined Class Constants Analyze, All, CI-checks 116 21 Major 53 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks 182 14 Major 58 %
Undefined static:: Or self:: Analyze, All, Simple 2 2 Minor 33 %
Unresolved Catch Dead code, ClearPHP, All 24 11 Major 51 %
Unresolved Classes Analyze, All 138 57 Major 86 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10 13 4 Major 48 %
Unused Classes Dead code, All, Simple, Analyze 26 26 Major 72 %
Unused Class Constant All, Analyze, ClassReview 123 26 Minor 0 %
Unused Methods Dead code, All, Simple 2020 367 Minor 95 %
Unused Private Methods Dead code, OneFile, All, Simple 36 19 Minor 45 %
Unused Private Properties Dead code, OneFile, All, Simple 20 17 Minor 37 %
Unused Protected Methods Dead code, All 13 12 Major 72 %
Use Class Operator All, Analyze, Performances, Simple, CI-checks 216 47 Minor 74 %
Use Instanceof Analyze, All, Simple, CI-checks 120 79 Major 63 %
Used Once Property All, Analyze 74 42 Minor 72 %
Useless Abstract Class Analyze, All, Simple 1 1 Minor 60 %
Useless Constructor Analyze, All, Simple, Level 3 10 10 Minor 38 %
Weak Typing All, Analyze 51 15 Minor 41 %
Illegal Name For Method All, Analyze, OneFile, Simple 9 5 Major 19 %
Bad Constants Names PHP recommendations, All, Analyze 10 3 Minor 2 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks 196 24 Minor 57 %
Constants With Strange Names Analyze, All, Simple, CI-checks 164 20 Minor 1 %
Constants Created Outside Its Namespace Analyze, All 5 2 Minor 0 %
Invalid Constant Name Analyze, All, Simple 158 20 Major 1 %
Multiple Constant Definition Analyze, All, Simple, CI-checks 159 45 Minor 32 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks 396 78 Minor 54 %
Unused Constants Dead code, All, Simple 19 9 Minor 36 %
Catch Undefined Variable All, Analyze 4 1 Minor 0 %
Undefined Caught Exceptions Dead code, All 23 10 None 50 %
Uncaught Exceptions Analyze, All 159 30 Minor 81 %
Unthrown Exception Analyze, Dead code, ClearPHP, All, Simple 1 1 Minor 43 %
Useless Catch All, Analyze, CI-checks 15 4 Minor 47 %
ext/ereg Appinfo, CompatibilityPHP70, All 4 2 Major 5 %
Missing Include All, Analyze 121 66 Critical 61 %
Aliases Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks 129 31 Minor 42 %
Use Named Boolean In Argument Definition All, Analyze 397 146 Minor 84 %
Callback Needs Return All, Analyze, CI-checks 10 8 Major 51 %
Could Make A Function All, Analyze, Suggestions 6602 445 Minor 75 %
Empty Function Analyze, All, Simple 41 29 Minor 71 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 47 19 Major 61 %
Insufficient Typehint All, Analyze, Typechecks 56 12 Major 24 %
Mismatch Parameter Name All, Analyze, CompatibilityPHP80 4 3 Minor 0 %
Mismatched Default Arguments All, Analyze, Typechecks 494 123 Minor 33 %
Mismatched Typehint All, Analyze, Typechecks 26 10 Major 5 %
Modified Typed Parameter All, Analyze, ClassReview 6 5 Minor 0 %
Must Return Methods Analyze, All, Simple, Level 2, LintButWontExec, CI-checks 10 10 Major 22 %
Never Used Parameter All, Analyze, Suggestions 629 229 Minor 47 %
No Boolean As Default All, Analyze 397 146 Minor 84 %
No Literal For Reference All, Analyze, CI-checks 1 1 Minor 0 %
No Return Used All, Analyze, Suggestions, Level 4 115 68 Minor 41 %
Only Variable For Reference All, Analyze, LintButWontExec 3 2 Critical 24 %
Only Variable Passed By Reference All, Analyze 22 11 Critical 40 %
Redeclared PHP Functions Analyze, Appinfo, All, Simple, CI-checks 3 3 Minor 28 %
Relay Function Analyze, All 137 72 Major 83 %
Should Use Constants Analyze, All, Simple 13 3 Minor 24 %
Too Many Local Variables All, Analyze 118 77 Minor 65 %
Typehinted References All, Analyze, CI-checks 11 8 Minor 12 %
Undefined Functions Analyze, All, CI-checks 2368 307 Major 71 %
Unused Arguments Analyze, All, Simple 351 130 Major 89 %
Unused Functions Dead code, All, Simple 61 50 Minor 53 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple 215 66 Minor 39 %
Use Constant As Arguments Analyze, All, Simple, CI-checks 6 3 Major 25 %
Useless Referenced Argument All, Analyze 69 52 Minor 57 %
Useless Return Analyze, OneFile, All, Simple, Level 4 10 6 Minor 29 %
Useless Type Check All, Dead code, OneFile 3 3 Minor 0 %
Uses Default Values Analyze, All, Simple, CI-checks 5383 403 Minor 97 %
Using Deprecated Method All, Analyze 1 1 Minor 0 %
Methods Without Return All, Analyze 1764 309 Minor 0 %
Wrong Argument Type All, Analyze, Typechecks 1 1 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks 166 76 Major 38 %
Wrong Optional Parameter Analyze, All, Simple, Level 1, CI-checks 11 9 Minor 38 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks 70 13 Minor 0 %
Already Parents Interface Analyze, All, Level 3, Suggestions 20 20 Minor 17 %
Forgotten Interface All, Analyze 14 14 Minor 52 %
Interfaces Is Not Implemented All, Analyze, ClassReview, LintButWontExec, CI-checks 15 15 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks 21 10 Major 67 %
Unused Interfaces Dead code, All, Simple, Suggestions, Level 2 1 1 Minor 25 %
Useless Interfaces Analyze, ClearPHP, All, Simple, ClassReview, Typechecks 4 4 Minor 57 %
Should Make Alias Analyze, OneFile, All, Simple, CI-checks 3 3 Minor 44 %
Unresolved Use Analyze, ClearPHP, All, Simple 11 6 Major 65 %
Unused Use Dead code, ClearPHP, All, Simple 13 8 Major 54 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks 29 23 Major 55 %
Logical To in_array All, Analyze, Level 2 104 41 Minor 66 %
Memoize MagicCall All, Analyze, ClassReview 23 11 Minor 0 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks 584 113 Minor 74 %
strpos() Too Much All, Analyze, CI-checks 11 7 Minor 46 %
Use array_slice() All, Analyze, CI-checks 4 3 Minor 0 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze 78 28 Minor 0 %
Assumptions All, Analyze 29 9 Minor 0 %
Avoid mb_dectect_encoding() All, Analyze 2 2 Minor 0 %
Avoid set_error_handler $context Argument All, CompatibilityPHP72 2 2 Major 16 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks 94 28 Major 59 %
Deprecated Functions Analyze, All, CI-checks 13 7 Major 22 %
Detect Current Class All, Suggestions, CompatibilityPHP74 28 28 None 47 %
Don't Pollute Global Space All, Analyze 1874 394 Minor 0 %
Wrong fopen() Mode Analyze, All, CI-checks 2 2 Major 16 %
Incompilable Files Analyze, Appinfo, ClearPHP, All, Simple 5 5 Critical 0 %
Is_A() With String All, Analyze, Simple, Rector, CI-checks 5 1 Minor 0 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks 403 95 Minor 52 %
Logical Should Use Symbolic Operators Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks 191 47 Minor 42 %
Possible Missing Subpattern All, Analyze, Top10, CI-checks 5 4 Minor 40 %
No Class In Global All, Analyze, CI-checks 693 377 Minor 78 %
PHP 7.0 Removed Directives CompatibilityPHP70, CompatibilityPHP71, All 1 1 Major 1 %
PHP 7.0 Removed Functions CompatibilityPHP70, CompatibilityPHP71, All 10 5 Major 0 %
PHP 7.2 Deprecations All, CompatibilityPHP72 4 3 Major 1 %
PHP 7.2 Removed Functions All, CompatibilityPHP72 3 2 Major 1 %
PHP 7.4 Removed Functions All, CompatibilityPHP74 3 3 Critical 0 %
Php7 Relaxed Keyword CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Appinfo 1 1 Major 25 %
PHP 8.0 Removed Functions All, CompatibilityPHP80 5 4 Major 0 %
$HTTP_RAW_POST_DATA Usage CompatibilityPHP56, Appinfo, All 6 1 Major 3 %
PHP Keywords As Names Analyze, All, Simple 2586 194 Major 89 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks 174 24 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks 292 75 Major 71 %
Strtr Arguments All, Analyze, CI-checks 1 1 Major 6 %
Unknown Pcre2 Option All, Analyze, CompatibilityPHP73 6 3 Minor 15 %
Use Nullable Type All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 581 199 Major 21 %
Use Pathinfo Analyze, All, Simple, Level 3, CI-checks 1 1 Minor 8 %
Avoid Using stdClass All, Analyze, OneFile, Simple, Level 4 3 3 Minor 45 %
Usort Sorting In PHP 7.0 CompatibilityPHP70, All 9 2 Major 46 %
Wrong Type For Native PHP Function All, Analyze, CI-checks 1765 229 Minor 0 %
Old Style __autoload() Analyze, OneFile, ClearPHP, All, Simple 1 1 Major 4 %
Always Anchor Regex All, Security 97 31 Major 65 %
Avoid Those Hash Functions Security, All 139 91 Major 60 %
Compare Hash Security, ClearPHP, All 2 2 Major 14 %
Configure Extract All, Security 7 4 Minor 22 %
Safe Curl Options Security, All 4 3 Major 14 %
Direct Injection Security, All 263 70 Major 41 %
Don't Echo Error All, Analyze, Security, Simple, Level 1, CI-checks 3 2 Critical 32 %
Encoded Simple Letters All, Security 11 6 Minor 40 %
Indirect Injection Security, All 19 13 Critical 21 %
Integer Conversion All, Security 83 23 Major 0 %
Keep Files Access Restricted All, Security 9 7 Minor 0 %
Mkdir Default All, Security 12 4 Major 35 %
No Net For Xml Load All, Security 53 14 Major 49 %
Avoid sleep()/usleep() Security, All 1 1 Minor 39 %
No Weak SSL Crypto All, Security 6 4 Minor 0 %
Safe HTTP Headers All, Security 1 1 Major 5 %
Set Cookie Safe Arguments All, Security 3 3 Major 23 %
Should Use Prepared Statement Analyze, Security, All, Simple, CI-checks 29 16 Major 22 %
Unserialize Second Arg Security, All 33 26 Critical 49 %
Adding Zero Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 215 17 Minor 33 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks 35 20 Major 52 %
Alternative Syntax Consistence All, Analyze 70 1 Major 20 %
Constant Comparison All, Analyze 7 3 Minor 0 %
Array_merge Needs Array Of Arrays All, Analyze 62 40 Minor 0 %
Same Variable Foreach All, Analyze, CI-checks 1 1 Minor 12 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 218 104 Minor 92 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks 224 98 Minor 76 %
Buried Assignation Analyze, All 279 91 Minor 82 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 150 45 Minor 55 %
Casting Ternary All, Analyze, OneFile, CI-checks 1 1 Major 0 %
Check All Types All, Analyze 341 129 Major 68 %
Check JSON All, Analyze, CI-checks 32 14 Major 64 %
Common Alternatives Analyze, All, Simple 275 89 Major 61 %
Concat Empty String All, Analyze, OneFile 4 4 Minor 0 %
Continue Is For Loop All, Analyze, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP73 1 1 Minor 23 %
Could Be Else All, Analyze 38 10 Minor 48 %
Could Be Static Analyze, OneFile, All, ClassReview 2 2 Major 20 %
Could Use __DIR__ Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks 46 39 Major 56 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks 173 51 Minor 60 %
Could Use str_repeat() All, Analyze, Level 1, Top10, CI-checks 1 1 Minor 12 %
Dangling Array References PHP recommendations, Analyze, ClearPHP, All, Simple, Level 1, Top10, CI-checks 17 14 Major 40 %
Dont Change The Blind Var All, Analyze 187 87 Minor 72 %
Dont Mix ++ All, Analyze 76 31 Minor 43 %
Don't Read And Write In One Expression All, Analyze, CompatibilityPHP73, CompatibilityPHP74 38 6 Critical 38 %
Double Assignation Analyze, All 50 28 Major 55 %
Double Instructions Analyze, All, Simple 252 28 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 373 124 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 70 23 Minor 58 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks 340 107 Minor 65 %
Empty Blocks Analyze, All, Simple, CI-checks 58 21 Minor 57 %
Empty Instructions Dead code, Analyze, All, Simple 4995 124 Minor 43 %
Empty Try Catch Analyze, All, Level 3 6 6 Minor 47 %
Eval() Usage Analyze, Appinfo, Performances, OneFile, ClearPHP, All, Simple, Security 28 23 Major 37 %
eval() Without Try Analyze, All, Simple, Level 3, Security, CI-checks 26 22 Critical 34 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks 104 59 Major 60 %
Switch Fallthrough All, Inventory, Security, Stats 14 9 Minor 37 %
Foreach Reference Is Not Modified Analyze, All, Simple, CI-checks 7 5 Minor 24 %
Overwritten Source And Value All, Analyze, OneFile 1 1 Minor 0 %
Global Usage Analyze, Appinfo, ClearPHP, All 41 18 Minor 52 %
Htmlentities Calls Analyze, All, Simple, CI-checks 48 19 Major 39 %
Identical Conditions Analyze, All, Simple, CI-checks 3 3 Critical 28 %
Identical Consecutive Expression All, Analyze 61 24 Minor 58 %
Identical On Both Sides All, Analyze, CI-checks 10 2 Major 19 %
If With Same Conditions Analyze, All, Simple, CI-checks 13 12 Major 44 %
Iffectations Analyze, All 243 82 Minor 80 %
Implied If Analyze, ClearPHP, All, Simple, CI-checks 105 42 Major 29 %
Implode() Arguments Order All, Analyze, CI-checks 16 12 Minor 0 %
Inconsistent Elseif All, Analyze 120 55 Major 73 %
Infinite Recursion All, Analyze 51 21 Major 0 %
Invalid Regex All, Analyze, CI-checks 36 15 Major 18 %
Is Actually Zero All, Analyze, Level 2, CI-checks 4 2 Minor 32 %
list() May Omit Variables Analyze, All, Simple, Suggestions, Level 3, CI-checks 34 16 Minor 37 %
Logical Mistakes Analyze, All, Simple, Level 1, CI-checks 13 5 Critical 31 %
Lone Blocks Analyze, All, Simple, Level 4, CI-checks 13 2 Minor 14 %
Long Arguments All, Analyze 16 12 Minor 67 %
Max Level Of Nesting All, Analyze 189 99 Minor 0 %
Mbstring Third Arg All, Analyze, CI-checks 1 1 Minor 0 %
Mbstring Unknown Encoding All, Analyze, CI-checks 3 3 Minor 0 %
Merge If Then All, Analyze, CI-checks 346 122 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 2 2 Major 62 %
Missing Cases In Switch All, Analyze 29 25 Minor 2 %
Missing New ? All, Analyze 3 3 Critical 5 %
Missing Parenthesis All, Analyze, Simple, Level 5, CI-checks 9 3 Major 14 %
Mixed Concat And Interpolation All, Coding Conventions, Analyze 32 16 Minor 43 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 45 29 Minor 56 %
Multiples Identical Case Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 15 8 Minor 10 %
Multiple Type Variable All, Analyze, Level 4 79 44 Minor 43 %
Multiply By One Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 70 14 Minor 17 %
Nested Ifthen Analyze, All, RadwellCodes 785 184 Major 87 %
Nested Ternary Analyze, ClearPHP, All, Simple, Level 1, CI-checks 60 23 Major 20 %
Next Month Trap All, Analyze, Top10, CI-checks 4 1 Major 7 %
Don't Change Incomings Analyze, All 79 15 Minor 44 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks 23 18 Major 43 %
No Direct Usage Analyze, All, Simple 24 10 Major 36 %
No Empty Regex All, Analyze, CI-checks 2 1 Critical 1 %
No Hardcoded Hash Analyze, Security, All, Simple 68 13 Critical 44 %
No Hardcoded Path Analyze, ClearPHP, All, Simple 2 2 Major 33 %
No isset() With empty() All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks 5 3 Minor 28 %
No Need For Else All, Analyze 544 138 Minor 74 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks 1099 193 Minor 61 %
Avoid Substr() One Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks 164 53 Minor 57 %
Variable Is Not A Condition All, Analyze 1063 230 Minor 57 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks 310 50 Minor 66 %
Not Equal Is Not !== All, Analyze, CI-checks 5 4 Minor 0 %
Not Not Analyze, OneFile, All, Simple, CI-checks 18 10 Minor 13 %
Objects Don't Need References Analyze, ClearPHP, OneFile, All, Simple, Level 2, Top10, CI-checks 25 20 Minor 31 %
include_once() Usage Analyze, Appinfo, All 139 59 Minor 73 %
Several Instructions On The Same Line Analyze, All 408 85 Major 57 %
Or Die Analyze, OneFile, ClearPHP, All, Simple, CI-checks 9 1 Minor 13 %
Print And Die Analyze, All, Simple, CI-checks 3 2 Minor 29 %
Printf Number Of Arguments All, Analyze, CI-checks 11 10 Minor 42 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks 32 28 Major 49 %
Repeated Regex All, Analyze, Level 1, CI-checks 17 2 Minor 47 %
Results May Be Missing Analyze, All, Simple, CI-checks 1 1 Major 18 %
Return True False Analyze, All, Simple, Level 1, CI-checks 42 23 Major 53 %
Same Conditions In Condition Analyze, All, Simple, CI-checks 31 21 Critical 49 %
Should Chain Exception Analyze, All, Simple, CI-checks 5 3 Minor 36 %
Should Make Ternary All, Analyze, OneFile, Simple, CI-checks 592 221 Minor 85 %
Preprocessable Analyze, All, Rector 1098 275 Minor 86 %
Static Loop Analyze, All, Simple, Level 4 154 62 Minor 65 %
Strpos()-like Comparison Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks 127 41 Major 54 %
Suspicious Comparison All, Analyze, Level 3 14 6 Major 15 %
Switch To Switch Analyze, All, RadwellCodes, Simple 84 44 Minor 79 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks 194 69 Major 68 %
Test Then Cast All, Analyze 12 4 Major 32 %
Timestamp Difference Analyze, All, Simple, Level 3, CI-checks 22 13 Major 50 %
Unchecked Resources Analyze, ClearPHP, All, Simple, Level 2, CI-checks 18 13 Major 49 %
Unconditional Break In Loop All, Analyze, Level 3, CI-checks 19 8 Major 46 %
Unpreprocessed Values Analyze, OneFile, ClearPHP, All, Simple 6 2 Minor 28 %
Unreachable Code Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3 258 39 Major 44 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80 1 1 Minor 0 %
Use Constant PHP recommendations, All, Analyze, php-cs-fixable, CI-checks 46 39 Minor 0 %
Avoid get_class() Analyze, All, Simple, CI-checks 2 1 Minor 32 %
Use Positive Condition All, Analyze, OneFile, Simple 311 138 Minor 81 %
Useless Brackets Analyze, All, RadwellCodes, Simple, CI-checks 13 2 Minor 14 %
Useless Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks 20 14 Minor 37 %
Useless Check All, Analyze, OneFile, Simple, Level 1, CI-checks 10 6 Minor 48 %
Useless Global Analyze, OneFile, All, Simple, Level 2 3 3 Minor 24 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 24 17 Minor 58 %
Useless Parenthesis Analyze, All, Simple, CI-checks 1310 179 Minor 81 %
Useless Switch Analyze, All, Simple 15 9 Major 30 %
Useless Unset Analyze, OneFile, ClearPHP, All, Simple, Level 2, CI-checks 6 5 Major 28 %
var_dump()... Usage Analyze, ClearPHP, Security, All, CI-checks 11 11 Critical 40 %
preg_replace With Option e Analyze, CompatibilityPHP70, Security, CompatibilityPHP71, All, Simple, CompatibilityPHP72, CI-checks 15 6 Major 8 %
No Real Comparison Analyze, All, Simple, Level 2, Top10, CI-checks 75 10 Major 22 %
One Variable String Analyze, All, RadwellCodes, Simple, CI-checks 15 7 Minor 29 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks 135 36 Minor 47 %
String May Hold A Variable Analyze, All, Simple 207 47 Minor 58 %
Strings With Strange Space All, Analyze, CI-checks 1 1 Minor 15 %
Assigned Twice All, Analyze 1683 118 Minor 78 %
Overwritten Literals Analyze, All 2141 124 Major 78 %
Php 7 Indirect Expression CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP70, All 5 3 Major 14 %
Strange Name For Variables All, Analyze 78 19 Minor 28 %
Undefined Constant Name All, Analyze 7 5 Minor 0 %
Undefined Variable All, Analyze, CI-checks 1245 163 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 89 46 Minor 87 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4 1030 316 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple 903 170 Minor 78 %