Ambiguous Array Index |
Analyze, All, Simple, Level 2, Semantics, ChangedBehavior |
4 |
1 |
Minor |
10 % |
Append And Assign Arrays |
Analyze, Internal, All, ChangedBehavior |
4 |
3 |
Minor |
0 % |
Multiple Index Definition |
Analyze, OneFile, All, Simple, Rector, CI-checks, CE |
1 |
1 |
Minor |
33 % |
Null Or Boolean Arrays |
Analyze, All |
389 |
13 |
Minor |
0 % |
Randomly Sorted Arrays |
Analyze, All, Suggestions, Level 4 |
4 |
4 |
Minor |
41 % |
Too Many Array Dimensions |
Analyze, All |
6 |
3 |
Minor |
0 % |
Weak Type With Array |
Analyze, All, ChangedBehavior |
1019 |
78 |
Minor |
0 % |
Ambiguous Static |
Analyze, All, Semantics |
14 |
8 |
Minor |
66 % |
Ambiguous Visibilities |
Analyze, All, Semantics, ChangedBehavior |
46 |
25 |
Minor |
70 % |
Anonymous Classes |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, CE |
29 |
7 |
Major |
16 % |
Avoid Optional Properties |
Analyze, All |
16 |
11 |
Major |
84 % |
Cant Instantiate Non Class |
Analyze, All, ClassReview |
11 |
1 |
Minor |
0 % |
Check After Null Safe Operator |
Analyze, All, Suggestions, ChangedBehavior |
7 |
2 |
Major |
0 % |
Class, Interface, Enum Or Trait With Identical Names |
Analyze, All |
119 |
27 |
Minor |
19 % |
Const Visibility Usage |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, All |
1 |
1 |
Minor |
24 % |
Could Be Abstract Class |
Analyze, All, ClassReview |
15 |
15 |
Minor |
65 % |
Class Could Be Final |
Analyze, All, ClassReview |
624 |
567 |
Minor |
96 % |
Method Could Be Static |
Analyze, All, ClassReview |
386 |
293 |
Minor |
92 % |
Could Inject Parameter |
Analyze, All, ClassReview, ChangedBehavior |
7 |
4 |
Minor |
0 % |
Cyclic References |
Analyze, All, ClassReview |
2 |
2 |
Minor |
0 % |
Dependant Abstract Classes |
Analyze, All, ClassReview |
3 |
2 |
Minor |
0 % |
Empty Classes |
Analyze, All, Simple |
75 |
37 |
Minor |
60 % |
Implements Is For Interface |
Analyze, All, Simple |
1 |
1 |
Minor |
9 % |
Incompatible Signature Methods With Covariance |
Analyze, All |
9 |
9 |
Critical |
0 % |
Instantiating Abstract Class |
Analyze, All, Simple |
10 |
1 |
Major |
13 % |
Locally Unused Property |
Dead code, All, Simple, Unused |
117 |
89 |
Minor |
76 % |
Assign Default To Properties |
Analyze, ClearPHP, All, Simple, Level 2 |
1 |
1 |
Minor |
71 % |
Make Global A Property |
Analyze, All, Simple |
1 |
1 |
Minor |
37 % |
Mismatch Properties Typehints |
Analyze, All, LintButWontExec, ClassReview |
29 |
10 |
Minor |
0 % |
Missing Abstract Method |
Analyze, All, ClassReview |
2 |
1 |
Minor |
0 % |
Multiple Class Declarations |
Analyze, All, Simple, CI-checks, CE |
56 |
35 |
Major |
29 % |
New Object Then Immediate Call |
Analyze, All, ClassReview |
15 |
11 |
Minor |
0 % |
self, parent, static Outside Class |
Analyze, All, LintButWontExec, ChangedBehavior |
12 |
3 |
Major |
8 % |
No Public Access |
Analyze, All |
177 |
119 |
Minor |
61 % |
Forgotten Visibility |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
10 |
5 |
Minor |
42 % |
Non Static Methods Called In A Static |
Analyze, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt |
4 |
2 |
Minor |
20 % |
Parent First |
Analyze, All, Suggestions |
5 |
5 |
Minor |
56 % |
Property Could Be Local |
Analyze, All, ClassReview |
26 |
23 |
Minor |
76 % |
Never Used Properties |
Analyze, All, Simple, Unused |
79 |
78 |
Minor |
71 % |
Property Used In One Method Only |
Analyze, All |
129 |
84 |
Minor |
84 % |
Parent, Static Or Self Outside Class |
Analyze, All, Simple, ChangedBehavior |
9 |
3 |
Major |
21 % |
Scalar Or Object Property |
Analyze, All |
1 |
1 |
Minor |
32 % |
Could Use self |
Analyze, All, Simple, Suggestions, Level 3, ClassReview |
3 |
2 |
Minor |
63 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple |
610 |
296 |
Minor |
95 % |
Static Methods Called From Object |
Analyze, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt |
2 |
1 |
Minor |
50 % |
$this Belongs To Classes Or Traits |
Analyze, All, Simple, LintButWontExec, ChangedBehavior |
76 |
16 |
Major |
32 % |
Too Many Finds |
Analyze, All, ChangedBehavior |
1 |
1 |
Minor |
7 % |
Undefined Classes |
Analyze, All, Stubs, Undefined |
1927 |
572 |
Major |
91 % |
Undefined Class Constants |
Analyze, All, LintButWontExec, CI-checks, CE, Stubs, ChangedBehavior, Undefined |
12 |
4 |
Major |
62 % |
Undefined Properties |
Analyze, ClearPHP, All, Simple, CI-checks, CE, CompatibilityPHP82, ChangedBehavior, Undefined |
128 |
31 |
Major |
61 % |
Undefined static:: Or self:: |
Analyze, All, Simple, ChangedBehavior, Undefined |
5 |
2 |
Minor |
35 % |
Unfinished Object |
Analyze, All, ClassReview |
29 |
19 |
Major |
0 % |
Unreachable Method |
Analyze, Dead code, All, ClassReview, Unused, ChangedBehavior |
7 |
4 |
Minor |
0 % |
Unresolved Catch |
Dead code, ClearPHP, All, ChangedBehavior |
10 |
2 |
Major |
52 % |
Unresolved Classes |
Analyze, All, Stubs, ChangedBehavior |
18 |
6 |
Major |
76 % |
Unresolved Instanceof |
Analyze, Dead code, ClearPHP, All, Simple, Top10, ChangedBehavior |
5 |
2 |
Major |
48 % |
Unused Classes |
Analyze, Dead code, All, Simple, Unused, ChangedBehavior |
456 |
427 |
Major |
67 % |
Unused Class Constant |
Analyze, All, ClassReview, Unused, ChangedBehavior |
3 |
3 |
Minor |
0 % |
Unused Methods |
Dead code, All, Simple, Unused, ChangedBehavior |
657 |
311 |
Minor |
96 % |
Unused Private Methods |
Dead code, OneFile, All, Simple, Unused, ChangedBehavior |
7 |
2 |
Minor |
50 % |
Unused Protected Methods |
Dead code, All, Unused, ChangedBehavior |
90 |
47 |
Major |
68 % |
Unused Public Methods |
Analyze, All, ChangedBehavior |
1022 |
511 |
Minor |
0 % |
Use ::Class Operator |
Analyze, Performances, All, Simple, CI-checks, CE, ChangedBehavior |
110 |
51 |
Minor |
71 % |
Useless Abstract Class |
Analyze, All, Simple, ChangedBehavior |
9 |
2 |
Minor |
33 % |
Weak Typing |
Analyze, All, ChangedBehavior |
10 |
8 |
Minor |
47 % |
Wrong Typed Property Default |
Analyze, All, LintButWontExec, ClassReview, CI-checks, CE |
8 |
7 |
Minor |
0 % |
Use const |
Analyze, Coding Conventions, All, Top10, CI-checks, CE |
118 |
11 |
Minor |
54 % |
Constant Used Only Once |
Analyze, All |
3 |
2 |
Minor |
0 % |
Multiple Constant Definition |
Analyze, All, Simple, CI-checks, CE, ChangedBehavior |
15 |
11 |
Minor |
41 % |
Undefined Constants |
stubs |
2 |
1 |
Minor |
71 % |
Unused Constants |
Dead code, All, Simple, Unused, ChangedBehavior |
12 |
10 |
Minor |
39 % |
Could Be A Constant |
All, Dump |
498 |
121 |
Minor |
0 % |
Undefined Caught Exceptions |
Dead code, All, ChangedBehavior |
10 |
2 |
None |
53 % |
Caught Exceptions |
All, Dump, ChangedBehavior |
43 |
13 |
None |
100 % |
Converted Exceptions |
Analyze, All |
4 |
3 |
Minor |
0 % |
Could Drop Variable |
Dead code, All, Suggestions, ChangedBehavior |
34 |
11 |
Minor |
0 % |
Throw Functioncall |
Analyze, All, Simple, Level 1, CI-checks, CE, ChangedBehavior |
2 |
1 |
Major |
4 % |
Throw Raw Exceptions |
Analyze, All, Suggestions |
2 |
1 |
Minor |
0 % |
Uncaught Exceptions |
Analyze, All, ChangedBehavior |
2 |
1 |
Minor |
84 % |
Useless Try |
Analyze, All, ChangedBehavior |
21 |
8 |
Minor |
0 % |
Missing Include |
Analyze, All |
42 |
8 |
Critical |
65 % |
Native Alias Functions Usage |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE, ChangedBehavior |
10 |
5 |
Minor |
20 % |
Use Named Boolean In Argument Definition |
Analyze, All, ChangedBehavior |
50 |
25 |
Minor |
84 % |
Could Make A Function |
Analyze, All, Suggestions, ChangedBehavior |
694 |
125 |
Minor |
66 % |
Deep Definitions |
Analyze, Appinfo, All, Simple, CE |
12 |
2 |
Major |
13 % |
Don't Collect Void |
Analyze, All, IsPHP, IsStub, IsExt |
134 |
59 |
Minor |
0 % |
Empty Function |
Analyze, All, Simple |
75 |
38 |
Minor |
74 % |
Method Is Not An If |
Analyze, All |
16 |
8 |
Minor |
0 % |
Mismatched Default Arguments |
Analyze, All, Typechecks |
5 |
2 |
Minor |
80 % |
Must Return Methods |
Analyze, All, Simple, Level 2, LintButWontExec, CI-checks, CE, ChangedBehavior |
2 |
2 |
Major |
34 % |
Never Called Parameter |
Analyze, All, Suggestions, Rector, Unused |
17 |
9 |
Minor |
92 % |
No Boolean As Default |
Analyze, All |
51 |
25 |
Minor |
84 % |
No Default For Referenced Parameter |
Analyze, All |
1 |
1 |
Minor |
0 % |
No Return Used |
Analyze, All, Suggestions, Level 4 |
15 |
5 |
Minor |
69 % |
Only Variable Passed By Reference |
Analyze, All, IsPHP, IsStub, IsExt |
1 |
1 |
Critical |
43 % |
Should Use Existing Constants |
Analyze, All, Simple |
1 |
1 |
Minor |
32 % |
Too Many Local Variables |
Analyze, All |
76 |
62 |
Minor |
64 % |
Type Must Be Returned |
Analyze, All, LintButWontExec, CI-checks, CE, ChangedBehavior |
2 |
2 |
Major |
22 % |
Undefined Functions |
stubs |
33 |
12 |
Major |
68 % |
Unused Parameter |
Analyze, All, Simple, Unused |
41 |
36 |
Major |
90 % |
Unused Functions |
Dead code, All, Simple, Unused |
27 |
17 |
Minor |
52 % |
Unused Inherited Variable In Closure |
Analyze, Dead code, All, CI-checks, CE, Unused |
2 |
2 |
Major |
23 % |
Unused Returned Value |
Analyze, Dead code, OneFile, All, Simple, Unused |
1402 |
247 |
Minor |
41 % |
Use Constant As Arguments |
Analyze, All, Simple, CI-checks, CE |
1 |
1 |
Major |
30 % |
Useless Argument |
Analyze, All |
1 |
1 |
Minor |
0 % |
Useless Referenced Argument |
Analyze, All, ChangedBehavior |
1 |
1 |
Minor |
58 % |
Uses Default Values |
Analyze, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt |
2805 |
310 |
Minor |
98 % |
Methods Without Return |
Analyze, All |
2 |
2 |
Minor |
95 % |
Wrong Argument Type |
Analyze, All, Typechecks |
10 |
7 |
Minor |
0 % |
Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks, CE, Stubs, IsPHP, IsStub, IsExt |
54 |
20 |
Major |
81 % |
Wrong Type Returned |
Analyze, All, LintButWontExec, ClassReview, CI-checks, CE |
1635 |
526 |
Minor |
0 % |
Wrong Type With Call |
Analyze, All, Typechecks, CI-checks, CE |
2069 |
273 |
Minor |
0 % |
Forgotten Interface |
Analyze, All, ChangedBehavior |
230 |
228 |
Minor |
48 % |
Empty Interfaces |
Analyze, All, Simple, ChangedBehavior |
38 |
13 |
Minor |
41 % |
Interfaces Is Not Implemented |
Analyze, All, LintButWontExec, ClassReview, CI-checks, CE, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Undefined Interfaces |
Analyze, All, LintButWontExec, CI-checks, CE, ChangedBehavior, Undefined |
21 |
7 |
Major |
72 % |
Unused Interfaces |
Dead code, All, Simple, Suggestions, Level 2, Unused, ChangedBehavior |
31 |
10 |
Minor |
26 % |
Useless Interfaces |
Analyze, ClearPHP, All, Simple, ClassReview, Typechecks, ChangedBehavior |
38 |
15 |
Minor |
59 % |
Empty Namespace |
Analyze, Dead code, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
2 |
1 |
Minor |
4 % |
Multiple Alias Definitions |
Analyze, All, Simple, CI-checks, CE, ChangedBehavior |
7 |
7 |
Minor |
44 % |
Should Make Alias |
Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
183 |
20 |
Minor |
46 % |
Unresolved Use |
Analyze, ClearPHP, All, Simple, ChangedBehavior |
301 |
263 |
Major |
69 % |
Unused Use |
Dead code, ClearPHP, All, Simple, php-cs-fixable, Unused, ChangedBehavior |
62 |
16 |
Major |
60 % |
Use With Fully Qualified Name |
Analyze, Coding Conventions, PHP recommendations, All, Simple, ChangedBehavior |
3 |
1 |
Minor |
18 % |
No array_merge() In Loops |
Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE, ChangedBehavior |
5 |
2 |
Major |
57 % |
Logical To in_array |
Analyze, All, Level 2, ChangedBehavior |
32 |
14 |
Minor |
67 % |
Memoize MagicCall |
Analyze, All, ClassReview, ChangedBehavior |
6 |
5 |
Minor |
0 % |
Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks, CE, ChangedBehavior |
622 |
146 |
Minor |
74 % |
strpos() Too Much |
Analyze, All, CI-checks, CE, ChangedBehavior |
32 |
11 |
Minor |
49 % |
array_key_exists() Works On Arrays |
Analyze, All, CompatibilityPHP74, CE, ChangedBehavior |
3 |
1 |
Minor |
0 % |
Assumptions |
Analyze, All, ChangedBehavior |
16 |
8 |
Minor |
0 % |
Use random_int() |
Analyze, Security, CompatibilityPHP71, All, Simple, Level 2, CI-checks, CE, ChangedBehavior |
1 |
1 |
Major |
59 % |
Constant Scalar Expression |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, ChangedBehavior |
55 |
34 |
Major |
0 % |
Deprecated PHP Functions |
Analyze, All, CI-checks, CE |
2 |
1 |
Major |
23 % |
Don't Pollute Global Space |
Analyze, All |
364 |
87 |
Minor |
0 % |
Enum Usage |
CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CompatibilityPHP80 |
33 |
12 |
None |
0 % |
Exit Without Argument |
Analyze, All, ChangedBehavior |
1 |
1 |
Minor |
0 % |
False To Array Conversion |
Analyze, All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82 |
19 |
8 |
Minor |
0 % |
Group Use Declaration |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, CE, ChangedBehavior |
12 |
4 |
Minor |
5 % |
Include Variables |
All, Dump |
5 |
4 |
Minor |
0 % |
Incompilable Files |
Analyze, Appinfo, ClearPHP, All, Simple, CE |
144 |
144 |
Critical |
24 % |
Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
14 |
8 |
Major |
76 % |
List Short Syntax |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Internal, CompatibilityPHP53, CompatibilityPHP70, All, CE, ChangedBehavior |
1 |
1 |
Major |
17 % |
List With Keys |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Appcontent, CompatibilityPHP53, CompatibilityPHP70, All, CE, ChangedBehavior |
8 |
3 |
Major |
34 % |
Logical Should Use Symbolic Operators |
Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks, CE |
9 |
5 |
Minor |
43 % |
Possible Missing Subpattern |
Analyze, All, Top10, CI-checks, CE, ChangedBehavior |
11 |
7 |
Minor |
45 % |
Named Parameter Usage |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74 |
9 |
4 |
Minor |
0 % |
PHP Native Class Type Compatibility |
Analyze, All, CompatibilityPHP81, ChangedBehavior |
2 |
1 |
Major |
0 % |
No Class In Global |
Analyze, All, CI-checks, CE, ChangedBehavior |
207 |
71 |
Minor |
77 % |
No Null For Native PHP Functions |
Analyze, All, CompatibilityPHP81, Deprecated, ChangedBehavior |
75 |
30 |
Minor |
0 % |
Only Variable Passed By Reference |
Analyze, All, LintButWontExec, ChangedBehavior |
3 |
1 |
Minor |
0 % |
New Constants In PHP 7.4 |
All, CompatibilityPHP74, CE |
2 |
1 |
Major |
0 % |
Php7 Relaxed Keyword |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, CE |
3 |
2 |
Major |
28 % |
Php 8.0 Only TypeHints |
Appinfo, CompatibilityPHP56, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CE, ChangedBehavior |
21 |
16 |
Minor |
0 % |
PHP 8.1 Removed Directives |
All, CompatibilityPHP81 |
1 |
1 |
Minor |
0 % |
Scalar Are Not Arrays |
Analyze, All, CompatibilityPHP74, CI-checks, CE, ChangedBehavior |
16 |
2 |
Minor |
0 % |
String Int Comparison |
All, CompatibilityPHP80, ChangedBehavior |
6 |
4 |
Minor |
0 % |
Trailing Comma In Calls |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CE |
7 |
2 |
Minor |
1 % |
Typed Property Usage |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CE |
350 |
151 |
Minor |
6 % |
Uses PHP 8 Match() |
All, CompatibilityPHP74, CE |
17 |
8 |
None |
0 % |
Use Nullable Type |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, All, CE |
26 |
18 |
Major |
90 % |
Use Pathinfo |
Analyze, All, Simple, Level 3, CI-checks, CE |
1 |
1 |
Minor |
11 % |
Avoid Using stdClass |
Analyze, OneFile, All, Simple, Level 4 |
11 |
3 |
Minor |
46 % |
Wrong Type For Native PHP Function |
Analyze, All, CI-checks, CE |
183 |
58 |
Minor |
0 % |
Always Anchor Regex |
Security, All |
28 |
18 |
Major |
65 % |
Avoid Those Hash Functions |
Security, All |
7 |
2 |
Major |
62 % |
Direct Injection |
Security, All, ChangedBehavior |
9 |
3 |
Major |
51 % |
Don't Echo Error |
Analyze, Security, All, Simple, Level 1, CI-checks, CE, ChangedBehavior |
3 |
2 |
Critical |
35 % |
No Net For Xml Load |
Security, All, ChangedBehavior |
8 |
6 |
Major |
51 % |
Adding Zero |
Dump |
2 |
1 |
Minor |
69 % |
Alternative Syntax Consistence |
Analyze, All |
3 |
1 |
Major |
21 % |
Comparison Is Always The Same |
Analyze, All, ChangedBehavior |
32 |
18 |
Minor |
0 % |
Same Variable Foreach |
Analyze, All, CI-checks, CE |
2 |
1 |
Minor |
16 % |
Bail Out Early |
Analyze, OneFile, All, Simple, Level 4 |
323 |
182 |
Minor |
64 % |
Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE |
21 |
7 |
Minor |
77 % |
Buried Assignation |
Analyze, All |
30 |
18 |
Minor |
84 % |
Cast To Boolean |
Analyze, OneFile, All, Simple, Level 1 |
6 |
2 |
Minor |
56 % |
Catch Overwrite Variable |
Analyze, ClearPHP, All, Simple |
1 |
1 |
Minor |
25 % |
Check All Types |
Analyze, All |
1 |
1 |
Major |
69 % |
Check Division By Zero |
Analyze, All, ChangedBehavior |
31 |
11 |
Minor |
0 % |
Check JSON |
Analyze, All, CI-checks, CE |
3 |
2 |
Major |
65 % |
Common Alternatives |
Analyze, All, Simple |
49 |
24 |
Major |
80 % |
Could Be Else |
Analyze, All |
36 |
9 |
Minor |
49 % |
Don't Change The Blind Var |
Analyze, All |
37 |
27 |
Minor |
73 % |
Don't Mix ++ |
Analyze, All |
3 |
3 |
Minor |
56 % |
Don't Read And Write In One Expression |
Analyze, All, CompatibilityPHP73, CompatibilityPHP74, CE |
12 |
9 |
Critical |
38 % |
Don't Reuse Foreach Source |
Analyze, All |
1 |
1 |
Minor |
0 % |
Double Assignation |
Analyze, All |
44 |
25 |
Major |
59 % |
Double Checks |
Analyze, All |
3 |
2 |
Minor |
0 % |
Double Instructions |
Analyze, All, Simple |
81 |
29 |
Minor |
57 % |
Drop Else After Return |
Analyze, OneFile, All, Simple, Suggestions, Level 4, CI-checks, CE |
30 |
21 |
Minor |
70 % |
Echo With Concat |
Analyze, Performances, All, Simple, Suggestions |
769 |
39 |
Minor |
60 % |
Else If Versus Elseif |
Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE |
426 |
137 |
Minor |
66 % |
Empty Blocks |
Analyze, All, Simple, CI-checks, CE |
323 |
32 |
Minor |
51 % |
Empty Instructions |
Analyze, Dead code, All, Simple |
1 |
1 |
Minor |
57 % |
Empty Loop |
Analyze, All, ChangedBehavior |
84 |
15 |
Major |
0 % |
Empty Try Catch |
Analyze, All, Level 3 |
17 |
6 |
Minor |
49 % |
Eval() Usage |
Analyze, Appinfo, Security, Performances, PHP recommendations, OneFile, ClearPHP, All, Simple, CE |
7 |
3 |
Major |
39 % |
eval() Without Try |
Analyze, Security, All, Simple, Level 3, CI-checks, CE, ChangedBehavior |
6 |
2 |
Critical |
36 % |
Exit() Usage |
Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE |
3 |
3 |
Major |
61 % |
Overwritten Source And Value |
Analyze, OneFile, All |
2 |
1 |
Minor |
0 % |
Forgotten Whitespace |
Analyze, All, CI-checks, CE |
12 |
9 |
Minor |
16 % |
Global Usage |
Analyze, Appinfo, ClearPHP, All, CE |
20 |
4 |
Minor |
52 % |
Htmlentities Calls |
Analyze, All, Simple, CI-checks, CE |
2 |
2 |
Major |
40 % |
Htmlentities Using Default Flag |
Analyze, All, Simple, CI-checks, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Identical Case In Switch |
Analyze, All, ChangedBehavior |
25 |
6 |
Minor |
0 % |
Identical Conditions |
Analyze, All, Simple, CI-checks, CE |
1 |
1 |
Critical |
28 % |
Identical Consecutive Expression |
Analyze, All |
35 |
16 |
Minor |
59 % |
Identical Elseif |
Dead code, All |
6 |
4 |
Minor |
0 % |
Identical Variables In Foreach |
Analyze, OneFile, All |
2 |
1 |
Minor |
0 % |
If With Same Conditions |
Analyze, All, Simple, CI-checks, CE |
88 |
17 |
Major |
47 % |
Implied If |
Analyze, ClearPHP, All, Simple, Rector, CI-checks, CE |
7 |
5 |
Major |
33 % |
Indices Are Int Or String |
Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
121 |
18 |
Major |
20 % |
Infinite Recursion |
Analyze, All |
1 |
1 |
Major |
0 % |
Invalid Regex |
Analyze, All, CI-checks, CE, ChangedBehavior |
1 |
1 |
Major |
37 % |
Logical Mistakes |
Analyze, All, Simple, Level 1, CI-checks, CE |
7 |
1 |
Critical |
32 % |
Lone Blocks |
Analyze, All, Simple, Level 4, CI-checks, CE, ChangedBehavior |
4 |
4 |
Minor |
15 % |
Long Arguments |
Analyze, All |
1 |
1 |
Minor |
68 % |
Max Level Of Nesting |
Analyze, All |
108 |
77 |
Minor |
0 % |
Merge If Then |
Analyze, All, CI-checks, CE, ChangedBehavior |
172 |
76 |
Minor |
0 % |
Mismatched Ternary Alternatives |
Analyze, All, Suggestions, Level 4 |
1 |
1 |
Major |
64 % |
Missing Assignation In Branches |
Analyze, All, ChangedBehavior |
563 |
141 |
Minor |
0 % |
Missing Cases In Switch |
Analyze, All |
4 |
3 |
Minor |
36 % |
Maybe Missing New |
Analyze, All, ChangedBehavior |
3 |
2 |
Critical |
57 % |
Mixed Concat And Interpolation |
Analyze, Coding Conventions, All |
311 |
28 |
Minor |
45 % |
Modernize Empty With Expression |
Analyze, OneFile, All, Simple |
19 |
18 |
Minor |
63 % |
Multiples Identical Case |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, Rector, CI-checks, CE |
6 |
5 |
Minor |
29 % |
Multiple Type Variable |
Analyze, All, Level 4 |
1 |
1 |
Minor |
58 % |
Nested Ifthen |
Analyze, All, RadwellCodes |
924 |
146 |
Major |
84 % |
Nested Ternary |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
2 |
1 |
Major |
50 % |
Don't Change Incomings |
Analyze, All |
1 |
1 |
Minor |
44 % |
No Choice |
Analyze, All, Simple, Level 2, Top10, Rector, CI-checks, CE, ChangedBehavior |
14 |
7 |
Major |
42 % |
No Hardcoded Path |
Analyze, ClearPHP, All, Simple |
1 |
1 |
Major |
35 % |
No Max On Empty Array |
All, CompatibilityPHP80, ChangedBehavior |
33 |
13 |
Minor |
0 % |
No Need For Else |
Analyze, All |
78 |
45 |
Minor |
74 % |
No Need For Triple Equal |
Analyze, All |
15 |
1 |
Minor |
0 % |
No Null For Index |
Analyze, All, ChangedBehavior |
28 |
5 |
Minor |
0 % |
No Parenthesis For Language Construct |
Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE, ChangedBehavior |
79 |
42 |
Minor |
62 % |
Avoid Substr() One |
Analyze, Performances, CompatibilityPHP71, All, Simple, Suggestions, Level 2, Top10, CI-checks, CE |
26 |
13 |
Minor |
58 % |
Variable Is Not A Condition |
Analyze, All |
143 |
23 |
Minor |
93 % |
Non Integer Nor String As Index |
Analyze, All, ChangedBehavior |
119 |
16 |
Minor |
0 % |
@ Operator |
Analyze, Appinfo, Performances, ClearPHP, All, CI-checks, CE |
19 |
8 |
Minor |
65 % |
include_once() Usage |
Analyze, Appinfo, All, CE |
29 |
5 |
Minor |
73 % |
Several Instructions On The Same Line |
Analyze, All, ChangedBehavior |
19 |
9 |
Major |
56 % |
Or Die |
Analyze, OneFile, ClearPHP, All, Simple, CI-checks, CE |
1 |
1 |
Minor |
13 % |
Overwritten Foreach Var |
Analyze, OneFile, All |
2 |
2 |
Major |
0 % |
PHP7 Dirname |
CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, Suggestions, php-cs-fixable |
9 |
6 |
Minor |
44 % |
Printf Number Of Arguments |
Analyze, All, CI-checks, CE |
3 |
2 |
Minor |
41 % |
Repeated print() |
Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, CE, ChangedBehavior |
182 |
45 |
Major |
50 % |
Repeated Regex |
Analyze, All, Level 1, CI-checks, CE |
18 |
11 |
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 |
17 |
11 |
Major |
46 % |
Same Conditions In Condition |
Analyze, All, Simple, CI-checks, CE |
12 |
10 |
Critical |
55 % |
Should Chain Exception |
Analyze, All, Simple, CI-checks, CE |
4 |
3 |
Minor |
39 % |
Should Use Ternary Operator |
Analyze, OneFile, All, Simple, CI-checks, CE |
190 |
84 |
Minor |
86 % |
Preprocessable |
Analyze, All, Rector |
563 |
73 |
Minor |
85 % |
Should Use Explode Args |
Analyze, All, CI-checks, CE |
5 |
5 |
Minor |
0 % |
Static Inclusions |
Analyze, All |
45 |
10 |
Minor |
0 % |
Static Loop |
Analyze, All, Simple, Level 4 |
126 |
25 |
Minor |
67 % |
Switch To Switch |
Analyze, All, RadwellCodes, Simple |
51 |
24 |
Minor |
58 % |
Switch Without Default |
Analyze, ClearPHP, All, Simple, CI-checks, CE |
44 |
17 |
Major |
69 % |
Test Then Cast |
Analyze, All |
18 |
5 |
Major |
34 % |
Timestamp Difference |
Analyze, All, Simple, Level 3, CI-checks, CE |
7 |
7 |
Major |
49 % |
Unchecked Resources |
Analyze, ClearPHP, All, Simple, Level 2, CI-checks, CE |
2 |
2 |
Major |
50 % |
Unconditional Break In Loop |
Analyze, All, Level 3, CI-checks, CE |
54 |
30 |
Major |
48 % |
Unreachable Code |
Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3, Unused, ChangedBehavior |
154 |
47 |
Major |
61 % |
Unsupported Types With Operators |
Analyze, All, CompatibilityPHP80, CE |
143 |
24 |
Minor |
0 % |
Unused Global |
Analyze, All, Simple, Unused |
1 |
1 |
Minor |
22 % |
Use Constant Instead Of Function |
Analyze, PHP recommendations, All, php-cs-fixable, CI-checks, CE |
3 |
3 |
Minor |
61 % |
Avoid get_class() |
Analyze, All, Simple, CI-checks, CE, ChangedBehavior |
1 |
1 |
Minor |
32 % |
Use Positive Condition |
Analyze, OneFile, All, Simple |
129 |
67 |
Minor |
82 % |
Use Same Types For Comparisons |
Analyze, All |
10 |
7 |
Minor |
0 % |
Use Variable Created Inside Loop |
Dead code, All |
63 |
37 |
Minor |
0 % |
Useless Brackets |
Analyze, All, RadwellCodes, Simple, CI-checks, CE |
4 |
4 |
Minor |
15 % |
Useless Type Casting |
Analyze, PHP recommendations, OneFile, All, RadwellCodes, Simple, Level 4, CI-checks, CE |
35 |
21 |
Minor |
47 % |
Useless Global |
Analyze, OneFile, All, Simple, Level 2 |
1 |
1 |
Minor |
27 % |
Useless Instructions |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE |
16 |
10 |
Minor |
63 % |
Useless Null Coalesce |
Analyze, All, Typehints |
2 |
1 |
Minor |
0 % |
Useless Parenthesis |
Analyze, All, Simple, CI-checks, CE |
900 |
176 |
Minor |
81 % |
Useless Switch |
Analyze, All, Simple |
26 |
10 |
Major |
32 % |
var_dump()... Usage |
Analyze, Security, ClearPHP, All, CI-checks, CE |
4 |
3 |
Critical |
42 % |
Cannot Call Static Trait Method Directly |
Analyze, All, CompatibilityPHP81, CompatibilityPHP82 |
2 |
2 |
Minor |
0 % |
Dependant Trait |
Analyze, All, Level 3, ChangedBehavior |
2 |
1 |
Minor |
28 % |
Empty Traits |
Analyze, Dead code, All, Simple, ChangedBehavior |
36 |
10 |
Minor |
12 % |
Trait Is Not A Type |
Analyze, All, ClassReview, Typehints |
3 |
1 |
Minor |
0 % |
Undefined Trait |
Analyze, All, LintButWontExec, CI-checks, CE, ChangedBehavior, Undefined |
6 |
1 |
Critical |
15 % |
No Real Comparison |
Analyze, PHP recommendations, All, Simple, Level 2, Top10, CI-checks, CE |
5 |
2 |
Major |
26 % |
String May Hold A Variable |
Analyze, All, Simple |
31 |
13 |
Minor |
59 % |
Missing Some Returntype |
Analyze, All, Typehints, CI-checks, CE |
5 |
4 |
Minor |
0 % |
StandaloneType True False Null |
Analyze, Appcontent, All, ChangedBehavior |
26 |
18 |
Minor |
0 % |
Wrong Type With Default |
Analyze, All, LintButWontExec, ClassReview |
203 |
119 |
Minor |
0 % |
Assigned Twice |
Analyze, All |
1413 |
172 |
Minor |
79 % |
Overwritten Literals |
Analyze, All |
1642 |
172 |
Major |
79 % |
Recycled Variables |
Analyze, All |
91 |
16 |
Minor |
0 % |
Undefined Constant Name |
Analyze, All, Undefined |
4 |
3 |
Minor |
0 % |
Undefined Variable |
Analyze, All, CI-checks, CE, Undefined |
772 |
61 |
Minor |
77 % |
Used Once Variables |
Analyze, OneFile, All, Simple, Top10 |
58 |
29 |
Minor |
74 % |
Used Once Variables (In Scope) |
Analyze, OneFile, ClearPHP, All, Simple, Level 4, CE |
272 |
102 |
Minor |
95 % |
Written Only Variables |
Analyze, OneFile, All, Simple, Unused |
42 |
27 |
Minor |
87 % |