Non-constant Index In Array |
Analyze, All, Simple |
32 |
5 |
Minor |
26 % |
Null Or Boolean Arrays |
All, Analyze |
1 |
1 |
Minor |
0 % |
Class Could Be Final |
All, Analyze, ClassReview |
1 |
1 |
Minor |
95 % |
No Public Access |
Analyze, All |
1 |
1 |
Minor |
60 % |
Property Used In One Method Only |
All, Analyze |
1 |
1 |
Minor |
84 % |
Undefined Classes |
Analyze, All |
29 |
24 |
Major |
91 % |
Undefined Class Constants |
Analyze, All, CI-checks |
3 |
1 |
Major |
53 % |
Unresolved Catch |
Dead code, ClearPHP, All |
1 |
1 |
Major |
51 % |
Unresolved Classes |
Analyze, All |
8 |
5 |
Major |
86 % |
Unused Methods |
Dead code, All, Simple |
1 |
1 |
Minor |
95 % |
Undefined Constants |
Analyze, All, Simple, CompatibilityPHP72, CI-checks |
49 |
10 |
Minor |
54 % |
Undefined Caught Exceptions |
Dead code, All |
1 |
1 |
None |
50 % |
Missing Include |
All, Analyze |
139 |
57 |
Critical |
61 % |
Could Make A Function |
All, Analyze, Suggestions |
828 |
305 |
Minor |
75 % |
Too Many Local Variables |
All, Analyze |
1 |
1 |
Minor |
65 % |
Undefined Functions |
Analyze, All, CI-checks |
2296 |
271 |
Major |
71 % |
Unused Returned Value |
All, Analyze, OneFile, Dead code, Simple |
15 |
10 |
Minor |
39 % |
Uses Default Values |
Analyze, All, Simple, CI-checks |
1784 |
325 |
Minor |
97 % |
Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks |
6 |
2 |
Major |
38 % |
Hidden Use Expression |
Analyze, OneFile, All, Simple, CI-checks |
19 |
19 |
Minor |
24 % |
Unresolved Use |
Analyze, ClearPHP, All, Simple |
19 |
19 |
Major |
65 % |
Logical To in_array |
All, Analyze, Level 2 |
9 |
4 |
Minor |
66 % |
Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks |
126 |
55 |
Minor |
74 % |
Deprecated Functions |
Analyze, All, CI-checks |
19 |
19 |
Major |
22 % |
Don't Pollute Global Space |
All, Analyze |
8 |
6 |
Minor |
0 % |
Incompilable Files |
Analyze, Appinfo, ClearPHP, All, Simple |
2 |
2 |
Critical |
0 % |
Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks |
7 |
2 |
Major |
45 % |
Logical Should Use Symbolic Operators |
Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks |
180 |
54 |
Minor |
42 % |
No Class In Global |
All, Analyze, CI-checks |
8 |
6 |
Minor |
78 % |
PHP 7.2 Deprecations |
All, CompatibilityPHP72 |
19 |
19 |
Major |
1 % |
PHP 7.2 Removed Functions |
All, CompatibilityPHP72 |
19 |
19 |
Major |
1 % |
PHP 8.0 Removed Functions |
All, CompatibilityPHP80 |
19 |
19 |
Major |
0 % |
Should Use Coalesce |
Analyze, All, Simple, Suggestions, Level 3, CI-checks |
1 |
1 |
Major |
71 % |
Wrong Type For Native PHP Function |
All, Analyze, CI-checks |
295 |
289 |
Minor |
0 % |
Direct Injection |
Security, All |
179 |
84 |
Major |
41 % |
Don't Echo Error |
All, Analyze, Security, Simple, Level 1, CI-checks |
4 |
3 |
Critical |
32 % |
Indirect Injection |
Security, All |
994 |
194 |
Critical |
21 % |
Integer Conversion |
All, Security |
11 |
6 |
Major |
0 % |
Should Use Prepared Statement |
Analyze, Security, All, Simple, CI-checks |
743 |
222 |
Major |
22 % |
Should Use session_regenerateid() |
All, Security |
1 |
1 |
Major |
82 % |
Adding Zero |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks |
91 |
22 |
Minor |
33 % |
Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks |
47 |
44 |
Minor |
76 % |
Buried Assignation |
Analyze, All |
4 |
4 |
Minor |
82 % |
Check All Types |
All, Analyze |
9 |
8 |
Major |
68 % |
Check JSON |
All, Analyze, CI-checks |
44 |
44 |
Major |
64 % |
Common Alternatives |
Analyze, All, Simple |
394 |
56 |
Major |
61 % |
Concat Empty String |
All, Analyze, OneFile |
42 |
28 |
Minor |
0 % |
Could Be Else |
All, Analyze |
6 |
6 |
Minor |
48 % |
Could Use __DIR__ |
Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks |
2 |
1 |
Major |
56 % |
Could Use Short Assignation |
Analyze, OneFile, Performances, All, Simple, CI-checks |
821 |
143 |
Minor |
60 % |
Dont Change The Blind Var |
All, Analyze |
1 |
1 |
Minor |
72 % |
Double Assignation |
Analyze, All |
14 |
6 |
Major |
55 % |
Double Instructions |
Analyze, All, Simple |
23 |
6 |
Minor |
57 % |
Echo With Concat |
Performances, Analyze, All, Simple, Suggestions |
1284 |
155 |
Minor |
58 % |
Else If Versus Elseif |
Analyze, All, Simple, php-cs-fixable, Rector, CI-checks |
178 |
42 |
Minor |
65 % |
Empty Blocks |
Analyze, All, Simple, CI-checks |
5 |
5 |
Minor |
57 % |
Empty Instructions |
Dead code, Analyze, All, Simple |
2984 |
142 |
Minor |
43 % |
Exit() Usage |
Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks |
81 |
66 |
Major |
60 % |
Forgotten Whitespace |
Analyze, All, CI-checks |
58 |
57 |
Minor |
15 % |
If With Same Conditions |
Analyze, All, Simple, CI-checks |
4 |
4 |
Major |
44 % |
Iffectations |
Analyze, All |
2 |
2 |
Minor |
80 % |
list() May Omit Variables |
Analyze, All, Simple, Suggestions, Level 3, CI-checks |
19 |
19 |
Minor |
37 % |
Max Level Of Nesting |
All, Analyze |
1 |
1 |
Minor |
0 % |
Merge If Then |
All, Analyze, CI-checks |
18 |
11 |
Minor |
0 % |
Mixed Concat And Interpolation |
All, Coding Conventions, Analyze |
4 |
4 |
Minor |
43 % |
Nested Ifthen |
Analyze, All, RadwellCodes |
142 |
41 |
Major |
87 % |
No Choice |
Analyze, All, Simple, Level 2, Top10, CI-checks |
4 |
2 |
Major |
43 % |
No Direct Usage |
Analyze, All, Simple |
9 |
8 |
Major |
36 % |
No Hardcoded Path |
Analyze, ClearPHP, All, Simple |
2 |
2 |
Major |
33 % |
No Parenthesis For Language Construct |
Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks |
768 |
166 |
Minor |
61 % |
Avoid Substr() One |
Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks |
11 |
5 |
Minor |
57 % |
Variable Is Not A Condition |
All, Analyze |
46 |
45 |
Minor |
57 % |
@ Operator |
Appinfo, ClearPHP, All, Analyze, Performances, CI-checks |
9 |
8 |
Minor |
66 % |
include_once() Usage |
Analyze, Appinfo, All |
1 |
1 |
Minor |
73 % |
Several Instructions On The Same Line |
Analyze, All |
243 |
63 |
Major |
57 % |
Or Die |
Analyze, OneFile, ClearPHP, All, Simple, CI-checks |
2 |
2 |
Minor |
13 % |
Phpinfo |
OneFile, All, Simple, Security |
2 |
2 |
Major |
14 % |
Print And Die |
Analyze, All, Simple, CI-checks |
35 |
20 |
Minor |
29 % |
Queries In Loops |
Analyze, OneFile, All, Simple, Level 1, Top10 |
47 |
30 |
Major |
7 % |
Repeated print() |
Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks |
377 |
144 |
Major |
49 % |
Return True False |
Analyze, All, Simple, Level 1, CI-checks |
3 |
3 |
Major |
53 % |
Same Conditions In Condition |
Analyze, All, Simple, CI-checks |
5 |
5 |
Critical |
49 % |
Should Make Ternary |
All, Analyze, OneFile, Simple, CI-checks |
110 |
73 |
Minor |
85 % |
Preprocessable |
Analyze, All, Rector |
1 |
1 |
Minor |
86 % |
Static Loop |
Analyze, All, Simple, Level 4 |
58 |
27 |
Minor |
65 % |
Switch To Switch |
Analyze, All, RadwellCodes, Simple |
71 |
17 |
Minor |
79 % |
Unreachable Code |
Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3 |
1 |
1 |
Major |
44 % |
Use Constant |
PHP recommendations, All, Analyze, php-cs-fixable, CI-checks |
2 |
1 |
Minor |
0 % |
Use Positive Condition |
All, Analyze, OneFile, Simple |
133 |
97 |
Minor |
81 % |
Useless Instructions |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks |
57 |
40 |
Minor |
58 % |
Useless Parenthesis |
Analyze, All, Simple, CI-checks |
3 |
3 |
Minor |
81 % |
var_dump()... Usage |
Analyze, ClearPHP, Security, All, CI-checks |
5 |
3 |
Critical |
40 % |
While(List() = Each()) |
Analyze, Performances, OneFile, All, Simple, Suggestions, Level 2, CI-checks |
19 |
19 |
Minor |
15 % |
One Variable String |
Analyze, All, RadwellCodes, Simple, CI-checks |
6 |
3 |
Minor |
29 % |
Should Typecast |
Analyze, OneFile, All, Simple, CI-checks |
21 |
14 |
Minor |
47 % |
Strings With Strange Space |
All, Analyze, CI-checks |
3 |
3 |
Minor |
15 % |
Assigned Twice |
All, Analyze |
21 |
1 |
Minor |
78 % |
Overwritten Literals |
Analyze, All |
21 |
1 |
Major |
78 % |
Undefined Variable |
All, Analyze, CI-checks |
2197 |
294 |
Minor |
77 % |
Used Once Variables |
Analyze, OneFile, All, Simple, Top10 |
18 |
11 |
Minor |
87 % |
Used Once Variables (In Scope) |
Analyze, ClearPHP, OneFile, All, Simple, Level 4 |
722 |
240 |
Minor |
95 % |