String Initialization |
All, CompatibilityPHP71 |
10 |
5 |
Minor |
33 % |
Too Many Array Dimensions |
All, Analyze |
3 |
1 |
Minor |
0 % |
Avoid Optional Properties |
All, Analyze |
1 |
1 |
Major |
83 % |
Cant Instantiate Class |
All, Analyze |
1 |
1 |
Critical |
28 % |
Class Could Be Final |
All, Analyze, ClassReview |
17 |
14 |
Minor |
95 % |
Method Could Be Static |
All, Analyze, ClassReview |
24 |
8 |
Minor |
95 % |
Empty Classes |
Analyze, All, Simple |
3 |
1 |
Minor |
58 % |
Locally Unused Property |
Dead code, All, Simple |
17 |
3 |
Minor |
76 % |
Assign Default To Properties |
Analyze, ClearPHP, All, Simple, Level 2 |
3 |
2 |
Minor |
49 % |
Make Global A Property |
Analyze, All, Simple |
6 |
1 |
Minor |
33 % |
No Public Access |
Analyze, All |
47 |
7 |
Minor |
60 % |
Property Used In One Method Only |
All, Analyze |
27 |
9 |
Minor |
84 % |
Redefined Default |
Analyze, All, Simple, CI-checks |
3 |
2 |
Major |
26 % |
Scalar Or Object Property |
All, Analyze |
1 |
1 |
Minor |
24 % |
Could Use self |
Analyze, All, Simple, Suggestions, Level 3, ClassReview |
2 |
2 |
Minor |
57 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple |
42 |
13 |
Minor |
94 % |
Undefined Classes |
Analyze, All |
20 |
3 |
Major |
91 % |
Undefined Class Constants |
Analyze, All, CI-checks |
1 |
1 |
Major |
53 % |
Unresolved Classes |
Analyze, All |
11 |
3 |
Major |
86 % |
Unused Classes |
Dead code, All, Simple, Analyze |
4 |
2 |
Major |
72 % |
Unused Class Constant |
All, Analyze, ClassReview |
1 |
1 |
Minor |
0 % |
Unused Methods |
Dead code, All, Simple |
40 |
14 |
Minor |
95 % |
Unused Protected Methods |
Dead code, All |
2 |
1 |
Major |
72 % |
Use Class Operator |
All, Analyze, Performances, Simple, CI-checks |
18 |
8 |
Minor |
74 % |
Use Instanceof |
Analyze, All, Simple, CI-checks |
19 |
5 |
Major |
63 % |
Used Once Property |
All, Analyze |
2 |
2 |
Minor |
72 % |
Use const |
Analyze, Coding Conventions, All, Top10, CI-checks |
2 |
1 |
Minor |
57 % |
Constants With Strange Names |
Analyze, All, Simple, CI-checks |
1 |
1 |
Minor |
1 % |
Invalid Constant Name |
Analyze, All, Simple |
1 |
1 |
Major |
1 % |
Undefined Constants |
Analyze, All, Simple, CompatibilityPHP72, CI-checks |
47 |
7 |
Minor |
54 % |
Catch Undefined Variable |
All, Analyze |
1 |
1 |
Minor |
0 % |
Uncaught Exceptions |
Analyze, All |
22 |
7 |
Minor |
81 % |
Missing Include |
All, Analyze |
4 |
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 |
14 |
7 |
Minor |
84 % |
Could Make A Function |
All, Analyze, Suggestions |
9 |
5 |
Minor |
75 % |
Empty Function |
Analyze, All, Simple |
1 |
1 |
Minor |
71 % |
Hardcoded Passwords |
Analyze, OneFile, Security, All, Simple, Level 3 |
2 |
2 |
Major |
61 % |
Mismatched Default Arguments |
All, Analyze, Typechecks |
16 |
6 |
Minor |
33 % |
Never Used Parameter |
All, Analyze, Suggestions |
25 |
9 |
Minor |
47 % |
No Boolean As Default |
All, Analyze |
14 |
7 |
Minor |
84 % |
No Return Used |
All, Analyze, Suggestions, Level 4 |
1 |
1 |
Minor |
41 % |
Relay Function |
Analyze, All |
29 |
4 |
Major |
83 % |
Too Many Local Variables |
All, Analyze |
7 |
4 |
Minor |
65 % |
Undefined Functions |
Analyze, All, CI-checks |
174 |
17 |
Major |
71 % |
Unused Arguments |
Analyze, All, Simple |
23 |
7 |
Major |
89 % |
Unused Functions |
Dead code, All, Simple |
37 |
4 |
Minor |
53 % |
Uses Default Values |
Analyze, All, Simple, CI-checks |
341 |
31 |
Minor |
97 % |
Using Deprecated Method |
All, Analyze |
22 |
14 |
Minor |
0 % |
Methods Without Return |
All, Analyze |
50 |
12 |
Minor |
0 % |
Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks |
6 |
4 |
Major |
38 % |
Wrong Type With Call |
All, Analyze, Typechecks, CI-checks |
5 |
2 |
Minor |
0 % |
Hidden Use Expression |
Analyze, OneFile, All, Simple, CI-checks |
1 |
1 |
Minor |
24 % |
Should Make Alias |
Analyze, OneFile, All, Simple, CI-checks |
1 |
1 |
Minor |
44 % |
Logical To in_array |
All, Analyze, Level 2 |
40 |
7 |
Minor |
66 % |
Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks |
28 |
9 |
Minor |
74 % |
strpos() Too Much |
All, Analyze, CI-checks |
10 |
4 |
Minor |
46 % |
array_key_exists() Works On Arrays |
All, CompatibilityPHP74, Analyze |
5 |
4 |
Minor |
0 % |
Assumptions |
All, Analyze |
3 |
1 |
Minor |
0 % |
Avoid mb_dectect_encoding() |
All, Analyze |
4 |
2 |
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 |
3 |
3 |
Major |
59 % |
Deprecated Functions |
Analyze, All, CI-checks |
1 |
1 |
Major |
22 % |
Detect Current Class |
All, Suggestions, CompatibilityPHP74 |
1 |
1 |
None |
47 % |
Don't Pollute Global Space |
All, Analyze |
88 |
11 |
Minor |
0 % |
Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks |
14 |
8 |
Major |
45 % |
Is_A() With String |
All, Analyze, Simple, Rector, CI-checks |
2 |
1 |
Minor |
0 % |
Use === null |
Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks |
2 |
1 |
Minor |
52 % |
No Class In Global |
All, Analyze, CI-checks |
86 |
10 |
Minor |
78 % |
PHP 7.0 Removed Directives |
CompatibilityPHP70, CompatibilityPHP71, All |
1 |
1 |
Major |
1 % |
PHP 7.2 Deprecations |
All, CompatibilityPHP72 |
1 |
1 |
Major |
1 % |
PHP 7.2 Removed Functions |
All, CompatibilityPHP72 |
1 |
1 |
Major |
1 % |
PHP 8.0 Removed Functions |
All, CompatibilityPHP80 |
2 |
2 |
Major |
0 % |
PHP Keywords As Names |
Analyze, All, Simple |
83 |
8 |
Major |
89 % |
Scalar Are Not Arrays |
All, Analyze, CompatibilityPHP74, CI-checks |
3 |
1 |
Minor |
0 % |
Should Use Coalesce |
Analyze, All, Simple, Suggestions, Level 3, CI-checks |
36 |
6 |
Major |
71 % |
Use Nullable Type |
All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
21 |
7 |
Major |
21 % |
Avoid Using stdClass |
All, Analyze, OneFile, Simple, Level 4 |
1 |
1 |
Minor |
45 % |
Usort Sorting In PHP 7.0 |
CompatibilityPHP70, All |
1 |
1 |
Major |
46 % |
Wrong Type For Native PHP Function |
All, Analyze, CI-checks |
8 |
7 |
Minor |
0 % |
Avoid Those Hash Functions |
Security, All |
1 |
1 |
Major |
60 % |
Direct Injection |
Security, All |
2 |
2 |
Major |
41 % |
Don't Echo Error |
All, Analyze, Security, Simple, Level 1, CI-checks |
2 |
2 |
Critical |
32 % |
Mkdir Default |
All, Security |
1 |
1 |
Major |
35 % |
No Net For Xml Load |
All, Security |
2 |
1 |
Major |
49 % |
Set Cookie Safe Arguments |
All, Security |
1 |
1 |
Major |
23 % |
Adding Zero |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks |
18 |
7 |
Minor |
33 % |
Altering Foreach Without Reference |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks |
3 |
2 |
Major |
52 % |
Array_merge Needs Array Of Arrays |
All, Analyze |
1 |
1 |
Minor |
0 % |
Bail Out Early |
All, Analyze, OneFile, Simple, Level 4 |
9 |
5 |
Minor |
92 % |
Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks |
28 |
10 |
Minor |
76 % |
Buried Assignation |
Analyze, All |
7 |
5 |
Minor |
82 % |
Check All Types |
All, Analyze |
24 |
6 |
Major |
68 % |
Common Alternatives |
Analyze, All, Simple |
11 |
7 |
Major |
61 % |
Could Be Static |
Analyze, OneFile, All, ClassReview |
1 |
1 |
Major |
20 % |
Could Use Short Assignation |
Analyze, OneFile, Performances, All, Simple, CI-checks |
7 |
5 |
Minor |
60 % |
Dont Change The Blind Var |
All, Analyze |
9 |
7 |
Minor |
72 % |
Don't Read And Write In One Expression |
All, Analyze, CompatibilityPHP73, CompatibilityPHP74 |
1 |
1 |
Critical |
38 % |
Double Assignation |
Analyze, All |
3 |
2 |
Major |
55 % |
Double Instructions |
Analyze, All, Simple |
1 |
1 |
Minor |
57 % |
Drop Else After Return |
All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks |
17 |
8 |
Minor |
70 % |
Echo With Concat |
Performances, Analyze, All, Simple, Suggestions |
53 |
10 |
Minor |
58 % |
Else If Versus Elseif |
Analyze, All, Simple, php-cs-fixable, Rector, CI-checks |
20 |
12 |
Minor |
65 % |
Empty Blocks |
Analyze, All, Simple, CI-checks |
2 |
2 |
Minor |
57 % |
Empty Instructions |
Dead code, Analyze, All, Simple |
57 |
10 |
Minor |
43 % |
Eval() Usage |
Analyze, Appinfo, Performances, OneFile, ClearPHP, All, Simple, Security |
9 |
3 |
Major |
37 % |
eval() Without Try |
Analyze, All, Simple, Level 3, Security, CI-checks |
9 |
3 |
Critical |
34 % |
Exit() Usage |
Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks |
6 |
4 |
Major |
60 % |
Switch Fallthrough |
All, Inventory, Security, Stats |
2 |
2 |
Minor |
37 % |
Global Usage |
Analyze, Appinfo, ClearPHP, All |
20 |
4 |
Minor |
52 % |
Htmlentities Calls |
Analyze, All, Simple, CI-checks |
36 |
11 |
Major |
39 % |
Iffectations |
Analyze, All |
7 |
3 |
Minor |
80 % |
Implode() Arguments Order |
All, Analyze, CI-checks |
2 |
1 |
Minor |
0 % |
Inconsistent Elseif |
All, Analyze |
3 |
2 |
Major |
73 % |
Indices Are Int Or String |
Analyze, OneFile, All, Simple, CI-checks |
1 |
1 |
Major |
18 % |
Max Level Of Nesting |
All, Analyze |
7 |
3 |
Minor |
0 % |
Mbstring Unknown Encoding |
All, Analyze, CI-checks |
3 |
3 |
Minor |
0 % |
Merge If Then |
All, Analyze, CI-checks |
31 |
12 |
Minor |
0 % |
Missing Cases In Switch |
All, Analyze |
2 |
1 |
Minor |
2 % |
Missing New ? |
All, Analyze |
1 |
1 |
Critical |
5 % |
Mixed Concat And Interpolation |
All, Coding Conventions, Analyze |
6 |
3 |
Minor |
43 % |
Multiple Type Variable |
All, Analyze, Level 4 |
10 |
7 |
Minor |
43 % |
Nested Ifthen |
Analyze, All, RadwellCodes |
62 |
14 |
Major |
87 % |
Nested Ternary |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks |
1 |
1 |
Major |
20 % |
Don't Change Incomings |
Analyze, All |
2 |
1 |
Minor |
44 % |
No Hardcoded Path |
Analyze, ClearPHP, All, Simple |
1 |
1 |
Major |
33 % |
No Need For Else |
All, Analyze |
20 |
8 |
Minor |
74 % |
No Parenthesis For Language Construct |
Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks |
17 |
4 |
Minor |
61 % |
Avoid Substr() One |
Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks |
3 |
2 |
Minor |
57 % |
Variable Is Not A Condition |
All, Analyze |
104 |
15 |
Minor |
57 % |
@ Operator |
Appinfo, ClearPHP, All, Analyze, Performances, CI-checks |
28 |
11 |
Minor |
66 % |
include_once() Usage |
Analyze, Appinfo, All |
30 |
17 |
Minor |
73 % |
Several Instructions On The Same Line |
Analyze, All |
2 |
1 |
Major |
57 % |
Repeated print() |
Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks |
17 |
8 |
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 |
3 |
1 |
Critical |
49 % |
Should Make Ternary |
All, Analyze, OneFile, Simple, CI-checks |
72 |
15 |
Minor |
85 % |
Preprocessable |
Analyze, All, Rector |
17 |
8 |
Minor |
86 % |
Static Loop |
Analyze, All, Simple, Level 4 |
2 |
2 |
Minor |
65 % |
Strpos()-like Comparison |
Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks |
2 |
2 |
Major |
54 % |
Suspicious Comparison |
All, Analyze, Level 3 |
1 |
1 |
Major |
15 % |
Switch To Switch |
Analyze, All, RadwellCodes, Simple |
3 |
3 |
Minor |
79 % |
Switch Without Default |
Analyze, ClearPHP, All, Simple, CI-checks |
4 |
3 |
Major |
68 % |
Test Then Cast |
All, Analyze |
1 |
1 |
Major |
32 % |
Timestamp Difference |
Analyze, All, Simple, Level 3, CI-checks |
1 |
1 |
Major |
50 % |
Unpreprocessed Values |
Analyze, OneFile, ClearPHP, All, Simple |
1 |
1 |
Minor |
28 % |
Unreachable Code |
Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3 |
3 |
1 |
Major |
44 % |
Unsupported Types With Operators |
All, Analyze, CompatibilityPHP80 |
9 |
4 |
Minor |
0 % |
Unused Global |
Analyze, All, Simple |
1 |
1 |
Minor |
18 % |
Use Positive Condition |
All, Analyze, OneFile, Simple |
25 |
15 |
Minor |
81 % |
Useless Global |
Analyze, OneFile, All, Simple, Level 2 |
4 |
3 |
Minor |
24 % |
Useless Instructions |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks |
2 |
2 |
Minor |
58 % |
Useless Parenthesis |
Analyze, All, Simple, CI-checks |
14 |
4 |
Minor |
81 % |
Should Typecast |
Analyze, OneFile, All, Simple, CI-checks |
1 |
1 |
Minor |
47 % |
String May Hold A Variable |
Analyze, All, Simple |
11 |
4 |
Minor |
58 % |
Assigned Twice |
All, Analyze |
39 |
9 |
Minor |
78 % |
Overwritten Literals |
Analyze, All |
49 |
9 |
Major |
78 % |
Strange Name For Variables |
All, Analyze |
1 |
1 |
Minor |
28 % |
Undefined Constant Name |
All, Analyze |
38 |
4 |
Minor |
0 % |
Undefined Variable |
All, Analyze, CI-checks |
280 |
8 |
Minor |
77 % |
Used Once Variables |
Analyze, OneFile, All, Simple, Top10 |
25 |
6 |
Minor |
87 % |
Used Once Variables (In Scope) |
Analyze, ClearPHP, OneFile, All, Simple, Level 4 |
83 |
14 |
Minor |
95 % |
Written Only Variables |
Analyze, OneFile, All, Simple |
22 |
9 |
Minor |
78 % |