PHP Static analysis for Tentacle

Label Recipes Issues Files Severity Frequence
Multiple Index Definition Analyze, OneFile, All, Simple 1 1 Minor 25 %
Null Or Boolean Arrays All, Analyze 10 2 Minor 0 %
Randomly Sorted Arrays All, Analyze, Level 4, Suggestions 2 1 Minor 41 %
String Initialization All, CompatibilityPHP71 63 13 Minor 33 %
Accessing Private Analyze, All, Simple 1 1 Major 13 %
Ambiguous Visibilities All, Analyze 39 19 Minor 70 %
Avoid option arrays in constructors All, Analyze, ClassReview 2 2 Minor 0 %
Avoid Optional Properties All, Analyze 17 7 Major 83 %
Could Be Abstract Class All, Analyze, ClassReview 10 9 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 97 75 Minor 95 %
Method Could Be Static All, Analyze, ClassReview 496 63 Minor 95 %
Cyclic References All, Analyze, ClassReview 1 1 Minor 0 %
Empty Classes Analyze, All, Simple 2 2 Minor 58 %
Incompatible Signature Methods With Covariance All, Analyze 7 4 Critical 0 %
Locally Unused Property Dead code, All, Simple 7 5 Minor 76 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 60 13 Minor 49 %
Mismatch Properties Typehints All, Analyze, LintButWontExec, ClassReview 5 4 Minor 0 %
Multiple Class Declarations Analyze, All, Simple 2 2 Major 5 %
No Public Access Analyze, All 42 13 Minor 60 %
Non Nullable Getters All, Analyze, ClassReview 19 8 Minor 0 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1 154 29 Minor 42 %
Non Static Methods Called In A Static Analyze, CompatibilityPHP56, All, Simple, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55 1315 157 Minor 20 %
Var Keyword Analyze, OneFile, ClearPHP, All, Simple, Level 1 31 1 Minor 22 %
Property Could Be Local All, Analyze, ClassReview 27 8 Minor 71 %
Never Used Properties Analyze, All, Simple 4 3 Minor 72 %
Property Used In One Method Only All, Analyze 34 13 Minor 84 %
Redefined Default Analyze, All, Simple 9 5 Major 26 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 28 8 Minor 57 %
Should Use Local Class Analyze, ClearPHP, All, Simple 491 61 Minor 94 %
Too Many Dereferencing All, Analyze 8 2 Minor 0 %
Wrong Access Style to Property All, Analyze, Level 2, ClassReview 326 18 Critical 3 %
Undefined Classes Analyze, All 6 3 Major 91 %
Undefined Parent Analyze, All, Simple 1 1 Minor 63 %
Undefined Properties Analyze, ClearPHP, All, Simple 15 1 Major 58 %
Undefined static:: Or self:: Analyze, All, Simple 2 1 Minor 33 %
Unresolved Catch Dead code, ClearPHP, All 23 4 Major 51 %
Unresolved Classes Analyze, All 2 2 Major 86 %
Unused Classes Dead code, All, Simple, Analyze 9 9 Major 72 %
Unused Methods Dead code, All, Simple 503 67 Minor 95 %
Unused Private Methods Dead code, OneFile, All, Simple 8 3 Minor 45 %
Unused Private Properties Dead code, OneFile, All, Simple 90 24 Minor 37 %
Use Class Operator All, Analyze, Performances, Simple 296 68 Minor 74 %
Use Instanceof Analyze, All, Simple 2 2 Major 63 %
Used Once Property All, Analyze 30 8 Minor 72 %
Useless Constructor Analyze, All, Simple, Level 3 2 2 Minor 38 %
Weak Typing All, Analyze 2 2 Minor 41 %
Illegal Name For Method All, Analyze, OneFile, Simple 2 1 Major 19 %
Use const Analyze, Coding Conventions, All, Top10 109 9 Minor 57 %
Constants With Strange Names Analyze, All, Simple 74 7 Minor 1 %
Constants Created Outside Its Namespace Analyze, All 1 1 Minor 0 %
Invalid Constant Name Analyze, All, Simple 74 7 Major 1 %
Multiple Constant Definition Analyze, All, Simple 59 8 Minor 32 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72 45 35 Minor 54 %
Unused Constants Dead code, All, Simple 14 5 Minor 36 %
Undefined Caught Exceptions Dead code, All 23 4 None 50 %
Uncaught Exceptions Analyze, All 7 7 Minor 81 %
Useless Catch All, Analyze 1 1 Minor 47 %
Missing Include All, Analyze 15 8 Critical 61 %
Aliases Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1 6 4 Minor 42 %
Use Named Boolean In Argument Definition All, Analyze 66 27 Minor 84 %
Callback Needs Return All, Analyze 2 1 Major 51 %
Could Make A Function All, Analyze, Suggestions 184 47 Minor 75 %
Deep Definitions Analyze, Appinfo, All, Simple 16 2 Major 12 %
Empty Function Analyze, All, Simple 24 16 Minor 71 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 20 12 Major 61 %
Insufficient Typehint All, Analyze, Typechecks 1 1 Major 24 %
Mismatched Default Arguments All, Analyze, Typechecks 54 25 Minor 33 %
Mismatched Typehint All, Analyze, Typechecks 35 13 Major 5 %
Never Used Parameter All, Analyze, Suggestions 225 61 Minor 47 %
No Boolean As Default All, Analyze 66 27 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4 24 9 Minor 41 %
Only Variable Passed By Reference All, Analyze 2 2 Critical 40 %
Relay Function Analyze, All 36 11 Major 83 %
Should Use Constants Analyze, All, Simple 3 3 Minor 24 %
Too Many Local Variables All, Analyze 14 11 Minor 65 %
Undefined Functions Analyze, All 48 9 Major 71 %
Unused Arguments Analyze, All, Simple 539 73 Major 89 %
Unused Functions Dead code, All, Simple 43 13 Minor 53 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple 31 12 Minor 39 %
Useless Referenced Argument All, Analyze 2 1 Minor 57 %
Useless Return Analyze, OneFile, All, Simple, Level 4 1 1 Minor 29 %
Uses Default Values Analyze, All, Simple 886 82 Minor 97 %
Methods Without Return All, Analyze 421 66 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple 55 14 Major 38 %
Wrong Optional Parameter Analyze, All, Simple, Level 1 3 3 Minor 38 %
Wrong Type With Call All, Analyze, Typechecks 4 2 Minor 0 %
Forgotten Interface All, Analyze 8 8 Minor 52 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10 5 5 Major 55 %
Logical To in_array All, Analyze, Level 2 20 8 Minor 66 %
Pre-increment Analyze, Performances, All, Simple, Level 4 42 15 Minor 74 %
strpos() Too Much All, Analyze 1 1 Minor 46 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze 29 8 Minor 0 %
Avoid set_error_handler $context Argument All, CompatibilityPHP72 1 1 Major 16 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2 10 3 Major 59 %
Deprecated Functions Analyze, All 2 1 Major 22 %
Wrong Parameter Type Analyze, OneFile, All, Simple 75 15 Major 45 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable 3 2 Minor 52 %
Logical Should Use Symbolic Operators Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable 68 23 Minor 42 %
Possible Missing Subpattern All, Analyze, Top10 1 1 Minor 40 %
No Class In Global All, Analyze 273 94 Minor 78 %
PHP 7.2 Deprecations All, CompatibilityPHP72 2 1 Major 1 %
PHP 7.2 Removed Functions All, CompatibilityPHP72 2 1 Major 1 %
PHP 8.0 Removed Functions All, CompatibilityPHP80 3 2 Major 0 %
$HTTP_RAW_POST_DATA Usage CompatibilityPHP56, Appinfo, All 1 1 Major 3 %
PHP Keywords As Names Analyze, All, Simple 211 26 Major 89 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74 6 1 Minor 0 %
set_exception_handler() Warning CompatibilityPHP70, All 1 1 Major 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3 26 5 Major 71 %
Strtr Arguments All, Analyze 1 1 Major 6 %
Too Many Native Calls All, Analyze 1 1 Minor 47 %
Use Nullable Type All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 63 23 Major 21 %
Use PHP Object API Analyze, ClearPHP, All, Simple 2 1 Minor 23 %
Use Pathinfo Analyze, All, Simple, Level 3 1 1 Minor 8 %
Avoid Using stdClass All, Analyze, OneFile, Simple, Level 4 1 1 Minor 45 %
Usort Sorting In PHP 7.0 CompatibilityPHP70, All 4 3 Major 46 %
Always Anchor Regex All, Security 23 12 Major 65 %
Avoid Those Hash Functions Security, All 19 6 Major 60 %
Configure Extract All, Security 1 1 Minor 22 %
Direct Injection Security, All 61 12 Major 41 %
Indirect Injection Security, All 12 7 Critical 21 %
Integer Conversion All, Security 2 1 Major 0 %
Keep Files Access Restricted All, Security 1 1 Minor 0 %
move_uploaded_file Instead Of copy All, Security 1 1 Major 3 %
No Net For Xml Load All, Security 4 3 Major 49 %
Set Cookie Safe Arguments All, Security 1 1 Major 23 %
Should Use Prepared Statement Analyze, Security, All, Simple 1 1 Major 22 %
Unserialize Second Arg Security, All 6 5 Critical 49 %
Upload Filename Injection All, Security 1 1 Major 4 %
Adding Zero Analyze, OneFile, ClearPHP, All, Simple, Level 1 51 15 Minor 33 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 13 8 Minor 92 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2 71 33 Minor 76 %
Buried Assignation Analyze, All 40 14 Minor 82 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 13 8 Minor 55 %
Check All Types All, Analyze 22 14 Major 68 %
Check JSON All, Analyze 26 14 Major 64 %
Common Alternatives Analyze, All, Simple 52 15 Major 61 %
Concat Empty String All, Analyze, OneFile 9 3 Minor 0 %
Could Use __DIR__ Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable 25 15 Major 56 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple 12 7 Minor 60 %
Could Use str_repeat() All, Analyze, Level 1, Top10 10 8 Minor 12 %
Dont Change The Blind Var All, Analyze 43 16 Minor 72 %
Dont Mix ++ All, Analyze 4 2 Minor 43 %
Double Assignation Analyze, All 18 10 Major 55 %
Double Instructions Analyze, All, Simple 7 7 Minor 57 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4 33 18 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 182 32 Minor 58 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector 72 15 Minor 65 %
Empty Blocks Analyze, All, Simple 6 4 Minor 57 %
Empty Instructions Dead code, Analyze, All, Simple 383 100 Minor 43 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All 23 13 Major 60 %
Switch Fallthrough All, Inventory, Security, Stats 1 1 Minor 37 %
Forgotten Whitespace Analyze, All 2 2 Minor 15 %
Global Usage Analyze, Appinfo, ClearPHP, All 8 2 Minor 52 %
Htmlentities Calls Analyze, All, Simple 4 2 Major 39 %
Identical Consecutive Expression All, Analyze 1 1 Minor 58 %
If With Same Conditions Analyze, All, Simple 2 1 Major 44 %
Iffectations Analyze, All 23 13 Minor 80 %
Implied If Analyze, ClearPHP, All, Simple 2 2 Major 29 %
Implode() Arguments Order All, Analyze 2 1 Minor 0 %
Inconsistent Elseif All, Analyze 8 6 Major 73 %
Indices Are Int Or String Analyze, OneFile, All, Simple 3 1 Major 18 %
Infinite Recursion All, Analyze 10 5 Major 0 %
Invalid Regex All, Analyze 2 2 Major 18 %
Long Arguments All, Analyze 41 6 Minor 67 %
Max Level Of Nesting All, Analyze 23 17 Minor 0 %
Merge If Then All, Analyze 23 12 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 6 2 Major 62 %
Missing New ? All, Analyze 7 5 Critical 5 %
Mixed Concat And Interpolation All, Coding Conventions, Analyze 4 3 Minor 43 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 24 12 Minor 56 %
Multiple Type Variable All, Analyze, Level 4 7 4 Minor 43 %
Multiply By One Analyze, OneFile, ClearPHP, All, Simple, Level 1 2 2 Minor 17 %
Nested Ifthen Analyze, All, RadwellCodes 98 28 Major 87 %
Nested Ternary Analyze, ClearPHP, All, Simple, Level 1 1 1 Major 20 %
Next Month Trap All, Analyze, Top10 1 1 Major 7 %
No Choice Analyze, All, Simple, Level 2, Top10 1 1 Major 43 %
No Direct Usage Analyze, All, Simple 2 2 Major 36 %
No Hardcoded Hash Analyze, Security, All, Simple 2 2 Critical 44 %
No Hardcoded Path Analyze, ClearPHP, All, Simple 6 4 Major 33 %
No Need For Else All, Analyze 58 19 Minor 74 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2 68 25 Minor 61 %
Avoid Substr() One Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10 20 8 Minor 57 %
Variable Is Not A Condition All, Analyze 131 44 Minor 57 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances 19 9 Minor 66 %
Not Equal Is Not !== All, Analyze 2 2 Minor 0 %
include_once() Usage Analyze, Appinfo, All 40 24 Minor 73 %
Several Instructions On The Same Line Analyze, All 127 42 Major 57 %
Or Die Analyze, OneFile, ClearPHP, All, Simple 3 1 Minor 13 %
Phpinfo OneFile, All, Simple, Security 1 1 Major 14 %
Print And Die Analyze, All, Simple 2 2 Minor 29 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10 24 10 Major 49 %
Repeated Regex All, Analyze, Level 1 19 4 Minor 47 %
Return True False Analyze, All, Simple, Level 1 2 2 Major 53 %
Same Conditions In Condition Analyze, All, Simple 1 1 Critical 49 %
Should Make Ternary All, Analyze, OneFile, Simple 77 31 Minor 85 %
Preprocessable Analyze, All, Rector 800 89 Minor 86 %
Static Loop Analyze, All, Simple, Level 4 8 4 Minor 65 %
Strpos()-like Comparison Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10 12 6 Major 54 %
Switch To Switch Analyze, All, RadwellCodes, Simple 33 9 Minor 79 %
Switch Without Default Analyze, ClearPHP, All, Simple 3 3 Major 68 %
Timestamp Difference Analyze, All, Simple, Level 3 5 3 Major 50 %
Unchecked Resources Analyze, ClearPHP, All, Simple, Level 2 9 7 Major 49 %
Unconditional Break In Loop All, Analyze, Level 3 1 1 Major 46 %
Unpreprocessed Values Analyze, OneFile, ClearPHP, All, Simple 3 3 Minor 28 %
Unreachable Code Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3 40 7 Major 44 %
Use Constant PHP recommendations, All, Analyze, php-cs-fixable 28 16 Minor 0 %
Avoid get_class() Analyze, All, Simple 1 1 Minor 32 %
Use Positive Condition All, Analyze, OneFile, Simple 65 33 Minor 81 %
Useless Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4 2 1 Minor 37 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1 2 2 None 58 %
Useless Parenthesis Analyze, All, Simple 116 19 Minor 81 %
var_dump()... Usage Analyze, ClearPHP, Security, All 32 2 Critical 40 %
preg_replace With Option e Analyze, CompatibilityPHP70, Security, CompatibilityPHP71, All, Simple, CompatibilityPHP72 1 1 Major 8 %
One Variable String Analyze, All, RadwellCodes, Simple 3 2 Minor 29 %
Should Typecast Analyze, OneFile, All, Simple 3 3 Minor 47 %
String May Hold A Variable Analyze, All, Simple 29 4 Minor 58 %
Strings With Strange Space All, Analyze 1 1 Minor 15 %
Assigned Twice All, Analyze 92 20 Minor 78 %
Overwritten Literals Analyze, All 132 20 Major 78 %
Strange Name For Variables All, Analyze 3 2 Minor 28 %
Undefined Variable All, Analyze 4668 128 Minor 77 %
Non Ascii Variables Analyze, All 39 9 Minor 64 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 40 19 Minor 87 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4 230 70 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple 349 41 Minor 78 %