PHP Static analysis for framework

Label Recipes Issues Files Severity Frequence
String Initialization All, CompatibilityPHP71 1 1 Minor 33 %
Ambiguous Static All, Analyze 13 12 Minor 64 %
Ambiguous Visibilities All, Analyze 19 14 Minor 70 %
Avoid Optional Properties All, Analyze 9 8 Major 83 %
Could Be Abstract Class All, Analyze, ClassReview 12 12 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 78 78 Minor 95 %
Method Could Be Static All, Analyze, ClassReview 69 50 Minor 95 %
Hidden Nullable All, Analyze, ClassReview 14 9 Minor 0 %
Incompatible Signature Methods With Covariance All, Analyze 1 1 Critical 0 %
Locally Unused Property Dead code, All, Simple 1 1 Minor 76 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 2 2 Minor 49 %
No Public Access Analyze, All 1 1 Minor 60 %
Parent First All, Analyze, Suggestions 1 1 Minor 55 %
Property Could Be Local All, Analyze, ClassReview 1 1 Minor 71 %
Never Used Properties Analyze, All, Simple 1 1 Minor 72 %
Property Used In One Method Only All, Analyze 6 4 Minor 84 %
Should Use Local Class Analyze, ClearPHP, All, Simple 59 28 Minor 94 %
Static Methods Can't Contain $this Analyze, ClearPHP, All, Simple, Level 1, CI-checks 1 1 Major 5 %
$this Is Not For Static Methods Analyze, All 1 1 Major 5 %
Undefined Classes Analyze, All 102 35 Major 91 %
Undefined Class Constants Analyze, All, CI-checks 12 1 Major 53 %
Undefined static:: Or self:: Analyze, All, Simple 5 1 Minor 33 %
Unresolved Classes Analyze, All 4 3 Major 86 %
Unused Classes Dead code, All, Simple, Analyze 18 18 Major 72 %
Unused Methods Dead code, All, Simple 220 32 Minor 95 %
Unused Private Methods Dead code, OneFile, All, Simple 7 3 Minor 45 %
Unused Protected Methods Dead code, All 14 5 Major 72 %
Use Instanceof Analyze, All, Simple, CI-checks 3 3 Major 63 %
Used Once Property All, Analyze 11 8 Minor 72 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks 3 2 Minor 54 %
Uncaught Exceptions Analyze, All 99 33 Minor 81 %
Use Named Boolean In Argument Definition All, Analyze 16 9 Minor 84 %
Could Make A Function All, Analyze, Suggestions 11 11 Minor 75 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 5 2 Major 61 %
Insufficient Typehint All, Analyze, Typechecks 1 1 Major 24 %
Mismatch Parameter Name All, Analyze, CompatibilityPHP80 55 55 Minor 0 %
Mismatched Default Arguments All, Analyze, Typechecks 36 13 Minor 33 %
Mismatched Typehint All, Analyze, Typechecks 6 3 Major 5 %
Never Used Parameter All, Analyze, Suggestions 47 15 Minor 47 %
No Boolean As Default All, Analyze 16 9 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4 13 9 Minor 41 %
Relay Function Analyze, All 12 8 Major 83 %
Undefined Functions Analyze, All, CI-checks 72 32 Major 71 %
Unused Arguments Analyze, All, Simple 5 3 Major 89 %
Unused Functions Dead code, All, Simple 1 1 Minor 53 %
Useless Referenced Argument All, Analyze 2 2 Minor 57 %
Uses Default Values Analyze, All, Simple, CI-checks 175 40 Minor 97 %
Methods Without Return All, Analyze 85 63 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks 4 4 Major 38 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks 1 1 Minor 0 %
Forgotten Interface All, Analyze 1 1 Minor 52 %
Interfaces Is Not Implemented All, Analyze, ClassReview, LintButWontExec, CI-checks 4 4 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks 2 2 Major 67 %
Should Make Alias Analyze, OneFile, All, Simple, CI-checks 2 2 Minor 44 %
Unresolved Use Analyze, ClearPHP, All, Simple 6 4 Major 65 %
Unused Use Dead code, ClearPHP, All, Simple 6 6 Major 54 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks 1 1 Major 55 %
Logical To in_array All, Analyze, Level 2 3 3 Minor 66 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks 2 2 Minor 74 %
strpos() Too Much All, Analyze, CI-checks 6 2 Minor 46 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze 2 1 Minor 0 %
Assumptions All, Analyze 16 7 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks 3 2 Major 59 %
Detect Current Class All, Suggestions, CompatibilityPHP74 1 1 None 47 %
Don't Pollute Global Space All, Analyze 1 1 Minor 0 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks 2 2 Minor 52 %
No Class In Global All, Analyze, CI-checks 1 1 Minor 78 %
No Reference For Ternary All, Analyze, CI-checks 1 1 Major 0 %
PHP Keywords As Names Analyze, All, Simple 164 23 Major 89 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks 5 1 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks 29 12 Major 71 %
Use Nullable Type All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 22 15 Major 21 %
Wrong Type For Native PHP Function All, Analyze, CI-checks 42 16 Minor 0 %
Direct Injection Security, All 1 1 Major 41 %
Encoded Simple Letters All, Security 2 1 Minor 40 %
Adding Zero Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 7 3 Minor 33 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks 1 1 Major 52 %
Constant Comparison All, Analyze 1 1 Minor 0 %
Array_merge Needs Array Of Arrays All, Analyze 1 1 Minor 0 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks 28 14 Minor 76 %
Buried Assignation Analyze, All 19 9 Minor 82 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 1 1 Minor 55 %
Check All Types All, Analyze 8 6 Major 68 %
Common Alternatives Analyze, All, Simple 1 1 Major 61 %
Could Be Else All, Analyze 1 1 Minor 48 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks 2 1 Minor 60 %
Dangling Array References PHP recommendations, Analyze, ClearPHP, All, Simple, Level 1, Top10, CI-checks 3 3 Major 40 %
Dont Change The Blind Var All, Analyze 1 1 Minor 72 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks 1 1 Minor 65 %
Foreach Reference Is Not Modified Analyze, All, Simple, CI-checks 1 1 Minor 24 %
Htmlentities Calls Analyze, All, Simple, CI-checks 40 16 Major 39 %
Iffectations Analyze, All 27 11 Minor 80 %
Infinite Recursion All, Analyze 1 1 Major 0 %
Merge If Then All, Analyze, CI-checks 1 1 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 3 3 Major 62 %
Mixed Concat And Interpolation All, Coding Conventions, Analyze 2 1 Minor 43 %
Variable Is Not A Condition All, Analyze 63 52 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 1 1 Minor 31 %
include_once() Usage Analyze, Appinfo, All 3 3 Minor 73 %
Should Chain Exception Analyze, All, Simple, CI-checks 2 2 Minor 36 %
Preprocessable Analyze, All, Rector 3 3 Minor 86 %
Switch To Switch Analyze, All, RadwellCodes, Simple 3 3 Minor 79 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks 1 1 Major 68 %
Unchecked Resources Analyze, ClearPHP, All, Simple, Level 2, CI-checks 3 2 Major 49 %
Unreachable Code Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3 1 1 Major 44 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80 2 1 Minor 0 %
Use Constant PHP recommendations, All, Analyze, php-cs-fixable, CI-checks 1 1 Minor 0 %
Useless Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks 2 2 Minor 37 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 3 2 Minor 58 %
Useless Parenthesis Analyze, All, Simple, CI-checks 3 3 Minor 81 %
Dependant Trait Analyze, All, Level 3 1 1 Minor 26 %
One Variable String Analyze, All, RadwellCodes, Simple, CI-checks 1 1 Minor 29 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks 1 1 Minor 47 %
Assigned Twice All, Analyze 8 3 Minor 78 %
Overwritten Literals Analyze, All 8 3 Major 78 %
Undefined Variable All, Analyze, CI-checks 16 3 Minor 77 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4 64 44 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple 16 7 Minor 78 %