vint3creative/widgetify-divi-layouts

View on GitHub

Showing 15 of 15 total issues

Method form has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function form( $instance ) {

        $selected_layout_id = ! empty( $instance['layout_id'] ) ? \sanitize_key( $instance['layout_id'] ) : '';

        $layouts = \get_posts( array(
Severity: Minor
Found in lib/Widgets/Layout.php - About 1 hr to fix

    Equals sign not aligned with surrounding assignments; expected 14 spaces but found 1 space
    Open

            $instance = array();
    Severity: Minor
    Found in lib/Widgets/Layout.php by phpcodesniffer

    Filenames should be all lowercase with hyphens as word separators. Expected widgets.php, but found Widgets.php.
    Open

    <?php
    Severity: Minor
    Found in lib/Widgets.php by phpcodesniffer

    Class file names should be based on the class name with "class-" prepended. Expected class-plugin.php, but found Plugin.php.
    Open

    <?php
    Severity: Minor
    Found in lib/Plugin.php by phpcodesniffer

    Filenames should be all lowercase with hyphens as word separators. Expected plugin.php, but found Plugin.php.
    Open

    <?php
    Severity: Minor
    Found in lib/Plugin.php by phpcodesniffer

    All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$args'.
    Open

            echo $args['after_widget'];
    Severity: Minor
    Found in lib/Widgets/Layout.php by phpcodesniffer

    All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$options'.
    Open

                $options
    Severity: Minor
    Found in lib/Widgets/Layout.php by phpcodesniffer

    Class file names should be based on the class name with "class-" prepended. Expected class-layout.php, but found Layout.php.
    Open

    <?php
    Severity: Minor
    Found in lib/Widgets/Layout.php by phpcodesniffer

    All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$args'.
    Open

            echo $args['before_widget'];
    Severity: Minor
    Found in lib/Widgets/Layout.php by phpcodesniffer

    All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'.
    Open

                \__( 'Layout', 'widgetify-divi-layouts' )
    Severity: Minor
    Found in lib/Widgets/Layout.php by phpcodesniffer

    All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'.
    Open

                $this->get_field_id( 'layout_id' ),
    Severity: Minor
    Found in lib/Widgets/Layout.php by phpcodesniffer

    Filenames should be all lowercase with hyphens as word separators. Expected layout.php, but found Layout.php.
    Open

    <?php
    Severity: Minor
    Found in lib/Widgets/Layout.php by phpcodesniffer

    All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'.
    Open

                $this->get_field_id( 'layout' ),
    Severity: Minor
    Found in lib/Widgets/Layout.php by phpcodesniffer

    All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'.
    Open

                $this->get_field_name( 'layout_id' ),
    Severity: Minor
    Found in lib/Widgets/Layout.php by phpcodesniffer

    Class file names should be based on the class name with "class-" prepended. Expected class-widgets.php, but found Widgets.php.
    Open

    <?php
    Severity: Minor
    Found in lib/Widgets.php by phpcodesniffer
    Severity
    Category
    Status
    Source
    Language