Ambiguous Array Index |
Analyze, All, Simple, Level 2 |
2 |
1 |
Minor |
9 % |
Non-constant Index In Array |
Analyze, All, Simple |
13 |
1 |
Minor |
26 % |
Null Or Boolean Arrays |
All, Analyze |
29 |
10 |
Minor |
0 % |
Randomly Sorted Arrays |
All, Analyze, Level 4, Suggestions |
14 |
13 |
Minor |
41 % |
String Initialization |
All, CompatibilityPHP71 |
104 |
35 |
Minor |
33 % |
Too Many Array Dimensions |
All, Analyze |
8 |
3 |
Minor |
0 % |
Abstract Or Implements |
All, Analyze, LintButWontExec |
1 |
1 |
Major |
4 % |
Ambiguous Static |
All, Analyze |
721 |
218 |
Minor |
64 % |
Ambiguous Visibilities |
All, Analyze |
98 |
64 |
Minor |
70 % |
Avoid option arrays in constructors |
All, Analyze, ClassReview |
19 |
19 |
Minor |
0 % |
Avoid Optional Properties |
All, Analyze |
261 |
98 |
Major |
83 % |
Cant Inherit Abstract Method |
All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
4 |
4 |
Critical |
0 % |
Check On __Call Usage |
All, Analyze, CI-checks |
1 |
1 |
Minor |
0 % |
Child Class Removes Typehint |
All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Typechecks |
16 |
12 |
Major |
1 % |
Clone With Non-Object |
All, Analyze, LintButWontExec |
4 |
4 |
Minor |
0 % |
Const Visibility Usage |
All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
222 |
56 |
Minor |
16 % |
Could Be Abstract Class |
All, Analyze, ClassReview |
17 |
17 |
Minor |
65 % |
Class Could Be Final |
All, Analyze, ClassReview |
432 |
432 |
Minor |
95 % |
Method Could Be Static |
All, Analyze, ClassReview |
501 |
234 |
Minor |
95 % |
Cyclic References |
All, Analyze, ClassReview |
9 |
5 |
Minor |
0 % |
Dependant Abstract Classes |
All, Analyze, ClassReview |
2 |
2 |
Minor |
0 % |
Different Argument Counts |
All, Analyze, ClassReview |
1 |
1 |
Minor |
0 % |
No Direct Call To Magic Method |
Analyze, All, Level 2, CI-checks |
8 |
7 |
Major |
41 % |
Don't Send $this In Constructor |
All, Analyze |
6 |
6 |
Minor |
39 % |
Class Should Be Final By Ocramius |
All, Analyze |
4 |
4 |
Minor |
42 % |
Incompatible Signature Methods With Covariance |
All, Analyze |
67 |
57 |
Critical |
0 % |
Locally Unused Property |
Dead code, All, Simple |
226 |
154 |
Minor |
76 % |
Assign Default To Properties |
Analyze, ClearPHP, All, Simple, Level 2 |
48 |
34 |
Minor |
49 % |
Method Signature Must Be Compatible |
All, Analyze, LintButWontExec |
79 |
55 |
Critical |
50 % |
Missing Abstract Method |
All, Analyze, ClassReview |
1 |
1 |
Minor |
0 % |
self, parent, static Outside Class |
All, Analyze, LintButWontExec |
3 |
1 |
Major |
3 % |
No Public Access |
Analyze, All |
55 |
26 |
Minor |
60 % |
Non Nullable Getters |
All, Analyze, ClassReview |
111 |
65 |
Minor |
0 % |
Parent First |
All, Analyze, Suggestions |
44 |
44 |
Minor |
55 % |
Property Could Be Local |
All, Analyze, ClassReview |
12 |
7 |
Minor |
71 % |
Never Used Properties |
Analyze, All, Simple |
32 |
17 |
Minor |
72 % |
Property Used In One Method Only |
All, Analyze |
117 |
80 |
Minor |
84 % |
Redefined Class Constants |
Analyze, All, Simple, CI-checks |
4 |
3 |
Minor |
15 % |
Redefined Default |
Analyze, All, Simple, CI-checks |
2 |
2 |
Major |
26 % |
Scalar Or Object Property |
All, Analyze |
4 |
2 |
Minor |
24 % |
Could Use self |
Analyze, All, Simple, Suggestions, Level 3, ClassReview |
56 |
9 |
Minor |
57 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple |
488 |
214 |
Minor |
94 % |
Static Methods Called From Object |
Analyze, All, Simple, CI-checks |
23 |
15 |
Minor |
38 % |
$this Belongs To Classes Or Traits |
Analyze, All, Simple |
137 |
20 |
Major |
23 % |
Too Many Dereferencing |
All, Analyze |
3 |
2 |
Minor |
0 % |
Too Many Finds |
All, Analyze |
1 |
1 |
Minor |
6 % |
Undefined Classes |
Analyze, All |
429 |
155 |
Major |
91 % |
Undefined Class Constants |
Analyze, All, CI-checks |
154 |
43 |
Major |
53 % |
Undefined Properties |
Analyze, ClearPHP, All, Simple, CI-checks |
31 |
9 |
Major |
58 % |
Undefined static:: Or self:: |
Analyze, All, Simple |
26 |
4 |
Minor |
33 % |
Undefined ::class |
All, Analyze, CI-checks |
5 |
5 |
Major |
34 % |
Unresolved Catch |
Dead code, ClearPHP, All |
12 |
8 |
Major |
51 % |
Unresolved Classes |
Analyze, All |
79 |
47 |
Major |
86 % |
Unresolved Instanceof |
Analyze, Dead code, ClearPHP, All, Simple, Top10 |
12 |
11 |
Major |
48 % |
Unused Classes |
Dead code, All, Simple, Analyze |
11 |
11 |
Major |
72 % |
Unused Class Constant |
All, Analyze, ClassReview |
23 |
11 |
Minor |
0 % |
Unused Methods |
Dead code, All, Simple |
1295 |
331 |
Minor |
95 % |
Unused Private Methods |
Dead code, OneFile, All, Simple |
12 |
9 |
Minor |
45 % |
Unused Protected Methods |
Dead code, All |
135 |
57 |
Major |
72 % |
Use Class Operator |
All, Analyze, Performances, Simple, CI-checks |
18 |
18 |
Minor |
74 % |
Use Instanceof |
Analyze, All, Simple, CI-checks |
34 |
22 |
Major |
63 % |
Used Once Property |
All, Analyze |
47 |
38 |
Minor |
72 % |
Useless Abstract Class |
Analyze, All, Simple |
3 |
3 |
Minor |
60 % |
Weak Typing |
All, Analyze |
7 |
7 |
Minor |
41 % |
Illegal Name For Method |
All, Analyze, OneFile, Simple |
1 |
1 |
Major |
19 % |
Use const |
Analyze, Coding Conventions, All, Top10, CI-checks |
9 |
3 |
Minor |
57 % |
Constants With Strange Names |
Analyze, All, Simple, CI-checks |
8 |
2 |
Minor |
1 % |
Invalid Constant Name |
Analyze, All, Simple |
8 |
2 |
Major |
1 % |
Undefined Constants |
Analyze, All, Simple, CompatibilityPHP72, CI-checks |
117 |
45 |
Minor |
54 % |
Unused Constants |
Dead code, All, Simple |
8 |
2 |
Minor |
36 % |
Catch Undefined Variable |
All, Analyze |
15 |
1 |
Minor |
0 % |
Undefined Caught Exceptions |
Dead code, All |
11 |
7 |
None |
50 % |
Forgotten Thrown |
All, Analyze |
1 |
1 |
Major |
30 % |
Multiple Exceptions Catch() |
CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Appinfo |
2 |
2 |
Major |
9 % |
Rethrown Exceptions |
All, Dead code |
2 |
2 |
Minor |
18 % |
Uncaught Exceptions |
Analyze, All |
342 |
148 |
Minor |
81 % |
Unthrown Exception |
Analyze, Dead code, ClearPHP, All, Simple |
13 |
13 |
Minor |
43 % |
Useless Catch |
All, Analyze, CI-checks |
14 |
13 |
Minor |
47 % |
Missing Include |
All, Analyze |
3 |
3 |
Critical |
61 % |
Aliases Usage |
Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks |
1 |
1 |
Minor |
42 % |
Use Named Boolean In Argument Definition |
All, Analyze |
191 |
75 |
Minor |
84 % |
Callback Needs Return |
All, Analyze, CI-checks |
3 |
3 |
Major |
51 % |
Could Make A Function |
All, Analyze, Suggestions |
913 |
204 |
Minor |
75 % |
Dont Collect Void |
All, Analyze |
9 |
8 |
Minor |
0 % |
Empty Function |
Analyze, All, Simple |
37 |
19 |
Minor |
71 % |
Generator Cannot Return |
All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
2 |
1 |
Major |
0 % |
Hardcoded Passwords |
Analyze, OneFile, Security, All, Simple, Level 3 |
27 |
23 |
Major |
61 % |
Insufficient Typehint |
All, Analyze, Typechecks |
39 |
23 |
Major |
24 % |
Mismatch Parameter And Type |
All, Analyze, Semantics |
3 |
3 |
Minor |
0 % |
Mismatch Parameter Name |
All, Analyze, CompatibilityPHP80 |
9 |
9 |
Minor |
0 % |
Mismatch Type And Default |
All, Analyze, LintButWontExec, Typechecks |
3 |
2 |
Critical |
11 % |
Mismatched Default Arguments |
All, Analyze, Typechecks |
475 |
168 |
Minor |
33 % |
Mismatched Typehint |
All, Analyze, Typechecks |
240 |
107 |
Major |
5 % |
Modified Typed Parameter |
All, Analyze, ClassReview |
46 |
35 |
Minor |
0 % |
Must Return Methods |
Analyze, All, Simple, Level 2, LintButWontExec, CI-checks |
10 |
9 |
Major |
22 % |
Never Used Parameter |
All, Analyze, Suggestions |
537 |
204 |
Minor |
47 % |
No Boolean As Default |
All, Analyze |
191 |
75 |
Minor |
84 % |
No Return Used |
All, Analyze, Suggestions, Level 4 |
121 |
65 |
Minor |
41 % |
Only Variable Passed By Reference |
All, Analyze |
8 |
6 |
Critical |
40 % |
Relay Function |
Analyze, All |
144 |
67 |
Major |
83 % |
Too Many Local Variables |
All, Analyze |
17 |
11 |
Minor |
65 % |
Typehint Must Be Returned |
All, Analyze, LintButWontExec, CI-checks |
9 |
8 |
Major |
10 % |
Undefined Functions |
Analyze, All, CI-checks |
618 |
187 |
Major |
71 % |
Unused Arguments |
Analyze, All, Simple |
158 |
70 |
Major |
89 % |
Unused Returned Value |
All, Analyze, OneFile, Dead code, Simple |
7 |
2 |
Minor |
39 % |
Use Constant As Arguments |
Analyze, All, Simple, CI-checks |
3 |
2 |
Major |
25 % |
Useless Referenced Argument |
All, Analyze |
3 |
3 |
Minor |
57 % |
Useless Type Check |
All, Dead code, OneFile |
24 |
22 |
Minor |
0 % |
Uses Default Values |
Analyze, All, Simple, CI-checks |
1568 |
264 |
Minor |
97 % |
Using Deprecated Method |
All, Analyze |
8 |
3 |
Minor |
0 % |
Methods Without Return |
All, Analyze |
50 |
41 |
Minor |
0 % |
Wrong Argument Type |
All, Analyze, Typechecks |
5 |
2 |
Minor |
0 % |
Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks |
65 |
40 |
Major |
38 % |
Wrong Returned Type |
All, Analyze, ClassReview, CI-checks |
556 |
198 |
Minor |
0 % |
Wrong Type With Call |
All, Analyze, Typechecks, CI-checks |
49 |
25 |
Minor |
0 % |
Already Parents Interface |
Analyze, All, Level 3, Suggestions |
1 |
1 |
Minor |
17 % |
Forgotten Interface |
All, Analyze |
3 |
3 |
Minor |
52 % |
Empty Interfaces |
Analyze, All, Simple |
1 |
1 |
Minor |
38 % |
Interfaces Is Not Implemented |
All, Analyze, ClassReview, LintButWontExec, CI-checks |
43 |
43 |
Minor |
0 % |
Interfaces Don't Ensure Properties |
All, Analyze, ClassReview |
4 |
3 |
Minor |
0 % |
Undefined Interfaces |
Analyze, All, CI-checks |
410 |
169 |
Major |
67 % |
Unused Interfaces |
Dead code, All, Simple, Suggestions, Level 2 |
1 |
1 |
Minor |
25 % |
Useless Interfaces |
Analyze, ClearPHP, All, Simple, ClassReview, Typechecks |
7 |
7 |
Minor |
57 % |
Multiple Alias Definitions |
Analyze, All, Simple, CI-checks |
252 |
206 |
Minor |
42 % |
Should Make Alias |
Analyze, OneFile, All, Simple, CI-checks |
1 |
1 |
Minor |
44 % |
Unresolved Use |
Analyze, ClearPHP, All, Simple |
261 |
159 |
Major |
65 % |
Unused Use |
Dead code, ClearPHP, All, Simple |
4 |
1 |
Major |
54 % |
No array_merge() In Loops |
Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks |
20 |
17 |
Major |
55 % |
Logical To in_array |
All, Analyze, Level 2 |
60 |
34 |
Minor |
66 % |
Memoize MagicCall |
All, Analyze, ClassReview |
10 |
4 |
Minor |
0 % |
Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks |
88 |
39 |
Minor |
74 % |
strpos() Too Much |
All, Analyze, CI-checks |
39 |
22 |
Minor |
46 % |
array_key_exists() Works On Arrays |
All, CompatibilityPHP74, Analyze |
37 |
18 |
Minor |
0 % |
Assumptions |
All, Analyze |
402 |
151 |
Minor |
0 % |
Avoid set_error_handler $context Argument |
All, CompatibilityPHP72 |
1 |
1 |
Major |
16 % |
Use random_int() |
Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks |
9 |
7 |
Major |
59 % |
Direct Call To __clone() |
All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
2 |
2 |
Critical |
3 % |
Don't Pollute Global Space |
All, Analyze |
32 |
6 |
Minor |
0 % |
Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks |
56 |
26 |
Major |
45 % |
List Short Syntax |
Internal, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Appinfo |
149 |
80 |
Major |
10 % |
List With Keys |
CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Appcontent, Appinfo, All |
39 |
23 |
Major |
32 % |
No Class In Global |
All, Analyze, CI-checks |
22 |
4 |
Minor |
78 % |
PHP 7.0 Scalar Typehints |
All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
2858 |
490 |
Critical |
31 % |
PHP 7.1 Scalar Typehints |
All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
43 |
25 |
Critical |
0 % |
PHP 7.2 Scalar Typehints |
All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
12 |
9 |
Critical |
0 % |
Php7 Relaxed Keyword |
CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Appinfo |
21 |
9 |
Major |
25 % |
PHP Keywords As Names |
Analyze, All, Simple |
1534 |
177 |
Major |
89 % |
Scalar Are Not Arrays |
All, Analyze, CompatibilityPHP74, CI-checks |
321 |
27 |
Minor |
0 % |
Should Use Coalesce |
Analyze, All, Simple, Suggestions, Level 3, CI-checks |
1 |
1 |
Major |
71 % |
Use Nullable Type |
All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
900 |
289 |
Major |
21 % |
Use Pathinfo |
Analyze, All, Simple, Level 3, CI-checks |
5 |
4 |
Minor |
8 % |
Usort Sorting In PHP 7.0 |
CompatibilityPHP70, All |
3 |
3 |
Major |
46 % |
Wrong Type For Native PHP Function |
All, Analyze, CI-checks |
138 |
73 |
Minor |
0 % |
Avoid Those Hash Functions |
Security, All |
15 |
7 |
Major |
60 % |
Configure Extract |
All, Security |
2 |
2 |
Minor |
22 % |
Don't Echo Error |
All, Analyze, Security, Simple, Level 1, CI-checks |
1 |
1 |
Critical |
32 % |
Encoded Simple Letters |
All, Security |
2 |
1 |
Minor |
40 % |
No Net For Xml Load |
All, Security |
3 |
3 |
Major |
49 % |
Avoid sleep()/usleep() |
Security, All |
1 |
1 |
Minor |
39 % |
Session Lazy Write |
All, Security |
2 |
2 |
Major |
4 % |
Set Cookie Safe Arguments |
All, Security |
1 |
1 |
Major |
23 % |
Should Use session_regenerateid() |
All, Security |
1 |
1 |
Major |
82 % |
Unserialize Second Arg |
Security, All |
10 |
10 |
Critical |
49 % |
Adding Zero |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks |
53 |
31 |
Minor |
33 % |
Altering Foreach Without Reference |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks |
20 |
17 |
Major |
52 % |
Alternative Syntax Consistence |
All, Analyze |
7 |
1 |
Major |
20 % |
Constant Comparison |
All, Analyze |
65 |
40 |
Minor |
0 % |
Array_merge Needs Array Of Arrays |
All, Analyze |
43 |
28 |
Minor |
0 % |
Same Variable Foreach |
All, Analyze, CI-checks |
1 |
1 |
Minor |
12 % |
Bail Out Early |
All, Analyze, OneFile, Simple, Level 4 |
4 |
3 |
Minor |
92 % |
Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks |
27 |
13 |
Minor |
76 % |
Buried Assignation |
Analyze, All |
73 |
40 |
Minor |
82 % |
Cast To Boolean |
Analyze, OneFile, All, Simple, Level 1 |
7 |
5 |
Minor |
55 % |
Catch Overwrite Variable |
Analyze, ClearPHP, All, Simple |
2 |
2 |
Minor |
23 % |
Check All Types |
All, Analyze |
90 |
51 |
Major |
68 % |
Check JSON |
All, Analyze, CI-checks |
1 |
1 |
Major |
64 % |
Coalesce And Concat |
All, Analyze, CI-checks |
3 |
2 |
Minor |
0 % |
Common Alternatives |
Analyze, All, Simple |
21 |
17 |
Major |
61 % |
Could Be Else |
All, Analyze |
4 |
3 |
Minor |
48 % |
Could Use Short Assignation |
Analyze, OneFile, Performances, All, Simple, CI-checks |
48 |
37 |
Minor |
60 % |
Dangling Array References |
PHP recommendations, Analyze, ClearPHP, All, Simple, Level 1, Top10, CI-checks |
7 |
7 |
Major |
40 % |
Dont Change The Blind Var |
All, Analyze |
103 |
60 |
Minor |
72 % |
Dont Mix ++ |
All, Analyze |
9 |
7 |
Minor |
43 % |
Double Assignation |
Analyze, All |
7 |
7 |
Major |
55 % |
Double Instructions |
Analyze, All, Simple |
7 |
5 |
Minor |
57 % |
Drop Else After Return |
All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks |
5 |
3 |
Minor |
70 % |
Echo With Concat |
Performances, Analyze, All, Simple, Suggestions |
3 |
3 |
Minor |
58 % |
Else If Versus Elseif |
Analyze, All, Simple, php-cs-fixable, Rector, CI-checks |
1 |
1 |
Minor |
65 % |
Empty Blocks |
Analyze, All, Simple, CI-checks |
2 |
2 |
Minor |
57 % |
Empty Instructions |
Dead code, Analyze, All, Simple |
114 |
26 |
Minor |
43 % |
Empty Try Catch |
Analyze, All, Level 3 |
6 |
6 |
Minor |
47 % |
Exit() Usage |
Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks |
2 |
2 |
Major |
60 % |
Switch Fallthrough |
All, Inventory, Security, Stats |
1 |
1 |
Minor |
37 % |
Foreach Reference Is Not Modified |
Analyze, All, Simple, CI-checks |
2 |
1 |
Minor |
24 % |
Overwritten Source And Value |
All, Analyze, OneFile |
1 |
1 |
Minor |
0 % |
Htmlentities Calls |
Analyze, All, Simple, CI-checks |
1 |
1 |
Major |
39 % |
Identical Consecutive Expression |
All, Analyze |
6 |
3 |
Minor |
58 % |
If With Same Conditions |
Analyze, All, Simple, CI-checks |
10 |
10 |
Major |
44 % |
Iffectations |
Analyze, All |
1 |
1 |
Minor |
80 % |
Implied If |
Analyze, ClearPHP, All, Simple, CI-checks |
1 |
1 |
Major |
29 % |
Implode() Arguments Order |
All, Analyze, CI-checks |
6 |
6 |
Minor |
0 % |
Inconsistent Elseif |
All, Analyze |
26 |
23 |
Major |
73 % |
Indices Are Int Or String |
Analyze, OneFile, All, Simple, CI-checks |
2 |
1 |
Major |
18 % |
Infinite Recursion |
All, Analyze |
115 |
48 |
Major |
0 % |
Logical Mistakes |
Analyze, All, Simple, Level 1, CI-checks |
2 |
2 |
Critical |
31 % |
Long Arguments |
All, Analyze |
4 |
4 |
Minor |
67 % |
Max Level Of Nesting |
All, Analyze |
16 |
10 |
Minor |
0 % |
Merge If Then |
All, Analyze, CI-checks |
45 |
34 |
Minor |
0 % |
Mismatched Ternary Alternatives |
All, Analyze, Suggestions, Level 4 |
10 |
10 |
Major |
62 % |
Missing Cases In Switch |
All, Analyze |
3 |
3 |
Minor |
2 % |
Missing New ? |
All, Analyze |
10 |
5 |
Critical |
5 % |
Mixed Concat And Interpolation |
All, Coding Conventions, Analyze |
3 |
3 |
Minor |
43 % |
Modernize Empty With Expression |
All, Analyze, OneFile, Simple |
50 |
38 |
Minor |
56 % |
Multiple Type Variable |
All, Analyze, Level 4 |
33 |
18 |
Minor |
43 % |
Nested Ifthen |
Analyze, All, RadwellCodes |
51 |
33 |
Major |
87 % |
Nested Ternary |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks |
20 |
1 |
Major |
20 % |
No Append On Source |
All, Analyze |
1 |
1 |
Minor |
0 % |
No Choice |
Analyze, All, Simple, Level 2, Top10, CI-checks |
1 |
1 |
Major |
43 % |
No Hardcoded Hash |
Analyze, Security, All, Simple |
2 |
2 |
Critical |
44 % |
No isset() With empty() |
All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks |
1 |
1 |
Minor |
28 % |
No Need For Else |
All, Analyze |
11 |
7 |
Minor |
74 % |
No Need For Triple Equal |
All, Analyze |
45 |
32 |
Minor |
0 % |
Avoid Substr() One |
Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks |
24 |
19 |
Minor |
57 % |
Variable Is Not A Condition |
All, Analyze |
740 |
204 |
Minor |
57 % |
@ Operator |
Appinfo, ClearPHP, All, Analyze, Performances, CI-checks |
22 |
6 |
Minor |
66 % |
include_once() Usage |
Analyze, Appinfo, All |
1 |
1 |
Minor |
73 % |
Several Instructions On The Same Line |
Analyze, All |
12 |
11 |
Major |
57 % |
PHP7 Dirname |
CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Suggestions, php-cs-fixable |
4 |
3 |
Minor |
42 % |
Printf Number Of Arguments |
All, Analyze, CI-checks |
10 |
4 |
Minor |
42 % |
Return True False |
Analyze, All, Simple, Level 1, CI-checks |
2 |
2 |
Major |
53 % |
Same Conditions In Condition |
Analyze, All, Simple, CI-checks |
8 |
7 |
Critical |
49 % |
Should Chain Exception |
Analyze, All, Simple, CI-checks |
2 |
2 |
Minor |
36 % |
Should Make Ternary |
All, Analyze, OneFile, Simple, CI-checks |
145 |
92 |
Minor |
85 % |
Preprocessable |
Analyze, All, Rector |
146 |
65 |
Minor |
86 % |
Should Use Explode Args |
All, Analyze, CI-checks |
3 |
2 |
Minor |
0 % |
Static Loop |
Analyze, All, Simple, Level 4 |
24 |
18 |
Minor |
65 % |
Strpos()-like Comparison |
Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks |
12 |
8 |
Major |
54 % |
Suspicious Comparison |
All, Analyze, Level 3 |
1 |
1 |
Major |
15 % |
Switch To Switch |
Analyze, All, RadwellCodes, Simple |
5 |
5 |
Minor |
79 % |
Switch Without Default |
Analyze, ClearPHP, All, Simple, CI-checks |
13 |
13 |
Major |
68 % |
Test Then Cast |
All, Analyze |
2 |
1 |
Major |
32 % |
Timestamp Difference |
Analyze, All, Simple, Level 3, CI-checks |
1 |
1 |
Major |
50 % |
Unchecked Resources |
Analyze, ClearPHP, All, Simple, Level 2, CI-checks |
2 |
2 |
Major |
49 % |
Unconditional Break In Loop |
All, Analyze, Level 3, CI-checks |
10 |
7 |
Major |
46 % |
Unpreprocessed Values |
Analyze, OneFile, ClearPHP, All, Simple |
5 |
4 |
Minor |
28 % |
Unreachable Code |
Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3 |
38 |
27 |
Major |
44 % |
Unset In Foreach |
Dead code, Analyze, OneFile, All, Simple |
1 |
1 |
Major |
34 % |
Unsupported Types With Operators |
All, Analyze, CompatibilityPHP80 |
46 |
17 |
Minor |
0 % |
Use Positive Condition |
All, Analyze, OneFile, Simple |
48 |
38 |
Minor |
81 % |
Useless Casting |
All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks |
26 |
15 |
Minor |
37 % |
Useless Check |
All, Analyze, OneFile, Simple, Level 1, CI-checks |
1 |
1 |
Minor |
48 % |
Useless Instructions |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks |
54 |
37 |
Minor |
58 % |
Useless Parenthesis |
Analyze, All, Simple, CI-checks |
45 |
31 |
Minor |
81 % |
Useless Unset |
Analyze, OneFile, ClearPHP, All, Simple, Level 2, CI-checks |
1 |
1 |
Major |
28 % |
Dependant Trait |
Analyze, All, Level 3 |
21 |
21 |
Minor |
26 % |
Trait Not Found |
All, Analyze, LintButWontExec |
6 |
6 |
Minor |
0 % |
No Real Comparison |
Analyze, All, Simple, Level 2, Top10, CI-checks |
1 |
1 |
Major |
22 % |
One Variable String |
Analyze, All, RadwellCodes, Simple, CI-checks |
2 |
2 |
Minor |
29 % |
Should Typecast |
Analyze, OneFile, All, Simple, CI-checks |
7 |
3 |
Minor |
47 % |
String May Hold A Variable |
Analyze, All, Simple |
31 |
16 |
Minor |
58 % |
Missing Returntype In Method |
All, Typehints, Analyze, CI-checks |
397 |
141 |
Minor |
0 % |
Assigned Twice |
All, Analyze |
248 |
66 |
Minor |
78 % |
Overwritten Literals |
Analyze, All |
277 |
69 |
Major |
78 % |
Strange Name For Variables |
All, Analyze |
10 |
7 |
Minor |
28 % |
Undefined Constant Name |
All, Analyze |
60 |
1 |
Minor |
0 % |
Undefined Variable |
All, Analyze, CI-checks |
262 |
51 |
Minor |
77 % |
Used Once Variables |
Analyze, OneFile, All, Simple, Top10 |
2 |
2 |
Minor |
87 % |
Used Once Variables (In Scope) |
Analyze, ClearPHP, OneFile, All, Simple, Level 4 |
348 |
163 |
Minor |
95 % |
Written Only Variables |
Analyze, OneFile, All, Simple |
113 |
60 |
Minor |
78 % |