Null Or Boolean Arrays |
All, Analyze |
3 |
1 |
Minor |
0 % |
String Initialization |
All, CompatibilityPHP71 |
1 |
1 |
Minor |
33 % |
Class Could Be Final |
All, Analyze, ClassReview |
6 |
5 |
Minor |
95 % |
Empty Classes |
Analyze, All, Simple |
1 |
1 |
Minor |
58 % |
Multiple Class Declarations |
Analyze, All, Simple, CI-checks |
2 |
1 |
Major |
5 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple |
4 |
2 |
Minor |
94 % |
Undefined Classes |
Analyze, All |
12 |
8 |
Major |
91 % |
Undefined Class Constants |
Analyze, All, CI-checks |
3 |
1 |
Major |
53 % |
Unresolved Classes |
Analyze, All |
1 |
1 |
Major |
86 % |
Unused Methods |
Dead code, All, Simple |
2 |
1 |
Minor |
95 % |
Use Class Operator |
All, Analyze, Performances, Simple, CI-checks |
8 |
4 |
Minor |
74 % |
Use const |
Analyze, Coding Conventions, All, Top10, CI-checks |
3 |
2 |
Minor |
57 % |
Constants With Strange Names |
Analyze, All, Simple, CI-checks |
2 |
2 |
Minor |
1 % |
Invalid Constant Name |
Analyze, All, Simple |
2 |
2 |
Major |
1 % |
Multiple Constant Definition |
Analyze, All, Simple, CI-checks |
2 |
2 |
Minor |
32 % |
Undefined Constants |
Analyze, All, Simple, CompatibilityPHP72, CI-checks |
5 |
2 |
Minor |
54 % |
Undefined Caught Exceptions |
Dead code, All |
1 |
1 |
None |
50 % |
Uncaught Exceptions |
Analyze, All |
15 |
7 |
Minor |
81 % |
Unthrown Exception |
Analyze, Dead code, ClearPHP, All, Simple |
1 |
1 |
Minor |
43 % |
ext/mcrypt |
Appinfo, All, CompatibilityPHP71 |
2 |
1 |
Major |
14 % |
Use Named Boolean In Argument Definition |
All, Analyze |
1 |
1 |
Minor |
84 % |
Could Make A Function |
All, Analyze, Suggestions |
10 |
6 |
Minor |
75 % |
Mismatched Default Arguments |
All, Analyze, Typechecks |
1 |
1 |
Minor |
33 % |
Never Used Parameter |
All, Analyze, Suggestions |
1 |
1 |
Minor |
47 % |
No Boolean As Default |
All, Analyze |
1 |
1 |
Minor |
84 % |
Undefined Functions |
Analyze, All, CI-checks |
16 |
8 |
Major |
71 % |
Unused Arguments |
Analyze, All, Simple |
5 |
2 |
Major |
89 % |
Unused Functions |
Dead code, All, Simple |
2 |
1 |
Minor |
53 % |
Uses Default Values |
Analyze, All, Simple, CI-checks |
42 |
11 |
Minor |
97 % |
Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks |
3 |
2 |
Major |
38 % |
Don't Pollute Global Space |
All, Analyze |
22 |
14 |
Minor |
0 % |
Is_A() With String |
All, Analyze, Simple, Rector, CI-checks |
1 |
1 |
Minor |
0 % |
No Class In Global |
All, Analyze, CI-checks |
19 |
14 |
Minor |
78 % |
PHP 7.0 New Classes |
CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All |
3 |
1 |
Major |
0 % |
New Functions In PHP 7.0 |
CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All |
7 |
7 |
Major |
0 % |
PHP Keywords As Names |
Analyze, All, Simple |
5 |
2 |
Major |
89 % |
Use Nullable Type |
All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
2 |
1 |
Major |
21 % |
Wrong Type For Native PHP Function |
All, Analyze, CI-checks |
11 |
4 |
Minor |
0 % |
Direct Injection |
Security, All |
2 |
1 |
Major |
41 % |
Adding Zero |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks |
10 |
6 |
Minor |
33 % |
Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks |
1 |
1 |
Minor |
76 % |
Check All Types |
All, Analyze |
2 |
2 |
Major |
68 % |
Common Alternatives |
Analyze, All, Simple |
2 |
1 |
Major |
61 % |
Could Use __DIR__ |
Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks |
1 |
1 |
Major |
56 % |
Double Instructions |
Analyze, All, Simple |
1 |
1 |
Minor |
57 % |
Drop Else After Return |
All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks |
1 |
1 |
Minor |
70 % |
Empty Try Catch |
Analyze, All, Level 3 |
1 |
1 |
Minor |
47 % |
Exit() Usage |
Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks |
2 |
1 |
Major |
60 % |
Inconsistent Elseif |
All, Analyze |
2 |
2 |
Major |
73 % |
Merge If Then |
All, Analyze, CI-checks |
8 |
7 |
Minor |
0 % |
Nested Ifthen |
Analyze, All, RadwellCodes |
6 |
3 |
Major |
87 % |
No Choice |
Analyze, All, Simple, Level 2, Top10, CI-checks |
2 |
1 |
Major |
43 % |
No Hardcoded Path |
Analyze, ClearPHP, All, Simple |
1 |
1 |
Major |
33 % |
No Need For Else |
All, Analyze |
1 |
1 |
Minor |
74 % |
Variable Is Not A Condition |
All, Analyze |
1 |
1 |
Minor |
57 % |
@ Operator |
Appinfo, ClearPHP, All, Analyze, Performances, CI-checks |
4 |
3 |
Minor |
66 % |
include_once() Usage |
Analyze, Appinfo, All |
16 |
3 |
Minor |
73 % |
Random Without Try |
Security, All |
2 |
2 |
Critical |
21 % |
Same Conditions In Condition |
Analyze, All, Simple, CI-checks |
1 |
1 |
Critical |
49 % |
Should Chain Exception |
Analyze, All, Simple, CI-checks |
7 |
6 |
Minor |
36 % |
Preprocessable |
Analyze, All, Rector |
8 |
4 |
Minor |
86 % |
Test Then Cast |
All, Analyze |
1 |
1 |
Major |
32 % |
Unpreprocessed Values |
Analyze, OneFile, ClearPHP, All, Simple |
1 |
1 |
Minor |
28 % |
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 |
1 |
1 |
Minor |
0 % |
Use Positive Condition |
All, Analyze, OneFile, Simple |
2 |
2 |
Minor |
81 % |
Useless Casting |
All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks |
15 |
5 |
Minor |
37 % |
Useless Parenthesis |
Analyze, All, Simple, CI-checks |
4 |
4 |
Minor |
81 % |
Useless Unset |
Analyze, OneFile, ClearPHP, All, Simple, Level 2, CI-checks |
1 |
1 |
Major |
28 % |
String May Hold A Variable |
Analyze, All, Simple |
7 |
6 |
Minor |
58 % |
Assigned Twice |
All, Analyze |
2 |
1 |
Minor |
78 % |
Overwritten Literals |
Analyze, All |
2 |
1 |
Major |
78 % |
Used Once Variables |
Analyze, OneFile, All, Simple, Top10 |
2 |
2 |
Minor |
87 % |
Used Once Variables (In Scope) |
Analyze, ClearPHP, OneFile, All, Simple, Level 4 |
13 |
9 |
Minor |
95 % |
Written Only Variables |
Analyze, OneFile, All, Simple |
10 |
7 |
Minor |
78 % |