ecoco/magento_profiler

View on GitHub
app/code/community/Ecocode/Profiler/Block/Collector/Mysql/Panel.php

Summary

Maintainability
A
1 hr
Test Coverage

Method prepareQueryData has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function prepareQueryData()
    {
        $this->queries          = [];
        $this->identicalQueries = [];
        $this->queriesByContext = [];
Severity: Minor
Found in app/code/community/Ecocode/Profiler/Block/Collector/Mysql/Panel.php - About 1 hr to fix

    Avoid excessively long class names like Ecocode_Profiler_Block_Collector_Mysql_Panel. Keep class name length under 40.
    Open

    class Ecocode_Profiler_Block_Collector_Mysql_Panel
        extends Ecocode_Profiler_Block_Collector_Base
    {
    
    
    

    LongClassName

    Since: 2.9

    Detects when classes or interfaces are declared with excessively long names.

    Example

    class ATooLongClassNameThatHintsAtADesignProblem {
    
    }
    
    interface ATooLongInterfaceNameThatHintsAtADesignProblem {
    
    }

    Source https://phpmd.org/rules/naming.html#longclassname

    There are no issues that match your filters.

    Category
    Status