Ambiguous Array Index |
Analyze, All, Simple, Level 2, Semantics, ChangedBehavior |
11 |
7 |
Minor |
10 % |
Append And Assign Arrays |
Analyze, Internal, All, ChangedBehavior |
5 |
4 |
Minor |
0 % |
Null Or Boolean Arrays |
Analyze, All |
122 |
20 |
Minor |
0 % |
Randomly Sorted Arrays |
Analyze, All, Suggestions, Level 4 |
9 |
7 |
Minor |
41 % |
Too Many Array Dimensions |
Analyze, All |
12 |
5 |
Minor |
0 % |
Weak Type With Array |
Analyze, All, ChangedBehavior |
975 |
108 |
Minor |
0 % |
Abstract Or Implements |
Analyze, All, LintButWontExec, ChangedBehavior |
5 |
5 |
Major |
24 % |
Accessing Private |
Analyze, All, Simple |
24 |
15 |
Major |
17 % |
Ambiguous Static |
Analyze, All, Semantics |
129 |
88 |
Minor |
66 % |
Ambiguous Visibilities |
Analyze, All, Semantics, ChangedBehavior |
334 |
113 |
Minor |
70 % |
Avoid option arrays in constructors |
Analyze, All, ClassReview |
4 |
4 |
Minor |
0 % |
Avoid Optional Properties |
Analyze, All |
196 |
55 |
Major |
84 % |
Const Visibility Usage |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, All |
150 |
48 |
Minor |
24 % |
Could Be Abstract Class |
Analyze, All, ClassReview |
2 |
2 |
Minor |
65 % |
Class Could Be Final |
Analyze, All, ClassReview |
207 |
207 |
Minor |
96 % |
Method Could Be Static |
Analyze, All, ClassReview |
231 |
101 |
Minor |
92 % |
Could Inject Parameter |
Analyze, All, ClassReview, ChangedBehavior |
222 |
76 |
Minor |
0 % |
Dependant Abstract Classes |
Analyze, All, ClassReview |
2 |
2 |
Minor |
0 % |
Different Argument Counts |
Analyze, All, ClassReview |
11 |
7 |
Minor |
0 % |
No Direct Call To Magic Method |
Analyze, All, Level 2, CI-checks, CE |
4 |
2 |
Major |
43 % |
Don't Send $this In Constructor |
Analyze, All |
2 |
2 |
Minor |
41 % |
Empty Classes |
Analyze, All, Simple |
5 |
5 |
Minor |
60 % |
Incompatible Signature Methods With Covariance |
Analyze, All |
24 |
13 |
Critical |
0 % |
Locally Unused Property |
Dead code, All, Simple, Unused |
5 |
5 |
Minor |
76 % |
Assign Default To Properties |
Analyze, ClearPHP, All, Simple, Level 2 |
51 |
36 |
Minor |
71 % |
Method Signature Must Be Compatible |
Analyze, All, LintButWontExec |
95 |
36 |
Critical |
53 % |
Mismatch Properties Typehints |
Analyze, All, LintButWontExec, ClassReview |
27 |
13 |
Minor |
0 % |
Missing Abstract Method |
Analyze, All, ClassReview |
1 |
1 |
Minor |
0 % |
Multiple Identical Trait Or Interface |
Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
13 |
13 |
Minor |
0 % |
New Object Then Immediate Call |
Analyze, All, ClassReview |
112 |
55 |
Minor |
0 % |
No Public Access |
Analyze, All |
4 |
3 |
Minor |
61 % |
Non Nullable Getters |
Analyze, All, ClassReview |
20 |
9 |
Minor |
0 % |
Parent First |
Analyze, All, Suggestions |
11 |
11 |
Minor |
56 % |
Property Could Be Local |
Analyze, All, ClassReview |
163 |
70 |
Minor |
76 % |
Same Name For Property And Method |
Analyze, All, ClassReview, Semantics |
22 |
9 |
Minor |
0 % |
Never Used Properties |
Analyze, All, Simple, Unused |
3 |
3 |
Minor |
71 % |
Property Used In One Method Only |
Analyze, All |
92 |
50 |
Minor |
84 % |
Parent, Static Or Self Outside Class |
Analyze, All, Simple, ChangedBehavior |
6 |
1 |
Major |
21 % |
Could Use self |
Analyze, All, Simple, Suggestions, Level 3, ClassReview |
35 |
10 |
Minor |
63 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple |
278 |
113 |
Minor |
95 % |
Static Methods Called From Object |
Analyze, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt |
2 |
2 |
Minor |
50 % |
Too Many Dereferencing |
Analyze, All, ChangedBehavior |
7 |
6 |
Minor |
0 % |
Too Many Injections |
Analyze, All, Dismell, ChangedBehavior |
2 |
2 |
Minor |
19 % |
Undefined Classes |
Analyze, All, Stubs, Undefined |
2042 |
201 |
Major |
91 % |
Undefined Class Constants |
Analyze, All, LintButWontExec, CI-checks, CE, Stubs, ChangedBehavior, Undefined |
357 |
44 |
Major |
62 % |
Undefined Parent |
Analyze, All, Simple, Undefined |
2 |
2 |
Minor |
45 % |
Undefined Properties |
Analyze, ClearPHP, All, Simple, CI-checks, CE, CompatibilityPHP82, ChangedBehavior, Undefined |
34 |
10 |
Major |
61 % |
Undefined ::class |
Analyze, All, CI-checks, CE, ChangedBehavior, Undefined |
3 |
2 |
Major |
36 % |
Unfinished Object |
Analyze, All, ClassReview |
71 |
42 |
Major |
0 % |
Unresolved Catch |
Dead code, ClearPHP, All, ChangedBehavior |
9 |
7 |
Major |
52 % |
Unresolved Classes |
Analyze, All, Stubs, ChangedBehavior |
221 |
62 |
Major |
76 % |
Unresolved Instanceof |
Analyze, Dead code, ClearPHP, All, Simple, Top10, ChangedBehavior |
30 |
13 |
Major |
48 % |
Unused Classes |
Analyze, Dead code, All, Simple, Unused, ChangedBehavior |
4 |
4 |
Major |
67 % |
Unused Class Constant |
Analyze, All, ClassReview, Unused, ChangedBehavior |
4 |
2 |
Minor |
0 % |
Unused Methods |
Dead code, All, Simple, Unused, ChangedBehavior |
410 |
135 |
Minor |
96 % |
Unused Private Methods |
Dead code, OneFile, All, Simple, Unused, ChangedBehavior |
1 |
1 |
Minor |
50 % |
Unused Protected Methods |
Dead code, All, Unused, ChangedBehavior |
110 |
54 |
Major |
68 % |
Unused Public Methods |
Analyze, All, ChangedBehavior |
752 |
162 |
Minor |
0 % |
Use ::Class Operator |
Analyze, Performances, All, Simple, CI-checks, CE, ChangedBehavior |
40 |
11 |
Minor |
71 % |
Use Instanceof |
Analyze, All, Simple, CI-checks, CE, ChangedBehavior |
12 |
4 |
Major |
63 % |
Used Once Property |
Analyze, All, ChangedBehavior |
4 |
4 |
Minor |
74 % |
Weak Typing |
Analyze, All, ChangedBehavior |
23 |
19 |
Minor |
47 % |
Wrong Typed Property Default |
Analyze, All, LintButWontExec, ClassReview, CI-checks, CE |
36 |
22 |
Minor |
0 % |
Constant Used Only Once |
Analyze, All |
32 |
19 |
Minor |
0 % |
Undefined Constants |
stubs |
8 |
5 |
Minor |
71 % |
Could Be A Constant |
All, Dump |
120 |
53 |
Minor |
0 % |
Catch With Undefined Variable |
Analyze, All, ChangedBehavior, Undefined |
28 |
9 |
Minor |
0 % |
Undefined Caught Exceptions |
Dead code, All, ChangedBehavior |
5 |
4 |
None |
53 % |
Caught Exceptions |
All, Dump, ChangedBehavior |
147 |
62 |
None |
100 % |
Converted Exceptions |
Analyze, All |
17 |
14 |
Minor |
0 % |
Could Drop Variable |
Dead code, All, Suggestions, ChangedBehavior |
37 |
22 |
Minor |
0 % |
Forgotten Thrown |
Analyze, All, ChangedBehavior |
10 |
5 |
Minor |
20 % |
Throw Raw Exceptions |
Analyze, All, Suggestions |
418 |
118 |
Minor |
0 % |
Try Without Catch |
All, Dump, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Uncaught Exceptions |
Analyze, All, ChangedBehavior |
442 |
124 |
Minor |
84 % |
Useless Try |
Analyze, All, ChangedBehavior |
35 |
22 |
Minor |
0 % |
Missing Include |
Analyze, All |
2 |
1 |
Critical |
65 % |
Use Named Boolean In Argument Definition |
Analyze, All, ChangedBehavior |
251 |
110 |
Minor |
84 % |
Callback Function Needs Return |
Analyze, All, CI-checks, CE |
2 |
1 |
Major |
42 % |
Could Make A Function |
Analyze, All, Suggestions, ChangedBehavior |
557 |
119 |
Minor |
66 % |
Don't Collect Void |
Analyze, All, IsPHP, IsStub, IsExt |
67 |
32 |
Minor |
0 % |
Empty Function |
Analyze, All, Simple |
17 |
12 |
Minor |
74 % |
Hardcoded Passwords |
Analyze, Security, OneFile, All, Simple, Level 3 |
5 |
5 |
Major |
70 % |
Insufficient Typehint |
Analyze, All, Typechecks |
43 |
20 |
Major |
43 % |
Method Is Not An If |
Analyze, All |
32 |
21 |
Minor |
0 % |
Mismatched Default Arguments |
Analyze, All, Typechecks |
36 |
16 |
Minor |
80 % |
Mismatched Typehint |
Analyze, All, Typechecks |
376 |
91 |
Major |
66 % |
Modified Typed Parameter |
Analyze, All, ClassReview |
33 |
20 |
Minor |
0 % |
Must Return Methods |
Analyze, All, Simple, Level 2, LintButWontExec, CI-checks, CE, ChangedBehavior |
3 |
2 |
Major |
34 % |
Never Called Parameter |
Analyze, All, Suggestions, Rector, Unused |
46 |
36 |
Minor |
92 % |
No Boolean As Default |
Analyze, All |
188 |
93 |
Minor |
84 % |
No Default For Referenced Parameter |
Analyze, All |
7 |
6 |
Minor |
0 % |
No Return Used |
Analyze, All, Suggestions, Level 4 |
44 |
23 |
Minor |
69 % |
Too Many Local Variables |
Analyze, All |
53 |
43 |
Minor |
64 % |
Class-typed References |
Analyze, All, CI-checks, CE |
1 |
1 |
Minor |
37 % |
Unbinding Closures |
All, CompatibilityPHP74, CE |
1 |
1 |
Minor |
0 % |
Undefined Functions |
stubs |
86 |
25 |
Major |
68 % |
Unused Parameter |
Analyze, All, Simple, Unused |
87 |
56 |
Major |
90 % |
Unused Returned Value |
Analyze, Dead code, OneFile, All, Simple, Unused |
195 |
53 |
Minor |
41 % |
Useless Argument |
Analyze, All |
1 |
1 |
Minor |
0 % |
Useless Referenced Argument |
Analyze, All, ChangedBehavior |
3 |
2 |
Minor |
58 % |
Useless Type Check |
Dead code, OneFile, All |
4 |
4 |
Minor |
0 % |
Uses Default Values |
Analyze, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt |
2815 |
183 |
Minor |
98 % |
Using Deprecated Method |
Analyze, All, Attributes |
15 |
7 |
Minor |
0 % |
Wrong Argument Type |
Analyze, All, Typechecks |
101 |
34 |
Minor |
0 % |
Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks, CE, Stubs, IsPHP, IsStub, IsExt |
85 |
52 |
Major |
81 % |
Wrong Type Returned |
Analyze, All, LintButWontExec, ClassReview, CI-checks, CE |
479 |
122 |
Minor |
0 % |
Wrong Type With Call |
Analyze, All, Typechecks, CI-checks, CE |
772 |
118 |
Minor |
0 % |
Already Parents Interface |
Analyze, All, Suggestions, Level 3, ChangedBehavior |
13 |
13 |
Minor |
26 % |
Forgotten Interface |
Analyze, All, ChangedBehavior |
11 |
11 |
Minor |
48 % |
Empty Interfaces |
Analyze, All, Simple, ChangedBehavior |
1 |
1 |
Minor |
41 % |
Interfaces Is Not Implemented |
Analyze, All, LintButWontExec, ClassReview, CI-checks, CE, ChangedBehavior |
8 |
8 |
Minor |
0 % |
Repeated Interface |
Analyze, All, LintButWontExec, ChangedBehavior |
13 |
13 |
Minor |
0 % |
Undefined Interfaces |
Analyze, All, LintButWontExec, CI-checks, CE, ChangedBehavior, Undefined |
317 |
93 |
Major |
72 % |
Useless Interfaces |
Analyze, ClearPHP, All, Simple, ClassReview, Typechecks, ChangedBehavior |
2 |
2 |
Minor |
59 % |
Hidden Use Expression |
Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
1 |
1 |
Minor |
23 % |
Multiple Alias Definitions |
Analyze, All, Simple, CI-checks, CE, ChangedBehavior |
117 |
74 |
Minor |
44 % |
Should Make Alias |
Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
45 |
8 |
Minor |
46 % |
Unresolved Use |
Analyze, ClearPHP, All, Simple, ChangedBehavior |
452 |
165 |
Major |
69 % |
Unused Use |
Dead code, ClearPHP, All, Simple, php-cs-fixable, Unused, ChangedBehavior |
79 |
47 |
Major |
60 % |
No array_merge() In Loops |
Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE, ChangedBehavior |
24 |
20 |
Major |
57 % |
Logical To in_array |
Analyze, All, Level 2, ChangedBehavior |
33 |
15 |
Minor |
67 % |
Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks, CE, ChangedBehavior |
53 |
27 |
Minor |
74 % |
strpos() Too Much |
Analyze, All, CI-checks, CE, ChangedBehavior |
50 |
24 |
Minor |
49 % |
Use array_slice() |
Analyze, All, CI-checks, CE, ChangedBehavior |
1 |
1 |
Minor |
0 % |
array_key_exists() Works On Arrays |
Analyze, All, CompatibilityPHP74, CE, ChangedBehavior |
3 |
2 |
Minor |
0 % |
Assumptions |
Analyze, All, ChangedBehavior |
94 |
50 |
Minor |
0 % |
Use random_int() |
Analyze, Security, CompatibilityPHP71, All, Simple, Level 2, CI-checks, CE, ChangedBehavior |
7 |
5 |
Major |
59 % |
Constant Scalar Expression |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, ChangedBehavior |
291 |
114 |
Major |
0 % |
Don't Pollute Global Space |
Analyze, All |
1 |
1 |
Minor |
0 % |
Exit Without Argument |
Analyze, All, ChangedBehavior |
1 |
1 |
Minor |
0 % |
False To Array Conversion |
Analyze, All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82 |
76 |
17 |
Minor |
0 % |
Include Variables |
All, Dump |
3 |
3 |
Minor |
0 % |
Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
89 |
28 |
Major |
76 % |
Use === null |
Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, CE, ChangedBehavior |
2 |
2 |
Minor |
53 % |
PHP Native Interfaces and Return Type |
Analyze, All, LintButWontExec, CompatibilityPHP81, Deprecated, ChangedBehavior |
3 |
2 |
Minor |
0 % |
List Short Syntax |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Internal, CompatibilityPHP53, CompatibilityPHP70, All, CE, ChangedBehavior |
63 |
32 |
Major |
17 % |
List With Keys |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Appcontent, CompatibilityPHP53, CompatibilityPHP70, All, CE, ChangedBehavior |
4 |
4 |
Major |
34 % |
PHP Native Class Type Compatibility |
Analyze, All, CompatibilityPHP81, ChangedBehavior |
27 |
10 |
Major |
0 % |
No Class In Global |
Analyze, All, CI-checks, CE, ChangedBehavior |
1 |
1 |
Minor |
77 % |
No Null For Native PHP Functions |
Analyze, All, CompatibilityPHP81, Deprecated, ChangedBehavior |
210 |
55 |
Minor |
0 % |
No Reference For Ternary |
Analyze, All, CI-checks, CE |
1 |
1 |
Major |
14 % |
PHP 8.0 Typehints |
CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, ChangedBehavior |
2 |
1 |
Minor |
0 % |
Php7 Relaxed Keyword |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, CE |
33 |
14 |
Major |
28 % |
PHP 80 Named Parameter Variadic |
All, CompatibilityPHP80, CE |
1 |
1 |
Minor |
0 % |
Php 8.0 Only TypeHints |
Appinfo, CompatibilityPHP56, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CE, ChangedBehavior |
121 |
57 |
Minor |
0 % |
PHP 8.0 Removed Directives |
All, CompatibilityPHP80, CE, CompatibilityPHP81 |
1 |
1 |
Minor |
0 % |
Scalar Are Not Arrays |
Analyze, All, CompatibilityPHP74, CI-checks, CE, ChangedBehavior |
75 |
17 |
Minor |
0 % |
Should Use Coalesce |
Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE |
1 |
1 |
Major |
71 % |
String Int Comparison |
All, CompatibilityPHP80, ChangedBehavior |
42 |
25 |
Minor |
0 % |
Too Many Native Calls |
Analyze, All, IsPHP, IsExt |
6 |
4 |
Minor |
49 % |
Typed Property Usage |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CE |
721 |
150 |
Minor |
6 % |
Use Nullable Type |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, All, CE |
654 |
154 |
Major |
90 % |
Use Pathinfo |
Analyze, All, Simple, Level 3, CI-checks, CE |
2 |
1 |
Minor |
11 % |
Avoid Using stdClass |
Analyze, OneFile, All, Simple, Level 4 |
16 |
4 |
Minor |
46 % |
Wrong Type For Native PHP Function |
Analyze, All, CI-checks, CE |
230 |
63 |
Minor |
0 % |
Avoid Those Hash Functions |
Security, All |
19 |
14 |
Major |
62 % |
Direct Injection |
Security, All, ChangedBehavior |
5 |
2 |
Major |
51 % |
Indirect Injection |
Security, All, ChangedBehavior |
9 |
2 |
Critical |
42 % |
Keep Files Access Restricted |
Security, All, ChangedBehavior |
4 |
4 |
Minor |
0 % |
Avoid sleep()/usleep() |
Security, All, ChangedBehavior |
12 |
7 |
Minor |
41 % |
No Weak SSL Crypto |
Security, All, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Altering Foreach Without Reference |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
9 |
9 |
Major |
56 % |
Comparison Is Always The Same |
Analyze, All, ChangedBehavior |
233 |
75 |
Minor |
0 % |
Array Access On Literal Array |
Analyze, All, Semantics, ChangedBehavior |
2 |
1 |
Minor |
0 % |
Bail Out Early |
Analyze, OneFile, All, Simple, Level 4 |
167 |
83 |
Minor |
64 % |
Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE |
59 |
34 |
Minor |
77 % |
Buried Assignation |
Analyze, All |
136 |
62 |
Minor |
84 % |
Cast To Boolean |
Analyze, OneFile, All, Simple, Level 1 |
8 |
5 |
Minor |
56 % |
Catch Overwrite Variable |
Analyze, ClearPHP, All, Simple |
5 |
3 |
Minor |
25 % |
Check All Types |
Analyze, All |
25 |
13 |
Major |
69 % |
Check Division By Zero |
Analyze, All, ChangedBehavior |
5 |
4 |
Minor |
0 % |
Check JSON |
Analyze, All, CI-checks, CE |
41 |
21 |
Major |
65 % |
Coalesce And Concat |
Analyze, All, CI-checks, CE |
1 |
1 |
Minor |
0 % |
Coalesce And Ternary Operators Order |
Analyze, All, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Common Alternatives |
Analyze, All, Simple |
33 |
22 |
Major |
80 % |
Could Be Else |
Analyze, All |
8 |
6 |
Minor |
49 % |
Could Use Short Assignation |
Analyze, Performances, OneFile, All, Simple, Rector, CI-checks, CE, ChangedBehavior |
6 |
5 |
Minor |
63 % |
Dangling Array References |
Analyze, PHP recommendations, ClearPHP, All, Simple, Level 1, Top10, CI-checks, CE |
3 |
2 |
Major |
46 % |
Default Then Discard |
Analyze, All, Readability |
5 |
5 |
Minor |
0 % |
__DIR__ Then Slash |
Analyze, All, Level 3, CI-checks, CE, ChangedBehavior |
1 |
1 |
Major |
14 % |
Don't Change The Blind Var |
Analyze, All |
50 |
34 |
Minor |
73 % |
Don't Mix ++ |
Analyze, All |
9 |
8 |
Minor |
56 % |
Don't Read And Write In One Expression |
Analyze, All, CompatibilityPHP73, CompatibilityPHP74, CE |
1 |
1 |
Critical |
38 % |
Double Assignation |
Analyze, All |
6 |
6 |
Major |
59 % |
Double Checks |
Analyze, All |
26 |
10 |
Minor |
0 % |
Double Instructions |
Analyze, All, Simple |
7 |
6 |
Minor |
57 % |
Double Object Assignation |
Analyze, All, ClassReview, ChangedBehavior |
6 |
2 |
Minor |
0 % |
Drop Else After Return |
Analyze, OneFile, All, Simple, Suggestions, Level 4, CI-checks, CE |
6 |
5 |
Minor |
70 % |
Echo With Concat |
Analyze, Performances, All, Simple, Suggestions |
2 |
2 |
Minor |
60 % |
Else If Versus Elseif |
Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE |
6 |
5 |
Minor |
66 % |
Empty Blocks |
Analyze, All, Simple, CI-checks, CE |
2 |
2 |
Minor |
51 % |
Empty Json Error |
Analyze, All, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Empty Loop |
Analyze, All, ChangedBehavior |
1 |
1 |
Major |
0 % |
Empty Try Catch |
Analyze, All, Level 3 |
20 |
14 |
Minor |
49 % |
Eval() Usage |
Analyze, Appinfo, Security, Performances, PHP recommendations, OneFile, ClearPHP, All, Simple, CE |
2 |
2 |
Major |
39 % |
eval() Without Try |
Analyze, Security, All, Simple, Level 3, CI-checks, CE, ChangedBehavior |
2 |
2 |
Critical |
36 % |
Exit() Usage |
Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE |
3 |
3 |
Major |
61 % |
Switch Fallthrough |
Inventory, Security, All, Stats |
1 |
1 |
Minor |
39 % |
Global Usage |
Analyze, Appinfo, ClearPHP, All, CE |
2 |
1 |
Minor |
52 % |
Identical Case In Switch |
Analyze, All, ChangedBehavior |
2 |
1 |
Minor |
0 % |
Identical Consecutive Expression |
Analyze, All |
1 |
1 |
Minor |
59 % |
If With Same Conditions |
Analyze, All, Simple, CI-checks, CE |
8 |
7 |
Major |
47 % |
Iffectations |
Analyze, All |
138 |
59 |
Minor |
80 % |
Implode() Arguments Order |
Analyze, All, CI-checks, CE, ChangedBehavior |
3 |
3 |
Minor |
0 % |
Indices Are Int Or String |
Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
24 |
9 |
Major |
20 % |
Infinite Recursion |
Analyze, All |
7 |
6 |
Major |
0 % |
Invalid Cast |
Analyze, All, LintButWontExec, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Logical Mistakes |
Analyze, All, Simple, Level 1, CI-checks, CE |
3 |
3 |
Critical |
32 % |
Long Arguments |
Analyze, All |
143 |
65 |
Minor |
68 % |
Max Level Of Nesting |
Analyze, All |
48 |
36 |
Minor |
0 % |
Merge If Then |
Analyze, All, CI-checks, CE, ChangedBehavior |
81 |
47 |
Minor |
0 % |
Mismatched Ternary Alternatives |
Analyze, All, Suggestions, Level 4 |
5 |
5 |
Major |
64 % |
Missing Assignation In Branches |
Analyze, All, ChangedBehavior |
190 |
84 |
Minor |
0 % |
Maybe Missing New |
Analyze, All, ChangedBehavior |
1 |
1 |
Critical |
57 % |
Missing Parenthesis |
Analyze, All, Simple, Level 5, CI-checks, CE, ChangedBehavior |
1 |
1 |
Major |
16 % |
Mixed Concat And Interpolation |
Analyze, Coding Conventions, All |
7 |
4 |
Minor |
45 % |
Modernize Empty With Expression |
Analyze, OneFile, All, Simple |
17 |
12 |
Minor |
63 % |
Multiple Type Variable |
Analyze, All, Level 4 |
6 |
4 |
Minor |
58 % |
Nested Ifthen |
Analyze, All, RadwellCodes |
226 |
71 |
Major |
84 % |
Nested Ternary |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
10 |
8 |
Major |
50 % |
Don't Change Incomings |
Analyze, All |
4 |
1 |
Minor |
44 % |
No Choice |
Analyze, All, Simple, Level 2, Top10, Rector, CI-checks, CE, ChangedBehavior |
25 |
16 |
Major |
42 % |
No Direct Usage |
Analyze, All, Simple |
2 |
2 |
Major |
39 % |
No Hardcoded Hash |
Analyze, Security, All, Simple |
2 |
2 |
Critical |
45 % |
No Hardcoded Path |
Analyze, ClearPHP, All, Simple |
1 |
1 |
Major |
35 % |
No Max On Empty Array |
All, CompatibilityPHP80, ChangedBehavior |
15 |
7 |
Minor |
0 % |
No Need For Else |
Analyze, All |
12 |
8 |
Minor |
74 % |
No Need For Triple Equal |
Analyze, All |
65 |
36 |
Minor |
0 % |
No Null For Index |
Analyze, All, ChangedBehavior |
18 |
10 |
Minor |
0 % |
No Parenthesis For Language Construct |
Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE, ChangedBehavior |
2 |
1 |
Minor |
62 % |
Avoid Substr() One |
Analyze, Performances, CompatibilityPHP71, All, Simple, Suggestions, Level 2, Top10, CI-checks, CE |
10 |
8 |
Minor |
58 % |
Variable Is Not A Condition |
Analyze, All |
604 |
116 |
Minor |
93 % |
Non Integer Nor String As Index |
Analyze, All, ChangedBehavior |
19 |
7 |
Minor |
0 % |
@ Operator |
Analyze, Appinfo, Performances, ClearPHP, All, CI-checks, CE |
42 |
17 |
Minor |
65 % |
Several Instructions On The Same Line |
Analyze, All, ChangedBehavior |
4 |
3 |
Major |
56 % |
PHP7 Dirname |
CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, Suggestions, php-cs-fixable |
16 |
6 |
Minor |
44 % |
Phpinfo |
Security, OneFile, All, Simple |
1 |
1 |
Major |
16 % |
Printf Number Of Arguments |
Analyze, All, CI-checks, CE |
2 |
1 |
Minor |
41 % |
Random Without Try |
Security, All |
2 |
2 |
Critical |
30 % |
Same Conditions In Condition |
Analyze, All, Simple, CI-checks, CE |
7 |
6 |
Critical |
55 % |
Should Chain Exception |
Analyze, All, Simple, CI-checks, CE |
11 |
8 |
Minor |
39 % |
Should Use Ternary Operator |
Analyze, OneFile, All, Simple, CI-checks, CE |
111 |
57 |
Minor |
86 % |
Preprocessable |
Analyze, All, Rector |
228 |
83 |
Minor |
85 % |
Static Inclusions |
Analyze, All |
2 |
1 |
Minor |
0 % |
Static Loop |
Analyze, All, Simple, Level 4 |
10 |
9 |
Minor |
67 % |
Strpos()-like Comparison |
Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE |
7 |
7 |
Major |
54 % |
Suspicious Comparison |
Analyze, All, Level 3 |
11 |
9 |
Major |
39 % |
Switch To Switch |
Analyze, All, RadwellCodes, Simple |
6 |
5 |
Minor |
58 % |
Switch Without Default |
Analyze, ClearPHP, All, Simple, CI-checks, CE |
8 |
8 |
Major |
69 % |
Test Then Cast |
Analyze, All |
1 |
1 |
Major |
34 % |
Timestamp Difference |
Analyze, All, Simple, Level 3, CI-checks, CE |
6 |
6 |
Major |
49 % |
Unchecked Resources |
Analyze, ClearPHP, All, Simple, Level 2, CI-checks, CE |
1 |
1 |
Major |
50 % |
Unconditional Break In Loop |
Analyze, All, Level 3, CI-checks, CE |
15 |
10 |
Major |
48 % |
Unpreprocessed Values |
Analyze, Performances, OneFile, ClearPHP, All, Simple |
3 |
3 |
Minor |
30 % |
Unreachable Code |
Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3, Unused, ChangedBehavior |
131 |
61 |
Major |
61 % |
Unsupported Types With Operators |
Analyze, All, CompatibilityPHP80, CE |
126 |
60 |
Minor |
0 % |
Unused Label |
Dead code, All, Simple, Unused, ChangedBehavior |
1 |
1 |
Minor |
1 % |
Use Constant Instead Of Function |
Analyze, PHP recommendations, All, php-cs-fixable, CI-checks, CE |
2 |
2 |
Minor |
61 % |
Avoid get_class() |
Analyze, All, Simple, CI-checks, CE, ChangedBehavior |
1 |
1 |
Minor |
32 % |
Use Positive Condition |
Analyze, OneFile, All, Simple |
45 |
31 |
Minor |
82 % |
Use Same Types For Comparisons |
Analyze, All |
1 |
1 |
Minor |
0 % |
Use Variable Created Inside Loop |
Dead code, All |
46 |
23 |
Minor |
0 % |
Useless Type Casting |
Analyze, PHP recommendations, OneFile, All, RadwellCodes, Simple, Level 4, CI-checks, CE |
42 |
23 |
Minor |
47 % |
Useless Check |
Analyze, OneFile, All, Simple, Level 1, CI-checks, CE |
2 |
2 |
Minor |
35 % |
Useless Coalesce |
Analyze, All, ChangedBehavior |
28 |
13 |
Minor |
0 % |
Useless Instructions |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE |
24 |
15 |
Minor |
63 % |
Useless Null Coalesce |
Analyze, All, Typehints |
4 |
3 |
Minor |
0 % |
Useless Parenthesis |
Analyze, All, Simple, CI-checks, CE |
64 |
40 |
Minor |
81 % |
Useless Short Ternary |
Analyze, All, ChangedBehavior |
12 |
8 |
Minor |
0 % |
Wrong Precedence In Expression |
Analyze, All, ChangedBehavior |
4 |
4 |
Minor |
0 % |
Dependant Trait |
Analyze, All, Level 3, ChangedBehavior |
2 |
2 |
Minor |
28 % |
No Real Comparison |
Analyze, PHP recommendations, All, Simple, Level 2, Top10, CI-checks, CE |
1 |
1 |
Major |
26 % |
Should Typecast |
Analyze, OneFile, All, Simple, Rector, CI-checks, CE |
5 |
2 |
Minor |
49 % |
String May Hold A Variable |
Analyze, All, Simple |
40 |
17 |
Minor |
59 % |
Missing Some Returntype |
Analyze, All, Typehints, CI-checks, CE |
60 |
44 |
Minor |
0 % |
StandaloneType True False Null |
Analyze, Appcontent, All, ChangedBehavior |
654 |
154 |
Minor |
0 % |
Wrong Type With Default |
Analyze, All, LintButWontExec, ClassReview |
140 |
64 |
Minor |
0 % |
Assigned Twice |
Analyze, All |
248 |
57 |
Minor |
79 % |
Overwritten Literals |
Analyze, All |
290 |
57 |
Major |
79 % |
Recycled Variables |
Analyze, All |
29 |
11 |
Minor |
0 % |
Undefined Variable |
Analyze, All, CI-checks, CE, Undefined |
611 |
55 |
Minor |
77 % |
Used Once Variables |
Analyze, OneFile, All, Simple, Top10 |
7 |
6 |
Minor |
74 % |
Used Once Variables (In Scope) |
Analyze, OneFile, ClearPHP, All, Simple, Level 4, CE |
124 |
72 |
Minor |
95 % |
Written Only Variables |
Analyze, OneFile, All, Simple, Unused |
103 |
23 |
Minor |
87 % |