PHP Static analysis for PayPal-PHP-SDK

Label Recipes Issues Files Severity Frequence
Non-constant Index In Array Analyze, All, Simple 9 2 Minor 26 %
Null Or Boolean Arrays All, Analyze 1 1 Minor 0 %
Ambiguous Static All, Analyze 35 31 Minor 64 %
Ambiguous Visibilities All, Analyze 2 2 Minor 70 %
Avoid Optional Properties All, Analyze 7 4 Major 83 %
Cant Instantiate Class All, Analyze 3 3 Critical 28 %
Child Class Removes Typehint All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Typechecks 1 1 Major 1 %
Constant Class Analyze, All, Simple, CI-checks 1 1 Minor 49 %
Could Be Abstract Class All, Analyze, ClassReview 6 6 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 153 153 Minor 95 %
Method Could Be Static All, Analyze, ClassReview 12 7 Minor 95 %
Different Argument Counts All, Analyze, ClassReview 1 1 Minor 0 %
No Direct Call To Magic Method Analyze, All, Level 2, CI-checks 3 1 Major 41 %
Empty Classes Analyze, All, Simple 2 2 Minor 58 %
Class Should Be Final By Ocramius All, Analyze 1 1 Minor 42 %
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 1 Minor 49 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 2 2 Critical 50 %
No Public Access Analyze, All 5 3 Minor 60 %
Property Could Be Local All, Analyze, ClassReview 15 13 Minor 71 %
Never Used Properties Analyze, All, Simple 1 1 Minor 72 %
Property Used In One Method Only All, Analyze 10 9 Minor 84 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 7 3 Minor 57 %
Should Use Local Class Analyze, ClearPHP, All, Simple 26 18 Minor 94 %
Static Methods Called From Object Analyze, All, Simple, CI-checks 1 1 Minor 38 %
Wrong Access Style to Property All, Analyze, Level 2, ClassReview, CI-checks 2 1 Critical 3 %
Undefined Classes Analyze, All 31 16 Major 91 %
Undefined Class Constants Analyze, All, CI-checks 9 1 Major 53 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks 1660 133 Major 58 %
Unresolved Classes Analyze, All 2 2 Major 86 %
Unused Classes Dead code, All, Simple, Analyze 1 1 Major 72 %
Unused Class Constant All, Analyze, ClassReview 1 1 Minor 0 %
Unused Methods Dead code, All, Simple 1561 147 Minor 95 %
Unused Private Methods Dead code, OneFile, All, Simple 2 2 Minor 45 %
Unused Private Properties Dead code, OneFile, All, Simple 2 2 Minor 37 %
Use Class Operator All, Analyze, Performances, Simple, CI-checks 5 4 Minor 74 %
Use Instanceof Analyze, All, Simple, CI-checks 3 3 Major 63 %
Used Once Property All, Analyze 3 3 Minor 72 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks 38 6 Minor 54 %
Catch Undefined Variable All, Analyze 25 1 Minor 0 %
Forgotten Thrown All, Analyze 1 1 Major 30 %
Overwritten Exceptions Analyze, All, Simple, Suggestions, Level 4, CI-checks 1 1 Minor 19 %
Uncaught Exceptions Analyze, All 22 13 Minor 81 %
Missing Include All, Analyze 1 1 Critical 61 %
Aliases Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks 4 2 Minor 42 %
Use Named Boolean In Argument Definition All, Analyze 3 3 Minor 84 %
Could Make A Function All, Analyze, Suggestions 92 82 Minor 75 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 6 6 Major 61 %
Mismatch Parameter Name All, Analyze, CompatibilityPHP80 2 2 Minor 0 %
Mismatched Default Arguments All, Analyze, Typechecks 14 11 Minor 33 %
Never Used Parameter All, Analyze, Suggestions 101 36 Minor 47 %
No Boolean As Default All, Analyze 3 3 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4 62 42 Minor 41 %
Relay Function Analyze, All 10 4 Major 83 %
Undefined Functions Analyze, All, CI-checks 88 24 Major 71 %
Unused Arguments Analyze, All, Simple 3 2 Major 89 %
Uses Default Values Analyze, All, Simple, CI-checks 128 51 Minor 97 %
Using Deprecated Method All, Analyze 20 5 Minor 0 %
Methods Without Return All, Analyze 39 13 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks 4 2 Major 38 %
Wrong Optional Parameter Analyze, All, Simple, Level 1, CI-checks 3 3 Minor 38 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks 1 1 Minor 0 %
Empty Interfaces Analyze, All, Simple 1 1 Minor 38 %
Useless Interfaces Analyze, ClearPHP, All, Simple, ClassReview, Typechecks 3 3 Minor 57 %
Hidden Use Expression Analyze, OneFile, All, Simple, CI-checks 53 31 Minor 24 %
Unused Use Dead code, ClearPHP, All, Simple 56 40 Major 54 %
Use With Fully Qualified Name Analyze, Coding Conventions, PHP recommendations, All, Simple 2 1 Minor 16 %
Logical To in_array All, Analyze, Level 2 1 1 Minor 66 %
Memoize MagicCall All, Analyze, ClassReview 2 2 Minor 0 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks 3 2 Minor 74 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze 19 11 Minor 0 %
Assumptions All, Analyze 1 1 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks 18 16 Major 59 %
Detect Current Class All, Suggestions, CompatibilityPHP74 4 4 None 47 %
Don't Pollute Global Space All, Analyze 3 2 Minor 0 %
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 6 4 Minor 52 %
No Class In Global All, Analyze, CI-checks 3 2 Minor 78 %
PHP Keywords As Names Analyze, All, Simple 95 14 Major 89 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks 6 5 Major 71 %
Use Nullable Type All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 122 41 Major 21 %
Avoid Using stdClass All, Analyze, OneFile, Simple, Level 4 2 1 Minor 45 %
Wrong Type For Native PHP Function All, Analyze, CI-checks 38 29 Minor 0 %
Don't Echo Error All, Analyze, Security, Simple, Level 1, CI-checks 1 1 Critical 32 %
Indirect Injection Security, All 1 1 Critical 21 %
Should Use session_regenerateid() All, Security 1 1 Major 82 %
Array_merge Needs Array Of Arrays All, Analyze 1 1 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 7 7 Minor 92 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks 9 8 Minor 76 %
Buried Assignation Analyze, All 4 2 Minor 82 %
Check All Types All, Analyze 5 2 Major 68 %
Check JSON All, Analyze, CI-checks 8 4 Major 64 %
Common Alternatives Analyze, All, Simple 3 3 Major 61 %
Could Use __DIR__ Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks 3 3 Major 56 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks 2 2 Minor 60 %
Dont Change The Blind Var All, Analyze 2 2 Minor 72 %
Double Assignation Analyze, All 2 2 Major 55 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks 10 9 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 12 2 Minor 58 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks 1 1 Minor 65 %
Empty Instructions Dead code, Analyze, All, Simple 1 1 Minor 43 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks 100 83 Major 60 %
Iffectations Analyze, All 6 3 Minor 80 %
Inconsistent Elseif All, Analyze 2 2 Major 73 %
Long Arguments All, Analyze 5 4 Minor 67 %
Max Level Of Nesting All, Analyze 1 1 Minor 0 %
Merge If Then All, Analyze, CI-checks 5 5 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 6 4 Major 62 %
Mixed Concat And Interpolation All, Coding Conventions, Analyze 2 2 Minor 43 %
Nested Ifthen Analyze, All, RadwellCodes 7 5 Major 87 %
No Need For Else All, Analyze 11 9 Minor 74 %
Variable Is Not A Condition All, Analyze 34 11 Minor 57 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks 2 2 Minor 66 %
include_once() Usage Analyze, Appinfo, All 2 2 Minor 73 %
PHP7 Dirname CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Suggestions, php-cs-fixable 2 2 Minor 42 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks 2 1 Major 49 %
Same Conditions In Condition Analyze, All, Simple, CI-checks 1 1 Critical 49 %
Should Chain Exception Analyze, All, Simple, CI-checks 1 1 Minor 36 %
Should Make Ternary All, Analyze, OneFile, Simple, CI-checks 5 5 Minor 85 %
Preprocessable Analyze, All, Rector 10 7 Minor 86 %
Strpos()-like Comparison Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks 1 1 Major 54 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks 2 2 Major 68 %
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 2 2 Minor 0 %
Use Constant PHP recommendations, All, Analyze, php-cs-fixable, CI-checks 3 3 Minor 0 %
Use Positive Condition All, Analyze, OneFile, Simple 63 44 Minor 81 %
Useless Parenthesis Analyze, All, Simple, CI-checks 6 3 Minor 81 %
var_dump()... Usage Analyze, ClearPHP, Security, All, CI-checks 2 1 Critical 40 %
Assigned Twice All, Analyze 2 1 Minor 78 %
Overwritten Literals Analyze, All 3 1 Major 78 %
Undefined Variable All, Analyze, CI-checks 118 80 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 6 6 Minor 87 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4 85 69 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple 4 4 Minor 78 %