PHP Static analysis for boilerplate

Label Recipes Issues Files Severity Frequence
Null Or Boolean Arrays All, Analyze 10 4 Minor 0 %
String Initialization All, CompatibilityPHP71 2 2 Minor 33 %
Ambiguous Static All, Analyze 4 4 Minor 64 %
Anonymous Classes Appinfo, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All 8 8 Major 15 %
Avoid Optional Properties All, Analyze 13 11 Major 83 %
Child Class Removes Typehint All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Typechecks 5 5 Major 1 %
Could Be Abstract Class All, Analyze, ClassReview 6 6 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 105 105 Minor 95 %
Method Could Be Static All, Analyze, ClassReview 93 51 Minor 95 %
Dependant Abstract Classes All, Analyze, ClassReview 2 2 Minor 0 %
Don't Send $this In Constructor All, Analyze 2 2 Minor 39 %
Empty Classes Analyze, All, Simple 3 3 Minor 58 %
Hidden Nullable All, Analyze, ClassReview 16 12 Minor 0 %
Incompatible Signature Methods With Covariance All, Analyze 1 1 Critical 0 %
Locally Unused Property Dead code, All, Simple 47 25 Minor 76 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 1 1 Critical 50 %
Multiple Class Declarations Analyze, All, Simple, CI-checks 92 92 Major 5 %
No Public Access Analyze, All 19 13 Minor 60 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks 10 2 Minor 42 %
Parent First All, Analyze, Suggestions 13 13 Minor 55 %
Property Could Be Local All, Analyze, ClassReview 14 7 Minor 71 %
Never Used Properties Analyze, All, Simple 40 23 Minor 72 %
Property Used In One Method Only All, Analyze 63 35 Minor 84 %
Should Use Local Class Analyze, ClearPHP, All, Simple 86 45 Minor 94 %
$this Belongs To Classes Or Traits Analyze, All, Simple 428 47 Major 23 %
Too Many Dereferencing All, Analyze 3 3 Minor 0 %
Undefined Classes Analyze, All 1283 153 Major 91 %
Undefined Class Constants Analyze, All, CI-checks 30 17 Major 53 %
Undefined Parent Analyze, All, Simple 2 1 Minor 63 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks 222 29 Major 58 %
Undefined static:: Or self:: Analyze, All, Simple 2 2 Minor 33 %
Undefined ::class All, Analyze, CI-checks 48 10 Major 34 %
Unresolved Classes Analyze, All 73 30 Major 86 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10 3 3 Major 48 %
Unused Classes Dead code, All, Simple, Analyze 5 5 Major 72 %
Unused Methods Dead code, All, Simple 235 105 Minor 95 %
Unused Private Properties Dead code, OneFile, All, Simple 1 1 Minor 37 %
Unused Protected Methods Dead code, All 14 14 Major 72 %
Use Instanceof Analyze, All, Simple, CI-checks 6 1 Major 63 %
Used Once Property All, Analyze 9 4 Minor 72 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks 1 1 Minor 57 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks 186 169 Minor 54 %
Uncaught Exceptions Analyze, All 11 11 Minor 81 %
Missing Include All, Analyze 1 1 Critical 61 %
Use Named Boolean In Argument Definition All, Analyze 15 15 Minor 84 %
Could Make A Function All, Analyze, Suggestions 230 171 Minor 75 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 2 2 Major 61 %
Mismatch Parameter Name All, Analyze, CompatibilityPHP80 1 1 Minor 0 %
Mismatched Default Arguments All, Analyze, Typechecks 8 8 Minor 33 %
Mismatched Typehint All, Analyze, Typechecks 6 6 Major 5 %
Never Used Parameter All, Analyze, Suggestions 64 45 Minor 47 %
No Boolean As Default All, Analyze 22 22 Minor 84 %
Relay Function Analyze, All 11 8 Major 83 %
Too Many Local Variables All, Analyze 4 4 Minor 65 %
Undefined Functions Analyze, All, CI-checks 7 4 Major 71 %
Unused Arguments Analyze, All, Simple 70 32 Major 89 %
Useless Referenced Argument All, Analyze 10 10 Minor 57 %
Uses Default Values Analyze, All, Simple, CI-checks 129 64 Minor 97 %
Methods Without Return All, Analyze 72 57 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks 7 6 Major 38 %
Forgotten Interface All, Analyze 8 8 Minor 52 %
Undefined Interfaces Analyze, All, CI-checks 77 36 Major 67 %
Hidden Use Expression Analyze, OneFile, All, Simple, CI-checks 738 154 Minor 24 %
Multiple Alias Definitions Analyze, All, Simple, CI-checks 27 27 Minor 42 %
Unresolved Use Analyze, ClearPHP, All, Simple 703 157 Major 65 %
Unused Use Dead code, ClearPHP, All, Simple 18 14 Major 54 %
Logical To in_array All, Analyze, Level 2 7 7 Minor 66 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks 5 4 Minor 74 %
strpos() Too Much All, Analyze, CI-checks 5 5 Minor 46 %
Don't Pollute Global Space All, Analyze 12 11 Minor 0 %
Incompilable Files Analyze, Appinfo, ClearPHP, All, Simple 5 5 Critical 0 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks 3 3 Minor 52 %
Logical Should Use Symbolic Operators Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks 177 177 Minor 42 %
No Class In Global All, Analyze, CI-checks 11 11 Minor 78 %
PHP 7.0 Scalar Typehints All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 38 11 Critical 31 %
PHP Keywords As Names Analyze, All, Simple 79 20 Major 89 %
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 65 59 Major 21 %
Avoid Using stdClass All, Analyze, OneFile, Simple, Level 4 3 3 Minor 45 %
Wrong Type For Native PHP Function All, Analyze, CI-checks 3 3 Minor 0 %
No Net For Xml Load All, Security 11 11 Major 49 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks 4 4 Major 52 %
Alternative Syntax Consistence All, Analyze 9 1 Major 20 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks 11 9 Minor 76 %
Buried Assignation Analyze, All 33 19 Minor 82 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 11 11 Minor 55 %
Casting Ternary All, Analyze, OneFile, CI-checks 3 3 Major 0 %
Check All Types All, Analyze 1 1 Major 68 %
Common Alternatives Analyze, All, Simple 44 20 Major 61 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks 2 2 Minor 60 %
Dangling Array References PHP recommendations, Analyze, ClearPHP, All, Simple, Level 1, Top10, CI-checks 6 6 Major 40 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 16 16 Minor 58 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks 9 9 Minor 65 %
Empty Instructions Dead code, Analyze, All, Simple 918 48 Minor 43 %
Empty Try Catch Analyze, All, Level 3 5 5 Minor 47 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks 177 177 Major 60 %
Htmlentities Calls Analyze, All, Simple, CI-checks 6 5 Major 39 %
Identical Consecutive Expression All, Analyze 1 1 Minor 58 %
Iffectations Analyze, All 43 27 Minor 80 %
Implied If Analyze, ClearPHP, All, Simple, CI-checks 178 177 Major 29 %
Inconsistent Elseif All, Analyze 7 7 Major 73 %
Max Level Of Nesting All, Analyze 2 2 Minor 0 %
Merge If Then All, Analyze, CI-checks 9 9 Minor 0 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 11 8 Minor 56 %
Nested Ifthen Analyze, All, RadwellCodes 19 15 Major 87 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks 7 7 Minor 61 %
Variable Is Not A Condition All, Analyze 124 57 Minor 57 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks 2 2 Minor 66 %
Objects Don't Need References Analyze, ClearPHP, OneFile, All, Simple, Level 2, Top10, CI-checks 37 10 Minor 31 %
include_once() Usage Analyze, Appinfo, All 1 1 Minor 73 %
Several Instructions On The Same Line Analyze, All 37 19 Major 57 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks 4 4 Major 49 %
Return True False Analyze, All, Simple, Level 1, CI-checks 11 11 Major 53 %
Same Conditions In Condition Analyze, All, Simple, CI-checks 2 2 Critical 49 %
Should Make Ternary All, Analyze, OneFile, Simple, CI-checks 16 11 Minor 85 %
Preprocessable Analyze, All, Rector 183 178 Minor 86 %
Suspicious Comparison All, Analyze, Level 3 2 1 Major 15 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks 4 2 Major 68 %
Use Positive Condition All, Analyze, OneFile, Simple 8 8 Minor 81 %
Useless Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks 2 2 Minor 37 %
Useless Parenthesis Analyze, All, Simple, CI-checks 15 12 Minor 81 %
Undefined Trait Analyze, All, LintButWontExec, CI-checks 19 8 Critical 21 %
Missing Returntype In Method All, Typehints, Analyze, CI-checks 1 1 Minor 0 %
Assigned Twice All, Analyze 10 2 Minor 78 %
Overwritten Literals Analyze, All 10 2 Major 78 %
Undefined Variable All, Analyze, CI-checks 30 11 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 3 2 Minor 87 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4 149 66 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple 22 20 Minor 78 %