PHP Static analysis for moodle

Label Recipes Issues Files Severity Frequence
Ambiguous Array Index Analyze, All, Simple, Level 2, Semantics, ChangedBehavior 34 23 Minor 10 %
Append And Assign Arrays Analyze, Internal, All, ChangedBehavior 142 118 Minor 0 %
Multiple Index Definition Analyze, OneFile, All, Simple, Rector, CI-checks, CE 25 23 Minor 33 %
Non-constant Index In Array Analyze, All, Simple, ChangedBehavior 11 1 Minor 14 %
Null Or Boolean Arrays Analyze, All 3297 419 Minor 0 %
Randomly Sorted Arrays Analyze, All, Suggestions, Level 4 7260 861 Minor 41 %
Too Many Array Dimensions Analyze, All 970 116 Minor 0 %
Weak Type With Array Analyze, All, ChangedBehavior 21377 2283 Minor 0 %
Missing Attribute Attribute Analyze, PHP recommendations, All, Attributes, ChangedBehavior 5 5 Minor 0 %
Abstract Or Implements Analyze, All, LintButWontExec, ChangedBehavior 934 931 Major 24 %
Accessing Private Analyze, All, Simple 47 22 Major 17 %
Access Protected Structures Analyze, All, Simple, IsPHP, IsStub, IsExt 182 82 Major 17 %
Ambiguous Static Analyze, All, Semantics 12301 5306 Minor 66 %
Ambiguous Visibilities Analyze, All, Semantics, ChangedBehavior 10607 2559 Minor 70 %
Anonymous Classes Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, CE 23 20 Major 16 %
Avoid option arrays in constructors Analyze, All, ClassReview 63 59 Minor 0 %
Avoid Optional Properties Analyze, All 3618 1187 Major 84 %
Check After Null Safe Operator Analyze, All, Suggestions, ChangedBehavior 3 3 Major 0 %
Check On __Call Usage Analyze, All, CI-checks, CE 7 7 Minor 0 %
Class, Interface, Enum Or Trait With Identical Names Analyze, All 594 594 Minor 19 %
Clone With Non-Object Analyze, All, LintButWontExec 308 120 Minor 33 %
Const Visibility Usage Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, All 1169 268 Minor 24 %
Could Be Abstract Class Analyze, All, ClassReview 341 305 Minor 65 %
Class Could Be Final Analyze, All, ClassReview 13787 9012 Minor 96 %
Method Could Be Static Analyze, All, ClassReview 7023 2828 Minor 92 %
Could Inject Parameter Analyze, All, ClassReview, ChangedBehavior 3045 1062 Minor 0 %
Cyclic References Analyze, All, ClassReview 120 39 Minor 0 %
Dependant Abstract Classes Analyze, All, ClassReview 59 57 Minor 0 %
Different Argument Counts Analyze, All, ClassReview 84 74 Minor 0 %
No Direct Call To Magic Method Analyze, All, Level 2, CI-checks, CE 65 37 Major 43 %
Don't Send $this In Constructor Analyze, All 150 148 Minor 41 %
Don't Unset Properties Analyze, All, Top10, php-cs-fixable, CI-checks, CE 986 390 Major 42 %
Empty Classes Analyze, All, Simple 788 253 Minor 60 %
Final Private Methods OneFile, All, ClassReview, CompatibilityPHP80, CE 1 1 Minor 0 %
Hidden Nullable Typehint Analyze, All, ClassReview 5503 1431 Minor 0 %
Incompatible Signature Methods With Covariance Analyze, All 1156 628 Critical 0 %
Inherited Property Type Must Match Analyze, All, LintButWontExec, ClassReview 518 269 Minor 0 %
Instantiating Abstract Class Analyze, All, Simple 16 11 Major 13 %
Locally Unused Property Dead code, All, Simple, Unused 11729 833 Minor 76 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 1118 518 Minor 71 %
Make Global A Property Analyze, All, Simple 12613 3337 Minor 37 %
Method Signature Must Be Compatible Analyze, All, LintButWontExec 695 488 Critical 53 %
Mismatch Properties Typehints Analyze, All, LintButWontExec, ClassReview 885 292 Minor 0 %
Missing Abstract Method Analyze, All, ClassReview 29 13 Minor 0 %
Multiple Class Declarations Analyze, All, Simple, CI-checks, CE 42 22 Major 29 %
Multiple Identical Trait Or Interface Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior 115 103 Minor 0 %
New Object Then Immediate Call Analyze, All, ClassReview 4879 1860 Minor 0 %
No Null With Null Safe Operator Analyze, All, ClassReview, ChangedBehavior 12 6 Minor 0 %
self, parent, static Outside Class Analyze, All, LintButWontExec, ChangedBehavior 17 13 Major 8 %
Class Without Parent Analyze, All, ClassReview, CI-checks, CE, ChangedBehavior 1 1 Minor 0 %
No Public Access Analyze, All 7945 376 Minor 61 %
No Readonly Assignation In Global Analyze, All, ClassReview, ChangedBehavior 46 5 Minor 0 %
Non Nullable Getters Analyze, All, ClassReview 73 60 Minor 0 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 5486 510 Minor 42 %
Non Static Methods Called In A Static Analyze, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt 9 4 Minor 20 %
Var Keyword Analyze, OneFile, ClearPHP, All, Simple, Level 1 1719 175 Minor 4 %
Parent First Analyze, All, Suggestions 469 381 Minor 56 %
Property Could Be Local Analyze, All, ClassReview 1413 585 Minor 76 %
Same Name For Property And Method Analyze, All, ClassReview, Semantics 704 181 Minor 0 %
Never Used Properties Analyze, All, Simple, Unused 6070 412 Minor 71 %
Property Used In One Method Only Analyze, All 3722 1325 Minor 84 %
Parent, Static Or Self Outside Class Analyze, All, Simple, ChangedBehavior 646 2 Major 21 %
Scalar Or Object Property Analyze, All 53 40 Minor 32 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 1751 517 Minor 63 %
Should Use Local Class Analyze, ClearPHP, All, Simple 11365 3361 Minor 95 %
Static Methods Called From Object Analyze, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt 19907 1197 Minor 50 %
Swapped Arguments Analyze, All 4 4 Critical 0 %
$this Belongs To Classes Or Traits Analyze, All, Simple, LintButWontExec, ChangedBehavior 5852 5 Major 32 %
$this Is Not An Array Analyze, All, ChangedBehavior 2 1 Major 2 %
Throw In Destruct Analyze, PHP recommendations, All, Simple, CI-checks, CE 1 1 Major 1 %
Too Many Dereferencing Analyze, All, ChangedBehavior 45 14 Minor 0 %
Too Many Finds Analyze, All, ChangedBehavior 1 1 Minor 7 %
Too Many Injections Analyze, All, Dismell, ChangedBehavior 15 15 Minor 19 %
Wrong Access Style to Property Analyze, All, Level 2, ClassReview, CI-checks, CE 269 82 Critical 37 %
Undefined Classes Analyze, All, Stubs, Undefined 101322 6380 Major 91 %
Undefined Class Constants Analyze, All, LintButWontExec, CI-checks, CE, Stubs, ChangedBehavior, Undefined 540 96 Major 62 %
Undefined Parent Analyze, All, Simple, Undefined 157 132 Minor 45 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, CE, CompatibilityPHP82, ChangedBehavior, Undefined 49496 3127 Major 61 %
Undefined static:: Or self:: Analyze, All, Simple, ChangedBehavior, Undefined 152 33 Minor 35 %
Undefined ::class Analyze, All, CI-checks, CE, ChangedBehavior, Undefined 42 18 Major 36 %
Unfinished Object Analyze, All, ClassReview 2616 908 Major 0 %
Unreachable Method Analyze, Dead code, All, ClassReview, Unused, ChangedBehavior 182 96 Minor 0 %
Unresolved Catch Dead code, ClearPHP, All, ChangedBehavior 80 28 Major 52 %
Unresolved Classes Analyze, All, Stubs, ChangedBehavior 585 112 Major 76 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10, ChangedBehavior 11 8 Major 48 %
Unused Classes Analyze, Dead code, All, Simple, Unused, ChangedBehavior 801 655 Major 67 %
Unused Class Constant Analyze, All, ClassReview, Unused, ChangedBehavior 781 192 Minor 0 %
Unused Methods Dead code, All, Simple, Unused, ChangedBehavior 62294 6617 Minor 96 %
Unused Private Methods Dead code, OneFile, All, Simple, Unused, ChangedBehavior 95 48 Minor 50 %
Unused Private Properties Dead code, OneFile, All, Simple, Unused 81 63 Minor 51 %
Unused Protected Methods Dead code, All, Unused, ChangedBehavior 3134 1426 Major 68 %
Unused Public Methods Analyze, All, ChangedBehavior 41091 4894 Minor 0 %
Use ::Class Operator Analyze, Performances, All, Simple, CI-checks, CE, ChangedBehavior 19440 3200 Minor 71 %
Use Instanceof Analyze, All, Simple, CI-checks, CE, ChangedBehavior 664 317 Major 63 %
Used Once Property Analyze, All, ChangedBehavior 298 194 Minor 74 %
Useless Abstract Class Analyze, All, Simple, ChangedBehavior 93 77 Minor 33 %
Useless Constructor Analyze, All, Simple, Level 3, ChangedBehavior 68 67 Minor 41 %
Useless Method Analyze, All 72 45 Minor 0 %
Weak Typing Analyze, All, ChangedBehavior 418 235 Minor 47 %
Illegal Name For Method Analyze, OneFile, All, Simple 22 8 Major 20 %
Wrong Typed Property Default Analyze, All, LintButWontExec, ClassReview, CI-checks, CE 620 419 Minor 0 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks, CE 1971 405 Minor 54 %
Multiple Constant Definition Analyze, All, Simple, CI-checks, CE, ChangedBehavior 459 232 Minor 41 %
Undefined Constants stubs 984 64 Minor 71 %
Unused Constants Dead code, All, Simple, Unused, ChangedBehavior 202 44 Minor 39 %
Could Be A Constant All, Dump 16880 3672 Minor 0 %
Unused Enumeration Case Analyze, Dead code, All, Unused 28 1 Minor 0 %
Can't Throw Throwable Analyze, All, LintButWontExec, ChangedBehavior 9 9 Minor 14 %
Catch With Undefined Variable Analyze, All, ChangedBehavior, Undefined 61 29 Minor 0 %
Undefined Caught Exceptions Dead code, All, ChangedBehavior 63 26 None 53 %
Caught Exceptions All, Dump, ChangedBehavior 2172 724 None 100 %
Converted Exceptions Analyze, All 173 94 Minor 0 %
Could Drop Variable Dead code, All, Suggestions, ChangedBehavior 244 97 Minor 0 %
Forgotten Thrown Analyze, All, ChangedBehavior 64 29 Minor 20 %
Multiple Exceptions Catch() Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, All, CE, ChangedBehavior 2 2 Major 10 %
Overwritten Exceptions Analyze, All, Simple, Suggestions, Level 4, CI-checks, CE, ChangedBehavior 11 8 Minor 22 %
Rethrown Exceptions Dead code, All, ChangedBehavior 7 7 Minor 20 %
Throw Functioncall Analyze, All, Simple, Level 1, CI-checks, CE, ChangedBehavior 2 1 Major 4 %
Throw Raw Exceptions Analyze, All, Suggestions 765 265 Minor 0 %
Try Without Catch All, Dump, ChangedBehavior 109 18 Minor 0 %
Uncaught Exceptions Analyze, All, ChangedBehavior 1568 440 Minor 84 %
Unthrown Exception Analyze, Dead code, ClearPHP, All, Simple, ChangedBehavior 396 395 Minor 45 %
Useless Catch Analyze, All, CI-checks, CE, ChangedBehavior 105 71 Minor 44 %
Useless Try Analyze, All, ChangedBehavior 844 306 Minor 0 %
ext/mcrypt Appinfo, CompatibilityPHP71, All, CE 19 2 Major 15 %
Missing Include Analyze, All 1129 1064 Critical 65 %
Native Alias Functions Usage Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE, ChangedBehavior 470 226 Minor 20 %
Use Named Boolean In Argument Definition Analyze, All, ChangedBehavior 4031 1580 Minor 84 %
Callback Function Needs Return Analyze, All, CI-checks, CE 54 36 Major 42 %
Can't Call Generator Analyze, All 26 14 Minor 0 %
Cancelled Parameter Analyze, All, ChangedBehavior 35 23 Minor 0 %
Could Make A Function Analyze, All, Suggestions, ChangedBehavior 54303 9683 Minor 66 %
Deep Definitions Analyze, Appinfo, All, Simple, CE 37 20 Major 13 %
Don't Collect Void Analyze, All, IsPHP, IsStub, IsExt 13850 2104 Minor 0 %
Empty Function Analyze, All, Simple 1108 562 Minor 74 %
Fn Argument Variable Confusion Analyze, All, Semantics 8 5 Minor 0 %
Hardcoded Passwords Analyze, Security, OneFile, All, Simple, Level 3 20267 1316 Major 70 %
Insufficient Typehint Analyze, All, Typechecks 553 298 Major 43 %
Method Is Not An If Analyze, All 1494 873 Minor 0 %
Mismatch Parameter Name Analyze, All, CompatibilityPHP80, CE, ChangedBehavior 485 305 Minor 0 %
Mismatch Type And Default Analyze, All, LintButWontExec, Typechecks, ChangedBehavior 5 5 Critical 8 %
Mismatched Default Arguments Analyze, All, Typechecks 1944 743 Minor 80 %
Mismatched Typehint Analyze, All, Typechecks 2511 943 Major 66 %
Modified Typed Parameter Analyze, All, ClassReview 341 226 Minor 0 %
Must Return Methods Analyze, All, Simple, Level 2, LintButWontExec, CI-checks, CE, ChangedBehavior 30 25 Major 34 %
Never Called Parameter Analyze, All, Suggestions, Rector, Unused 1352 782 Minor 92 %
No Boolean As Default Analyze, All 3426 1303 Minor 84 %
No Default For Referenced Parameter Analyze, All 34 26 Minor 0 %
No Literal For Reference Analyze, All, CI-checks, CE, ChangedBehavior 46 11 Minor 0 %
No Return Used Analyze, All, Suggestions, Level 4 594 240 Minor 69 %
Only Variable For Reference Analyze, All, LintButWontExec 44 9 Critical 20 %
Only Variable Passed By Reference Analyze, All, IsPHP, IsStub, IsExt 17 13 Critical 43 %
Redeclared PHP Functions Analyze, Appinfo, All, Simple, CI-checks, CE 1 1 Minor 26 %
Relay Function Analyze, All 1579 754 Major 84 %
Retyped Reference Analyze, All, Typehints 39 28 Major 0 %
Should Use Existing Constants Analyze, All, Simple 8 3 Minor 32 %
Too Many Local Variables Analyze, All 1920 1001 Minor 64 %
Type Must Be Returned Analyze, All, LintButWontExec, CI-checks, CE, ChangedBehavior 9 6 Major 22 %
Class-typed References Analyze, All, CI-checks, CE 169 57 Minor 37 %
Undefined Functions stubs 744 68 Major 68 %
Unknown Parameter Name Analyze, All, CI-checks, CE 305 38 Minor 0 %
Unused Parameter Analyze, All, Simple, Unused 2698 1071 Major 90 %
Unused Functions Dead code, All, Simple, Unused 1784 475 Minor 52 %
Unused Inherited Variable In Closure Analyze, Dead code, All, CI-checks, CE, Unused 16 13 Major 23 %
Unused Returned Value Analyze, Dead code, OneFile, All, Simple, Unused 19861 3238 Minor 41 %
Use Constant As Arguments Analyze, All, Simple, CI-checks, CE 66 32 Major 30 %
Useless Argument Analyze, All 7313 2672 Minor 0 %
Useless Referenced Argument Analyze, All, ChangedBehavior 666 366 Minor 58 %
Useless Return Analyze, OneFile, All, Simple, Level 4 53 49 Minor 30 %
Useless Type Check Dead code, OneFile, All 10 7 Minor 0 %
Uses Default Values Analyze, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt 41630 4867 Minor 98 %
Using Deprecated Method Analyze, All, Attributes 1661 565 Minor 0 %
Methods Without Return Analyze, All 21 13 Minor 95 %
Wrong Argument Type Analyze, All, Typechecks 80031 6785 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, CE, Stubs, IsPHP, IsStub, IsExt 1961 1013 Major 81 %
Wrong Optional Parameter Analyze, All, Simple, Level 1, CompatibilityPHP80, CI-checks, CE, ChangedBehavior 1 1 Minor 32 %
Wrong Type Returned Analyze, All, LintButWontExec, ClassReview, CI-checks, CE 21602 5112 Minor 0 %
Wrong Type With Call Analyze, All, Typechecks, CI-checks, CE 121771 7887 Minor 0 %
Already Parents Interface Analyze, All, Suggestions, Level 3, ChangedBehavior 108 96 Minor 26 %
Forgotten Interface Analyze, All, ChangedBehavior 943 622 Minor 48 %
Empty Interfaces Analyze, All, Simple, ChangedBehavior 53 26 Minor 41 %
Interfaces Is Not Implemented Analyze, All, LintButWontExec, ClassReview, CI-checks, CE, ChangedBehavior 940 936 Minor 0 %
Interfaces Don't Ensure Properties Analyze, All, ClassReview, ChangedBehavior 62 15 Minor 0 %
Repeated Interface Analyze, All, LintButWontExec, ChangedBehavior 110 98 Minor 0 %
Undefined Interfaces Analyze, All, LintButWontExec, CI-checks, CE, ChangedBehavior, Undefined 318 109 Major 72 %
Unused Interfaces Dead code, All, Simple, Suggestions, Level 2, Unused, ChangedBehavior 2 2 Minor 26 %
Useless Interfaces Analyze, ClearPHP, All, Simple, ClassReview, Typechecks, ChangedBehavior 109 84 Minor 59 %
Hidden Use Expression Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior 3216 791 Minor 23 %
Multiple Alias Definitions Per File Analyze, All, CI-checks, CE, ChangedBehavior 8 4 Minor 7 %
Multiple Alias Definitions Analyze, All, Simple, CI-checks, CE, ChangedBehavior 4349 2472 Minor 44 %
No Keyword In Namespace CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, ChangedBehavior 18 18 Minor 0 %
Should Make Alias Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior 1497 482 Minor 46 %
Unresolved Use Analyze, ClearPHP, All, Simple, ChangedBehavior 418 200 Major 69 %
Unused Use Dead code, ClearPHP, All, Simple, php-cs-fixable, Unused, ChangedBehavior 1243 809 Major 60 %
Use With Fully Qualified Name Analyze, Coding Conventions, PHP recommendations, All, Simple, ChangedBehavior 434 166 Minor 18 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE, ChangedBehavior 278 190 Major 57 %
Logical To in_array Analyze, All, Level 2, ChangedBehavior 926 379 Minor 67 %
Memoize MagicCall Analyze, All, ClassReview, ChangedBehavior 449 298 Minor 0 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, CE, ChangedBehavior 3191 1047 Minor 74 %
strpos() Too Much Analyze, All, CI-checks, CE, ChangedBehavior 327 191 Minor 49 %
Use array_slice() Analyze, All, CI-checks, CE, ChangedBehavior 12 4 Minor 0 %
array_key_exists() Works On Arrays Analyze, All, CompatibilityPHP74, CE, ChangedBehavior 828 384 Minor 0 %
Assign And Lettered Logical Operator Precedence Analyze, All, CI-checks, CE 17 15 Critical 9 %
Assumptions Analyze, All, ChangedBehavior 1191 611 Minor 0 %
Avoid get_object_vars() All, CompatibilityPHP74, CompatibilityPHP80, ChangedBehavior 52 46 Minor 0 %
Avoid mb_dectect_encoding() Analyze, All, ChangedBehavior 6 5 Minor 0 %
Use random_int() Analyze, Security, CompatibilityPHP71, All, Simple, Level 2, CI-checks, CE, ChangedBehavior 345 175 Major 59 %
Clone Constant Analyze, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, LintButWontExec, CompatibilityPHP74, CompatibilityPHP80 1 1 Minor 0 %
Comparison On Different Types All, Dump, ChangedBehavior 16 14 Minor 0 %
Concat And Addition Analyze, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, Top10, CompatibilityPHP80, CI-checks, CE, ChangedBehavior 1 1 Minor 0 %
Constant Scalar Expression Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, ChangedBehavior 8965 2604 Major 0 %
Crc32() Might Be Negative Analyze, PHP recommendations, All, ChangedBehavior 3 1 Major 4 %
Deprecated PHP Functions Analyze, All, CI-checks, CE 5 4 Major 23 %
Don't Pollute Global Space Analyze, All 15152 3418 Minor 0 %
Enum Usage CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CompatibilityPHP80 7 7 None 0 %
Exit Without Argument Analyze, All, ChangedBehavior 978 736 Minor 0 %
False To Array Conversion Analyze, All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82 7754 449 Minor 0 %
Final Constant Appinfo, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CompatibilityPHP80, ChangedBehavior 10 1 Major 0 %
Wrong fopen() Mode Analyze, All, CI-checks, CE, ChangedBehavior 3 3 Major 17 %
Group Use Declaration Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, CE, ChangedBehavior 73 51 Minor 5 %
Hash Algorithms Analyze, All, Level 4 1 1 Major 0 %
idn_to_ascii() New Default All, CompatibilityPHP74, CE 2 2 Minor 2 %
Include Variables All, Dump 13 12 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior 103 59 Major 76 %
Is_A() With String Analyze, All, Simple, Rector, CI-checks, CE, ChangedBehavior 3 3 Minor 0 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, CE, ChangedBehavior 2094 687 Minor 53 %
PHP Native Interfaces and Return Type Analyze, All, LintButWontExec, CompatibilityPHP81, Deprecated, ChangedBehavior 43 32 Minor 0 %
List Short Syntax Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Internal, CompatibilityPHP53, CompatibilityPHP70, All, CE, ChangedBehavior 1292 490 Major 17 %
List With Keys Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Appcontent, CompatibilityPHP53, CompatibilityPHP70, All, CE, ChangedBehavior 462 280 Major 34 %
Logical Should Use Symbolic Operators Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks, CE 4257 758 Minor 43 %
Missing __isset() Method Analyze, All, ClassReview, ChangedBehavior 4 3 Minor 0 %
Possible Missing Subpattern Analyze, All, Top10, CI-checks, CE, ChangedBehavior 63 45 Minor 45 %
Named Parameter Usage Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74 387 74 Minor 0 %
PHP Native Class Type Compatibility Analyze, All, CompatibilityPHP81, ChangedBehavior 255 89 Major 0 %
New Initializers Appinfo, All, CompatibilityPHP73, CompatibilityPHP74, CompatibilityPHP80 8 7 Minor 0 %
Do Not Cast To Int Analyze, PHP recommendations, All, ChangedBehavior 14 10 Minor 0 %
No Class In Global Analyze, All, CI-checks, CE, ChangedBehavior 11900 3202 Minor 77 %
No Null For Native PHP Functions Analyze, All, CompatibilityPHP81, Deprecated, ChangedBehavior 444 203 Minor 0 %
No Reference For Ternary Analyze, All, CI-checks, CE 4 4 Major 14 %
Only Variable Passed By Reference Analyze, All, LintButWontExec, ChangedBehavior 16 10 Minor 0 %
Openssl Encrypt Default Algorithm Change All, CompatibilityPHP81, ChangedBehavior 1 1 Minor 0 %
PHP 8.0 Typehints CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, ChangedBehavior 114 46 Minor 0 %
New Constants In PHP 7.4 All, CompatibilityPHP74, CE 1 1 Major 0 %
mb_strrpos() Third Argument All, CompatibilityPHP74, CE, ChangedBehavior 1 1 Minor 0 %
Php7 Relaxed Keyword Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, CE 110 70 Major 28 %
PHP 80 Named Parameter Variadic All, CompatibilityPHP80, CE 4 2 Minor 0 %
Php 8.0 Only TypeHints Appinfo, CompatibilityPHP56, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CE, ChangedBehavior 1765 738 Minor 0 %
PHP 8.0 Removed Directives All, CompatibilityPHP80, CE, CompatibilityPHP81 4 4 Minor 0 %
PHP 8.0 Resources Turned Into Objects All, CompatibilityPHP80, CE 1 1 Major 0 %
Union Typehint Appinfo, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CE 124 72 Minor 0 %
PHP 8.1 Removed Directives All, CompatibilityPHP81 1 1 Minor 0 %
Scalar Are Not Arrays Analyze, All, CompatibilityPHP74, CI-checks, CE, ChangedBehavior 7832 479 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 806 315 Major 71 %
Signature Trailing Comma CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CE 70 70 Minor 0 %
String Int Comparison All, CompatibilityPHP80, ChangedBehavior 1913 804 Minor 0 %
Strtr Arguments Analyze, All, CI-checks, CE 1 1 Major 7 %
Too Many Native Calls Analyze, All, IsPHP, IsExt 101 34 Minor 49 %
Trailing Comma In Calls Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CE 502 157 Minor 1 %
Typed Property Usage Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CE 21177 2898 Minor 6 %
Unknown Pcre2 Option Analyze, All, CompatibilityPHP73 11 4 Minor 17 %
Use Enum Case In Constant Expression Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CompatibilityPHP80, CompatibilityPHP81 3 2 Minor 0 %
Uses PHP 8 Match() All, CompatibilityPHP74, CE 8 7 None 0 %
Use Nullable Type Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, All, CE 5360 1770 Major 90 %
Use PHP Object API Analyze, ClearPHP, All, Simple, CI-checks, CE 44 14 Minor 27 %
Use Pathinfo Analyze, All, Simple, Level 3, CI-checks, CE 1 1 Minor 11 %
Avoid Using stdClass Analyze, OneFile, All, Simple, Level 4 6734 1959 Minor 46 %
Wrong Type For Native PHP Function Analyze, All, CI-checks, CE 3710 1248 Minor 0 %
Always Anchor Regex Security, All 627 225 Major 65 %
Avoid Those Hash Functions Security, All 549 301 Major 62 %
Compare Hash Security, ClearPHP, All 13 13 Major 16 %
Configure Extract Security, All 1 1 Minor 25 %
Check Crypto Key Length Security, All 2 2 Minor 0 %
Safe Curl Options Security, All, ChangedBehavior 11 4 Major 15 %
Direct Injection Security, All, ChangedBehavior 86 45 Major 51 %
Don't Echo Error Analyze, Security, All, Simple, Level 1, CI-checks, CE, ChangedBehavior 21 17 Critical 35 %
Dynamic Library Loading Security, All, ChangedBehavior 3 2 Major 4 %
Encoded Simple Letters Security, All, ChangedBehavior 160 57 Minor 41 %
filter_input() As A Source Security, All, ChangedBehavior 2 2 Minor 7 %
Filter Not Raw Security, All, ChangedBehavior 1 1 Minor 0 %
Incompatible Types With Incoming Values Security, All, ChangedBehavior 36 19 Minor 0 %
Indirect Injection Security, All, ChangedBehavior 61 31 Critical 42 %
Insecure Integer Validation Security, All, ChangedBehavior 1 1 Major 0 %
Keep Files Access Restricted Security, All, ChangedBehavior 12 10 Minor 0 %
Mkdir Default Security, All, ChangedBehavior 11 10 Major 37 %
move_uploaded_file Instead Of copy Security, All, ChangedBehavior 2 2 Major 3 %
No Net For Xml Load Security, All, ChangedBehavior 81 54 Major 51 %
Avoid sleep()/usleep() Security, All, ChangedBehavior 90 47 Minor 41 %
No Weak SSL Crypto Security, All, ChangedBehavior 11 8 Minor 0 %
Register Globals Security, All, ChangedBehavior 1 1 Critical 4 %
Safe HTTP Headers Security, All, ChangedBehavior 8 7 Major 5 %
Session Lazy Write Security, All, ChangedBehavior 4 4 Major 4 %
Set Cookie Safe Arguments Security, All, ChangedBehavior 6 5 Major 25 %
Should Use Prepared Statement Analyze, Security, All, Simple, CI-checks, CE, ChangedBehavior 64 15 Major 28 %
Unserialize Second Arg Security, All 112 62 Critical 50 %
Adding Zero Dump 74 49 Minor 69 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 278 187 Major 56 %
Comparison Is Always The Same Analyze, All, ChangedBehavior 1626 660 Minor 0 %
Array_Fill() With Objects Analyze, All 3 2 Minor 0 %
Assign And Compare Analyze, All, CI-checks, CE 9 9 Minor 18 %
Same Variable Foreach Analyze, All, CI-checks, CE 3 3 Minor 16 %
Bail Out Early Analyze, OneFile, All, Simple, Level 4 4877 2092 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 2735 1032 Minor 77 %
Buried Assignation Analyze, All 2875 1114 Minor 84 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 371 225 Minor 56 %
Casting Ternary Analyze, OneFile, All, CI-checks, CE 24 10 Major 0 %
Catch Overwrite Variable Analyze, ClearPHP, All, Simple 12 11 Minor 25 %
Check All Types Analyze, All 720 367 Major 69 %
Check Division By Zero Analyze, All, ChangedBehavior 952 271 Minor 0 %
Check JSON Analyze, All, CI-checks, CE 1282 514 Major 65 %
Coalesce And Concat Analyze, All, CI-checks, CE 3 3 Minor 0 %
Coalesce And Ternary Operators Order Analyze, All, ChangedBehavior 1 1 Minor 0 %
Common Alternatives Analyze, All, Simple 574 288 Major 80 %
Concat Empty String Analyze, OneFile, All 66 34 Minor 0 %
Could Be Else Analyze, All 139 119 Minor 49 %
Could Be Spaceship Analyze, All, Suggestions 5 5 Minor 0 %
Could Be A Static Variable Analyze, OneFile, All, ClassReview, ChangedBehavior 14 12 Major 23 %
Could Use __DIR__ Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks, CE 85 65 Major 56 %
Could Use Short Assignation Analyze, Performances, OneFile, All, Simple, Rector, CI-checks, CE, ChangedBehavior 540 263 Minor 63 %
Could Use str_repeat() Analyze, All, Level 1, Top10, CI-checks, CE 9 5 Minor 14 %
Could Use Yield From Analyze, Performances, All, ChangedBehavior 5 4 Minor 0 %
Count() Is Not Negative Analyze, All, ChangedBehavior 5 5 Minor 0 %
Dangling Array References Analyze, PHP recommendations, ClearPHP, All, Simple, Level 1, Top10, CI-checks, CE 72 46 Major 46 %
Default Then Discard Analyze, All, Readability 22 19 Minor 0 %
__DIR__ Then Slash Analyze, All, Level 3, CI-checks, CE, ChangedBehavior 3 3 Major 14 %
Don't Change The Blind Var Analyze, All 737 444 Minor 73 %
Don't Mix ++ Analyze, All 278 128 Minor 56 %
Don't Read And Write In One Expression Analyze, All, CompatibilityPHP73, CompatibilityPHP74, CE 80 37 Critical 38 %
Don't Reuse Foreach Source Analyze, All 10 9 Minor 0 %
Double Assignation Analyze, All 521 278 Major 59 %
Double Checks Analyze, All 603 242 Minor 0 %
Double Instructions Analyze, All, Simple 783 253 Minor 57 %
Double Object Assignation Analyze, All, ClassReview, ChangedBehavior 13 9 Minor 0 %
Drop Else After Return Analyze, OneFile, All, Simple, Suggestions, Level 4, CI-checks, CE 1234 618 Minor 70 %
Echo With Concat Analyze, Performances, All, Simple, Suggestions 1069 256 Minor 60 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE 5618 1670 Minor 66 %
Empty Blocks Analyze, All, Simple, CI-checks, CE 314 153 Minor 51 %
Empty Json Error Analyze, All, ChangedBehavior 11 9 Minor 0 %
Empty Loop Analyze, All, ChangedBehavior 9 7 Major 0 %
Empty Try Catch Analyze, All, Level 3 141 72 Minor 49 %
Eval() Usage Analyze, Appinfo, Security, Performances, PHP recommendations, OneFile, ClearPHP, All, Simple, CE 27 20 Major 39 %
eval() Without Try Analyze, Security, All, Simple, Level 3, CI-checks, CE, ChangedBehavior 21 17 Critical 36 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 7347 6704 Major 61 %
Switch Fallthrough Inventory, Security, All, Stats 41 32 Minor 39 %
Foreach Reference Is Not Modified Analyze, All, Simple, CI-checks, CE 47 16 Minor 24 %
Overwritten Source And Value Analyze, OneFile, All 8 7 Minor 0 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 21263 4194 Minor 52 %
Htmlentities Calls Analyze, All, Simple, CI-checks, CE 176 85 Major 40 %
Htmlentities Using Default Flag Analyze, All, Simple, CI-checks, ChangedBehavior 99 42 Minor 0 %
Identical Case In Switch Analyze, All, ChangedBehavior 1671 174 Minor 0 %
Identical Conditions Analyze, All, Simple, CI-checks, CE 24 20 Critical 28 %
Identical Consecutive Expression Analyze, All 3507 630 Minor 59 %
Identical Elseif Dead code, All 2 2 Minor 0 %
Identical On Both Sides Analyze, All, CI-checks, CE 11 10 Major 19 %
Identical Variables In Foreach Analyze, OneFile, All 4 4 Minor 0 %
If With Same Conditions Analyze, All, Simple, CI-checks, CE 195 129 Major 47 %
Iffectations Analyze, All 5182 1605 Minor 80 %
Implicit Conversion To Int Analyze, All, LintButWontExec 39 20 Minor 0 %
Implied If Analyze, ClearPHP, All, Simple, Rector, CI-checks, CE 6375 6317 Major 33 %
Implode() Arguments Order Analyze, All, CI-checks, CE, ChangedBehavior 64 59 Minor 0 %
Indices Are Int Or String Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior 917 280 Major 20 %
Infinite Recursion Analyze, All 58 44 Major 0 %
Invalid Date Scanning Format Analyze, All 3 1 Major 0 %
Invalid Pack Format Analyze, All, CI-checks, CE, ChangedBehavior 1 1 Major 0 %
Invalid Regex Analyze, All, CI-checks, CE, ChangedBehavior 45 21 Major 37 %
Is Actually Zero Analyze, All, Level 2, CI-checks, CE, ChangedBehavior 7 3 Minor 18 %
list() May Omit Variables Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 1614 298 Minor 37 %
Logical Mistakes Analyze, All, Simple, Level 1, CI-checks, CE 15 14 Critical 32 %
Lone Blocks Analyze, All, Simple, Level 4, CI-checks, CE, ChangedBehavior 690 18 Minor 15 %
Long Arguments Analyze, All 841 390 Minor 68 %
Max Level Of Nesting Analyze, All 1055 592 Minor 0 %
Merge If Then Analyze, All, CI-checks, CE, ChangedBehavior 2857 1180 Minor 0 %
Mismatched Ternary Alternatives Analyze, All, Suggestions, Level 4 83 59 Major 64 %
Missing Assignation In Branches Analyze, All, ChangedBehavior 7497 2158 Minor 0 %
Missing Cases In Switch Analyze, All 148 101 Minor 36 %
Maybe Missing New Analyze, All, ChangedBehavior 3261 5 Critical 57 %
Missing Parenthesis Analyze, All, Simple, Level 5, CI-checks, CE, ChangedBehavior 9 5 Major 16 %
Misused Yield Analyze, All, ChangedBehavior 3 2 Minor 0 %
Mixed Concat And Interpolation Analyze, Coding Conventions, All 305 166 Minor 45 %
Modernize Empty With Expression Analyze, OneFile, All, Simple 1809 776 Minor 63 %
Multiples Identical Case Analyze, OneFile, ClearPHP, All, Simple, Level 1, Rector, CI-checks, CE 282 187 Minor 29 %
Multiple Type Cases In Switch All, CompatibilityPHP80 22 12 Minor 0 %
Multiple Type Variable Analyze, All, Level 4 353 242 Minor 58 %
Multiply By One Dump, Dum p 87 29 Minor 44 %
Nested Ifthen Analyze, All, RadwellCodes 7229 1797 Major 84 %
Nested Ternary Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 57 45 Major 50 %
Next Month Trap Analyze, All, Top10, CI-checks, CE 24 5 Major 8 %
Don't Change Incomings Analyze, All 377 60 Minor 44 %
No Choice Analyze, All, Simple, Level 2, Top10, Rector, CI-checks, CE, ChangedBehavior 360 207 Major 42 %
No Direct Usage Analyze, All, Simple 41 27 Major 39 %
No Hardcoded Hash Analyze, Security, All, Simple 778 217 Critical 45 %
No Hardcoded Ip Analyze, Security, ClearPHP, All, Simple 174 14 Minor 25 %
No Hardcoded Path Analyze, ClearPHP, All, Simple 4 3 Major 35 %
No Hardcoded Port Analyze, Security, ClearPHP, All, Simple 1 1 Minor 12 %
No isset() With empty() Analyze, PHP recommendations, OneFile, All, RadwellCodes, Simple, Level 4, CI-checks, CE 53 42 Minor 30 %
No Max On Empty Array All, CompatibilityPHP80, ChangedBehavior 320 118 Minor 0 %
No Need For Else Analyze, All 1442 696 Minor 74 %
No Need For Triple Equal Analyze, All 114 70 Minor 0 %
No Null For Index Analyze, All, ChangedBehavior 173 104 Minor 0 %
No Object As Index Analyze, All 2 2 Minor 0 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE, ChangedBehavior 9016 3929 Minor 62 %
No Return Or Throw In Finally Security, All 1 1 Major 1 %
Avoid Substr() One Analyze, Performances, CompatibilityPHP71, All, Simple, Suggestions, Level 2, Top10, CI-checks, CE 373 176 Minor 58 %
No Valid Cast Analyze, All 18 9 Minor 0 %
Variable Is Not A Condition Analyze, All 14738 3255 Minor 93 %
Non Integer Nor String As Index Analyze, All, ChangedBehavior 304 98 Minor 0 %
@ Operator Analyze, Appinfo, Performances, ClearPHP, All, CI-checks, CE 1169 303 Minor 65 %
Not Equal Is Not !== Analyze, All, CI-checks, CE 13 12 Minor 0 %
Not Not Analyze, OneFile, All, Simple, CI-checks, CE 24 15 Minor 14 %
Objects Don't Need References Analyze, OneFile, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 298 76 Minor 40 %
include_once() Usage Analyze, Appinfo, All, CE 8604 3830 Minor 73 %
Several Instructions On The Same Line Analyze, All, ChangedBehavior 169 76 Major 56 %
Only First Byte Analyze, All, ChangedBehavior 2 1 Minor 0 %
Only Variable Returned By Reference Analyze, All, Simple 7 4 Major 3 %
Or Die Analyze, OneFile, ClearPHP, All, Simple, CI-checks, CE 1 1 Minor 13 %
Overwritten Foreach Var Analyze, OneFile, All 24 23 Major 0 %
PHP7 Dirname CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, Suggestions, php-cs-fixable 1053 828 Minor 44 %
Phpinfo Security, OneFile, All, Simple 1 1 Major 16 %
Print And Die Analyze, All, Simple, CI-checks, CE 408 239 Minor 32 %
Avoid Parenthesis With Language Construct Analyze, All, Simple, CI-checks, CE 114 5 Minor 11 %
Printf Number Of Arguments Analyze, All, CI-checks, CE 9 4 Minor 41 %
Queries In Loops Analyze, OneFile, All, Simple, Level 1, Top10 6 4 Major 8 %
Random Without Try Security, All 67 46 Critical 30 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, CE, ChangedBehavior 1575 678 Major 50 %
Repeated Regex Analyze, All, Level 1, CI-checks, CE 746 308 Minor 47 %
Results May Be Missing Analyze, All, Simple, CI-checks, CE 15 12 Major 24 %
Return True False Analyze, All, Simple, Level 1, CI-checks, CE 351 232 Major 46 %
Same Conditions In Condition Analyze, All, Simple, CI-checks, CE 132 105 Critical 55 %
Should Chain Exception Analyze, All, Simple, CI-checks, CE 141 76 Minor 39 %
Should Use Ternary Operator Analyze, OneFile, All, Simple, CI-checks, CE 4802 1755 Minor 86 %
Preprocessable Analyze, All, Rector 19924 7497 Minor 85 %
Should Use Explode Args Analyze, All, CI-checks, CE 11 11 Minor 0 %
Static Inclusions Analyze, All 2443 1694 Minor 0 %
Static Loop Analyze, All, Simple, Level 4 427 234 Minor 67 %
strip_tags() Skips Closed Tag Analyze, All, CI-checks, CE 1 1 Minor 0 %
Strpos()-like Comparison Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 190 114 Major 54 %
Suspicious Comparison Analyze, All, Level 3 478 190 Major 39 %
Switch To Switch Analyze, All, RadwellCodes, Simple 546 225 Minor 58 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 729 430 Major 69 %
Ternary In Concat Analyze, All, Simple, Level 3, CI-checks, CE 1 1 Critical 8 %
Test Then Cast Analyze, All 36 29 Major 34 %
Timestamp Difference Analyze, All, Simple, Level 3, CI-checks, CE 1124 389 Major 49 %
Unchecked Resources Analyze, ClearPHP, All, Simple, Level 2, CI-checks, CE 61 48 Major 50 %
Unconditional Break In Loop Analyze, All, Level 3, CI-checks, CE 71 47 Major 48 %
Unkown Regex Options Analyze, All, Simple, CE 1 1 Major 0 %
Unpreprocessed Values Analyze, Performances, OneFile, ClearPHP, All, Simple 98 21 Minor 30 %
Unreachable Code Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3, Unused, ChangedBehavior 1472 644 Major 61 %
Unset In Foreach Analyze, Dead code, OneFile, All, Simple 4 4 Major 15 %
Unsupported Operand Types Analyze, PHP recommendations, All 5 3 Minor 0 %
Unsupported Types With Operators Analyze, All, CompatibilityPHP80, CE 1623 809 Minor 0 %
Unused Global Analyze, All, Simple, Unused 2277 1 Minor 22 %
Unused Label Dead code, All, Simple, Unused, ChangedBehavior 5 5 Minor 1 %
Use Constant Instead Of Function Analyze, PHP recommendations, All, php-cs-fixable, CI-checks, CE 105 78 Minor 61 %
Avoid get_class() Analyze, All, Simple, CI-checks, CE, ChangedBehavior 36 28 Minor 32 %
Use Positive Condition Analyze, OneFile, All, Simple 2767 1340 Minor 82 %
Use Same Types For Comparisons Analyze, All 109 71 Minor 0 %
Use Variable Created Inside Loop Dead code, All 1256 581 Minor 0 %
Useless Brackets Analyze, All, RadwellCodes, Simple, CI-checks, CE 5796 19 Minor 15 %
Useless Type Casting Analyze, PHP recommendations, OneFile, All, RadwellCodes, Simple, Level 4, CI-checks, CE 337 202 Minor 47 %
Useless Check Analyze, OneFile, All, Simple, Level 1, CI-checks, CE 30 21 Minor 35 %
Useless Coalesce Analyze, All, ChangedBehavior 136 103 Minor 0 %
Useless Global Analyze, OneFile, All, Simple, Level 2 31 22 Minor 27 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 486 281 Minor 63 %
Useless Null Coalesce Analyze, All, Typehints 426 273 Minor 0 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 4185 1120 Minor 81 %
Useless Short Ternary Analyze, All, ChangedBehavior 78 55 Minor 0 %
Useless Switch Analyze, All, Simple 41 37 Major 32 %
Useless Unset Analyze, OneFile, ClearPHP, All, Simple, Level 2, CI-checks, CE 149 74 Major 42 %
var_dump()... Usage Analyze, Security, ClearPHP, All, CI-checks, CE 29 21 Critical 42 %
Wrong Locale Analyze, All, Semantics 3 2 Major 0 %
Wrong Precedence In Expression Analyze, All, ChangedBehavior 19 11 Minor 0 %
Wrong Range Check Analyze, All 7 5 Major 11 %
Already Parents Trait Analyze, All 8 8 Minor 0 %
Cannot Call Static Trait Method Directly Analyze, All, CompatibilityPHP81, CompatibilityPHP82 31 7 Minor 0 %
Dependant Trait Analyze, All, Level 3, ChangedBehavior 64 62 Minor 28 %
Empty Traits Analyze, Dead code, All, Simple, ChangedBehavior 5 1 Minor 12 %
Method Collision Traits Analyze, All, LintButWontExec, ChangedBehavior 13 13 Critical 5 %
Trait Is Not A Type Analyze, All, ClassReview, Typehints 2 1 Minor 0 %
Trait Not Found Analyze, All, LintButWontExec, ChangedBehavior 49 49 Minor 0 %
Undefined Trait Analyze, All, LintButWontExec, CI-checks, CE, ChangedBehavior, Undefined 2 2 Critical 15 %
Hexadecimal In String Inventory, CompatibilityPHP70, CompatibilityPHP71, All 2 1 0 0 %
No Real Comparison Analyze, PHP recommendations, All, Simple, Level 2, Top10, CI-checks, CE 118 39 Major 26 %
One Variable String Analyze, All, RadwellCodes, Simple, CI-checks, CE 213 97 Minor 33 %
Should Typecast Analyze, OneFile, All, Simple, Rector, CI-checks, CE 742 239 Minor 49 %
String May Hold A Variable Analyze, All, Simple 4023 703 Minor 59 %
Strings With Strange Space Analyze, All, CI-checks, CE 69 21 Minor 21 %
Missing Some Returntype Analyze, All, Typehints, CI-checks, CE 2395 1429 Minor 0 %
StandaloneType True False Null Analyze, Appcontent, All, ChangedBehavior 4236 1482 Minor 0 %
Wrong Type With Default Analyze, All, LintButWontExec, ClassReview 15759 2774 Minor 0 %
Assigned Twice Analyze, All 9593 1276 Minor 79 %
Lost References Analyze, All, Simple 2 2 Major 14 %
Overwritten Literals Analyze, All 11606 1327 Major 79 %
Recycled Variables Analyze, All 3891 501 Minor 0 %
Static Variable In Namespace Dead code, All 6 1 Minor 0 %
Static Variable Initialisation All, CompatibilityPHP81, CompatibilityPHP82, ChangedBehavior 2 2 Minor 0 %
Undefined Constant Name Analyze, All, Undefined 26 9 Minor 0 %
Undefined Variable Analyze, All, CI-checks, CE, Undefined 93876 6763 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 761 323 Minor 74 %
Used Once Variables (In Scope) Analyze, OneFile, ClearPHP, All, Simple, Level 4, CE 34123 5850 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 7666 1616 Minor 87 %