desrosj/respect-art-direction

View on GitHub
respect-art-direction.php

Summary

Maintainability
A
1 hr
Test Coverage

Method rad_plugins_loaded has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function rad_plugins_loaded() {
    /*
     * Register breakpoints.
     */
    rad_add_breakpoint( 'rad_large', '(min-width: 1001px)' );
Severity: Minor
Found in respect-art-direction.php - About 1 hr to fix

    "include_once" is a statement not a function; no parentheses are required
    Open

    include_once( 'functions-breakpoints.php' );
    Severity: Minor
    Found in respect-art-direction.php by phpcodesniffer

    "include_once" is a statement not a function; no parentheses are required
    Open

    include_once( 'functions-media-sets.php' );
    Severity: Minor
    Found in respect-art-direction.php by phpcodesniffer

    Each array item in a multi-line array declaration must end in a comma
    Open

                'custom1_small_size'
    Severity: Minor
    Found in respect-art-direction.php by phpcodesniffer

    Array double arrow not aligned correctly; expected 2 space(s) between "'rad_small'" and double arrow, but found 1.
    Open

            'rad_small' => array(
    Severity: Minor
    Found in respect-art-direction.php by phpcodesniffer

    File is being unconditionally included; use "require_once" instead
    Open

    include_once( 'functions-display.php' );
    Severity: Minor
    Found in respect-art-direction.php by phpcodesniffer

    "include_once" is a statement not a function; no parentheses are required
    Open

    include_once( 'functions-source-lists.php' );
    Severity: Minor
    Found in respect-art-direction.php by phpcodesniffer

    Array double arrow not aligned correctly; expected 4 space(s) between "'default'" and double arrow, but found 1.
    Open

            'default' => array(
    Severity: Minor
    Found in respect-art-direction.php by phpcodesniffer

    Array double arrow not aligned correctly; expected 4 space(s) between "'default'" and double arrow, but found 1.
    Open

            'default' => array(
    Severity: Minor
    Found in respect-art-direction.php by phpcodesniffer

    File is being unconditionally included; use "require_once" instead
    Open

    include_once( 'functions-breakpoints.php' );
    Severity: Minor
    Found in respect-art-direction.php by phpcodesniffer

    "include_once" is a statement not a function; no parentheses are required
    Open

    include_once( 'functions-display.php' );
    Severity: Minor
    Found in respect-art-direction.php by phpcodesniffer

    Array double arrow not aligned correctly; expected 2 space(s) between "'rad_large'" and double arrow, but found 1.
    Open

            'rad_large' => array(
    Severity: Minor
    Found in respect-art-direction.php by phpcodesniffer

    Array double arrow not aligned correctly; expected 2 space(s) between "'rad_small'" and double arrow, but found 1.
    Open

            'rad_small' => array(
    Severity: Minor
    Found in respect-art-direction.php by phpcodesniffer

    File is being unconditionally included; use "require_once" instead
    Open

    include_once( 'functions-media-sets.php' );
    Severity: Minor
    Found in respect-art-direction.php by phpcodesniffer

    Array double arrow not aligned correctly; expected 2 space(s) between "'rad_large'" and double arrow, but found 1.
    Open

            'rad_large' => array(
    Severity: Minor
    Found in respect-art-direction.php by phpcodesniffer

    Missing file doc comment
    Open

    <?php
    Severity: Minor
    Found in respect-art-direction.php by phpcodesniffer

    File is being unconditionally included; use "require_once" instead
    Open

    include_once( 'functions-source-lists.php' );
    Severity: Minor
    Found in respect-art-direction.php by phpcodesniffer

    There are no issues that match your filters.

    Category
    Status