PHP Static analysis for laravel-admin

Label Recipes Issues Files Severity Frequence
String Initialization All, CompatibilityPHP71 23 13 Minor 33 %
Too Many Array Dimensions All, Analyze 2 2 Minor 0 %
Ambiguous Static All, Analyze 449 211 Minor 64 %
Ambiguous Visibilities All, Analyze 138 83 Minor 70 %
Avoid option arrays in constructors All, Analyze, ClassReview 3 3 Minor 0 %
Avoid Optional Properties All, Analyze 144 79 Major 83 %
Cant Inherit Abstract Method All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 1 1 Critical 0 %
Check On __Call Usage All, Analyze, CI-checks 2 2 Minor 0 %
Child Class Removes Typehint All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Typechecks 9 7 Major 1 %
Class, Interface Or Trait With Identical Names Analyze, All 15 15 Minor 16 %
Constant Class Analyze, All, Simple, CI-checks 1 1 Minor 49 %
Could Be Abstract Class All, Analyze, ClassReview 26 26 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 271 271 Minor 95 %
Method Could Be Static All, Analyze, ClassReview 268 138 Minor 95 %
Cyclic References All, Analyze, ClassReview 27 22 Minor 0 %
Dependant Abstract Classes All, Analyze, ClassReview 5 5 Minor 0 %
Different Argument Counts All, Analyze, ClassReview 22 22 Minor 0 %
No Direct Call To Magic Method Analyze, All, Level 2, CI-checks 2 2 Major 41 %
Don't Send $this In Constructor All, Analyze 8 8 Minor 39 %
Empty Classes Analyze, All, Simple 4 4 Minor 58 %
Hidden Nullable All, Analyze, ClassReview 61 43 Minor 0 %
Incompatible Signature Methods With Covariance All, Analyze 36 36 Critical 0 %
Instantiating Abstract Class Analyze, All, Simple 7 7 Major 9 %
Locally Unused Property Dead code, All, Simple 216 133 Minor 76 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 10 9 Minor 49 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 22 22 Critical 50 %
No Public Access Analyze, All 86 46 Minor 60 %
Non Nullable Getters All, Analyze, ClassReview 2 2 Minor 0 %
Parent First All, Analyze, Suggestions 14 14 Minor 55 %
Never Used Properties Analyze, All, Simple 57 35 Minor 72 %
Property Used In One Method Only All, Analyze 72 53 Minor 84 %
Scalar Or Object Property All, Analyze 6 6 Minor 24 %
Should Use Local Class Analyze, ClearPHP, All, Simple 312 138 Minor 94 %
Static Methods Called From Object Analyze, All, Simple, CI-checks 3 3 Minor 38 %
Too Many Dereferencing All, Analyze 2 2 Minor 0 %
Wrong Access Style to Property All, Analyze, Level 2, ClassReview, CI-checks 1 1 Critical 3 %
Undefined Classes Analyze, All 891 215 Major 91 %
Undefined Class Constants Analyze, All, CI-checks 7 6 Major 53 %
Undefined Parent Analyze, All, Simple 4 3 Minor 63 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks 57 17 Major 58 %
Undefined static:: Or self:: Analyze, All, Simple 17 13 Minor 33 %
Undefined ::class All, Analyze, CI-checks 15 12 Major 34 %
Unresolved Classes Analyze, All 3 1 Major 86 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10 85 38 Major 48 %
Unused Classes Dead code, All, Simple, Analyze 6 6 Major 72 %
Unused Class Constant All, Analyze, ClassReview 8 2 Minor 0 %
Unused Methods Dead code, All, Simple 1006 260 Minor 95 %
Unused Private Methods Dead code, OneFile, All, Simple 9 4 Minor 45 %
Unused Protected Methods Dead code, All 126 49 Major 72 %
Use Class Operator All, Analyze, Performances, Simple, CI-checks 3 3 Minor 74 %
Use Instanceof Analyze, All, Simple, CI-checks 5 5 Major 63 %
Used Once Property All, Analyze 76 55 Minor 72 %
Catch Undefined Variable All, Analyze 1 1 Minor 0 %
Uncaught Exceptions Analyze, All 59 31 Minor 81 %
Use Named Boolean In Argument Definition All, Analyze 151 67 Minor 84 %
Callback Needs Return All, Analyze, CI-checks 3 3 Major 51 %
Could Make A Function All, Analyze, Suggestions 160 78 Minor 75 %
Empty Function Analyze, All, Simple 17 8 Minor 71 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 29 22 Major 61 %
Insufficient Typehint All, Analyze, Typechecks 21 15 Major 24 %
Mismatch Parameter Name All, Analyze, CompatibilityPHP80 16 16 Minor 0 %
Mismatched Default Arguments All, Analyze, Typechecks 207 108 Minor 33 %
Mismatched Typehint All, Analyze, Typechecks 64 36 Major 5 %
Must Return Methods Analyze, All, Simple, Level 2, LintButWontExec, CI-checks 4 1 Major 22 %
Never Used Parameter All, Analyze, Suggestions 135 93 Minor 47 %
No Boolean As Default All, Analyze 151 67 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4 147 65 Minor 41 %
Relay Function Analyze, All 129 79 Major 83 %
Too Many Local Variables All, Analyze 1 1 Minor 65 %
Typehint Must Be Returned All, Analyze, LintButWontExec, CI-checks 4 1 Major 10 %
Unbinding Closures All, CompatibilityPHP74 1 1 Minor 0 %
Undefined Functions Analyze, All, CI-checks 789 205 Major 71 %
Unused Arguments Analyze, All, Simple 113 52 Major 89 %
Use Constant As Arguments Analyze, All, Simple, CI-checks 5 4 Major 25 %
Useless Referenced Argument All, Analyze 7 7 Minor 57 %
Useless Return Analyze, OneFile, All, Simple, Level 4 2 2 Minor 29 %
Uses Default Values Analyze, All, Simple, CI-checks 461 139 Minor 97 %
Using Deprecated Method All, Analyze 7 3 Minor 0 %
Methods Without Return All, Analyze 470 178 Minor 0 %
Wrong Argument Type All, Analyze, Typechecks 1 1 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks 36 24 Major 38 %
Wrong Returned Type All, Analyze, ClassReview, CI-checks 12 6 Minor 0 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks 2 2 Minor 0 %
Already Parents Interface Analyze, All, Level 3, Suggestions 2 2 Minor 17 %
Forgotten Interface All, Analyze 6 6 Minor 52 %
Interfaces Is Not Implemented All, Analyze, ClassReview, LintButWontExec, CI-checks 12 12 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks 263 116 Major 67 %
Multiple Alias Definitions Analyze, All, Simple, CI-checks 335 193 Minor 42 %
Should Make Alias Analyze, OneFile, All, Simple, CI-checks 197 47 Minor 44 %
Unresolved Use Analyze, ClearPHP, All, Simple 47 43 Major 65 %
Unused Use Dead code, ClearPHP, All, Simple 127 80 Major 54 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks 8 8 Major 55 %
Logical To in_array All, Analyze, Level 2 6 6 Minor 66 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks 6 5 Minor 74 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze 18 12 Minor 0 %
Avoid mb_dectect_encoding() All, Analyze 1 1 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks 16 13 Major 59 %
Compact Inexistant Variable All, Suggestions, CompatibilityPHP73 3 3 Major 1 %
Don't Pollute Global Space All, Analyze 34 2 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks 11 6 Major 45 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks 55 39 Minor 52 %
List Short Syntax Internal, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Appinfo 35 23 Major 10 %
Logical Should Use Symbolic Operators Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks 1 1 Minor 42 %
No Class In Global All, Analyze, CI-checks 23 2 Minor 78 %
PHP 7.0 Scalar Typehints All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 453 138 Critical 31 %
Php7 Relaxed Keyword CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Appinfo 174 64 Major 25 %
PHP Keywords As Names Analyze, All, Simple 448 109 Major 89 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks 4 2 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks 3 3 Major 71 %
Use Nullable Type All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 290 125 Major 21 %
Use Pathinfo Analyze, All, Simple, Level 3, CI-checks 3 3 Minor 8 %
Avoid Using stdClass All, Analyze, OneFile, Simple, Level 4 1 1 Minor 45 %
Wrong Type For Native PHP Function All, Analyze, CI-checks 113 59 Minor 0 %
Avoid Those Hash Functions Security, All 6 6 Major 60 %
Configure Extract All, Security 2 1 Minor 22 %
No Net For Xml Load All, Security 1 1 Major 49 %
Adding Zero Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 6 3 Minor 33 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks 5 5 Major 52 %
Constant Comparison All, Analyze 4 4 Minor 0 %
Array_merge Needs Array Of Arrays All, Analyze 14 9 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 2 2 Minor 92 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks 41 22 Minor 76 %
Buried Assignation Analyze, All 102 63 Minor 82 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 24 18 Minor 55 %
Check All Types All, Analyze 33 23 Major 68 %
Common Alternatives Analyze, All, Simple 3 3 Major 61 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks 7 5 Minor 60 %
Dangling Array References PHP recommendations, Analyze, ClearPHP, All, Simple, Level 1, Top10, CI-checks 21 15 Major 40 %
Dont Change The Blind Var All, Analyze 15 15 Minor 72 %
Dont Mix ++ All, Analyze 3 2 Minor 43 %
Don't Read And Write In One Expression All, Analyze, CompatibilityPHP73, CompatibilityPHP74 2 2 Critical 38 %
Double Assignation Analyze, All 2 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 8 5 Minor 70 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks 1 1 Minor 65 %
Empty Blocks Analyze, All, Simple, CI-checks 1 1 Minor 57 %
Empty Instructions Dead code, Analyze, All, Simple 12 11 Minor 43 %
Empty Try Catch Analyze, All, Level 3 8 6 Minor 47 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks 2 2 Major 60 %
Foreach Reference Is Not Modified Analyze, All, Simple, CI-checks 8 6 Minor 24 %
Htmlentities Calls Analyze, All, Simple, CI-checks 2 1 Major 39 %
Identical Consecutive Expression All, Analyze 12 7 Minor 58 %
If With Same Conditions Analyze, All, Simple, CI-checks 1 1 Major 44 %
Iffectations Analyze, All 116 67 Minor 80 %
Implied If Analyze, ClearPHP, All, Simple, CI-checks 14 9 Major 29 %
Implode() Arguments Order All, Analyze, CI-checks 3 3 Minor 0 %
Inconsistent Elseif All, Analyze 6 5 Major 73 %
Infinite Recursion All, Analyze 17 6 Major 0 %
Logical Mistakes Analyze, All, Simple, Level 1, CI-checks 4 4 Critical 31 %
Long Arguments All, Analyze 28 27 Minor 67 %
Merge If Then All, Analyze, CI-checks 10 8 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 2 2 Major 62 %
Missing New ? All, Analyze 31 31 Critical 5 %
Mixed Concat And Interpolation All, Coding Conventions, Analyze 2 2 Minor 43 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 15 13 Minor 56 %
Multiple Type Variable All, Analyze, Level 4 14 11 Minor 43 %
Multiply By One Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 2 1 Minor 17 %
Nested Ifthen Analyze, All, RadwellCodes 3 2 Major 87 %
Nested Ternary Analyze, ClearPHP, All, Simple, Level 1, CI-checks 4 4 Major 20 %
No isset() With empty() All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks 1 1 Minor 28 %
No Need For Else All, Analyze 8 5 Minor 74 %
Variable Is Not A Condition All, Analyze 364 132 Minor 57 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks 1 1 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 1 1 Minor 73 %
Return True False Analyze, All, Simple, Level 1, CI-checks 4 4 Major 53 %
Same Conditions In Condition Analyze, All, Simple, CI-checks 2 2 Critical 49 %
Should Make Ternary All, Analyze, OneFile, Simple, CI-checks 23 22 Minor 85 %
Preprocessable Analyze, All, Rector 6 6 Minor 86 %
Should Use Explode Args All, Analyze, CI-checks 2 2 Minor 0 %
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 2 1 Major 15 %
Switch To Switch Analyze, All, RadwellCodes, Simple 1 1 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 1 1 Major 49 %
Unreachable Code Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3 1 1 Major 44 %
Use Positive Condition All, Analyze, OneFile, Simple 10 10 Minor 81 %
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 40 24 Minor 58 %
Useless Parenthesis Analyze, All, Simple, CI-checks 7 4 Minor 81 %
Already Parents Trait All, Analyze 1 1 Minor 0 %
Dependant Trait Analyze, All, Level 3 36 36 Minor 26 %
Trait Not Found All, Analyze, LintButWontExec 9 9 Minor 0 %
Undefined Trait Analyze, All, LintButWontExec, CI-checks 13 13 Critical 21 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks 1 1 Minor 47 %
String May Hold A Variable Analyze, All, Simple 19 12 Minor 58 %
Strings With Strange Space All, Analyze, CI-checks 1 1 Minor 15 %
Missing Returntype In Method All, Typehints, Analyze, CI-checks 6 4 Minor 0 %
Assigned Twice All, Analyze 39 17 Minor 78 %
Overwritten Literals Analyze, All 49 17 Major 78 %
Undefined Variable All, Analyze, CI-checks 27 5 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 1 1 Minor 87 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4 101 45 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple 78 43 Minor 78 %