squirrly/squirrly-seo

View on GitHub
core/SQ_Loading/SQ_Loading.php

Summary

Maintainability
A
1 hr
Test Coverage

Method hookHead has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function hookHead() {
        global $sq_postID;

        parent::hookHead();
        $exists = false;
Severity: Minor
Found in core/SQ_Loading/SQ_Loading.php - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

            if ((isset($browser) && $browser != false && is_array($browser) && $browser['name'] == 'IE' && (int) $browser['version'] < 9 && (int) $browser['version'] > 0)) {
                echo '<script type="text/javascript">
                        jQuery("#sq_preloading").removeClass("sq_loading");
                        jQuery("#sq_preloading").addClass("sq_error")
                        jQuery("#sq_preloading").html("' . __('For Squirrly to work properly you have to use a higher version of Internet Explorer. <br /> We recommend you to use Chrome or Mozilla.', _PLUGIN_NAME_) . '");
    Severity: Major
    Found in core/SQ_Loading/SQ_Loading.php - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status