woocommerce/woocommerce

View on GitHub

Showing 3,141 of 4,341 total issues

Function S2 has 4930 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var S2 =(function () {
  // Restore the Select2 AMD loader so it can be used
  // Needed mostly in the language files, where the loader is not inserted
  if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) {
    var S2 = jQuery.fn.select2.amd;
Severity: Major
Found in assets/js/selectWoo/selectWoo.full.js - About 3 wks to fix

    Function S2 has 4825 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    (function () {
      // Restore the Select2 AMD loader so it can be used
      // Needed mostly in the language files, where the loader is not inserted
      if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) {
        var S2 = jQuery.fn.select2.amd;
    Severity: Major
    Found in assets/js/select2/select2.full.js - About 3 wks to fix

      Function S2 has 4420 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        var S2 =(function () {
        // Restore the Select2 AMD loader so it can be used
        // Needed mostly in the language files, where the loader is not inserted
        if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) {
          var S2 = jQuery.fn.select2.amd;
      Severity: Major
      Found in assets/js/selectWoo/selectWoo.js - About 3 wks to fix

        Function S2 has 4315 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        (function () {
          // Restore the Select2 AMD loader so it can be used
          // Needed mostly in the language files, where the loader is not inserted
          if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) {
            var S2 = jQuery.fn.select2.amd;
        Severity: Major
        Found in assets/js/select2/select2.js - About 3 wks to fix

          File selectWoo.full.js has 4957 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*!
           * SelectWoo 1.0.6
           * https://github.com/woocommerce/selectWoo
           *
           * Released under the MIT license
          Severity: Major
          Found in assets/js/selectWoo/selectWoo.full.js - About 2 wks to fix

            File select2.full.js has 4841 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*!
             * Select2 4.0.3
             * https://select2.github.io
             *
             * Released under the MIT license
            Severity: Major
            Found in assets/js/select2/select2.full.js - About 2 wks to fix

              Function PhotoSwipe has 2598 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  var PhotoSwipe = function(template, UiClass, items, options){
              
              /*>>framework-bridge*/
              /**
               *
              Severity: Major
              Found in assets/js/photoswipe/photoswipe.js - About 1 wk to fix

                File selectWoo.js has 4447 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /*!
                 * SelectWoo 1.0.6
                 * https://github.com/woocommerce/selectWoo
                 *
                 * Released under the MIT license
                Severity: Major
                Found in assets/js/selectWoo/selectWoo.js - About 1 wk to fix

                  File select2.js has 4331 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /*!
                   * Select2 4.0.3
                   * https://select2.github.io
                   *
                   * Released under the MIT license
                  Severity: Major
                  Found in assets/js/select2/select2.js - About 1 wk to fix

                    Function Plot has 1905 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function Plot(placeholder, data_, options_, plugins) {
                            // data is on the form:
                            //   [ series1, series2 ... ]
                            // where series is either just the data as [ [x1, y1], [x2, y2], ... ]
                            // or { data: [ [x1, y1], [x2, y2], ... ], label: "some label", ... }
                    Severity: Major
                    Found in assets/js/jquery-flot/jquery.flot.js - About 1 wk to fix

                      File photoswipe.js has 2611 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /*! PhotoSwipe - v4.1.3 - 2019-01-08
                      * http://photoswipe.com
                      * Copyright (c) 2019 Dmitry Semenov; */
                      (function (root, factory) { 
                          if (typeof define === 'function' && define.amd) {
                      Severity: Major
                      Found in assets/js/photoswipe/photoswipe.js - About 1 wk to fix

                        File wc-template-functions.php has 2201 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        /**
                         * WooCommerce Template
                         *
                         * Functions for the templating system.
                        Severity: Major
                        Found in includes/wc-template-functions.php - About 6 days to fix

                          File jquery.flot.js has 2148 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          /* Javascript plotting library for jQuery, version 0.8.1.
                          
                          Copyright (c) 2007-2013 IOLA and Ole Laursen.
                          Licensed under the MIT license.
                          
                          
                          Severity: Major
                          Found in assets/js/jquery-flot/jquery.flot.js - About 5 days to fix

                            File class-wc-api-products.php has 2018 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php
                            /**
                             * WooCommerce API Products Class
                             *
                             * Handles requests to the /products endpoint
                            Severity: Major
                            Found in includes/legacy/api/v3/class-wc-api-products.php - About 5 days to fix

                              File class-wc-rest-products-v1-controller.php has 1966 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              <?php
                              /**
                               * REST API Products controller
                               *
                               * Handles requests to the /products endpoint.

                                File class-wc-ajax.php has 1943 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                <?php
                                /**
                                 * WooCommerce WC_AJAX. AJAX Event Handlers.
                                 *
                                 * @class   WC_AJAX
                                Severity: Major
                                Found in includes/class-wc-ajax.php - About 5 days to fix

                                  File class-wc-rest-products-v2-controller.php has 1797 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  <?php
                                  /**
                                   * REST API Products controller
                                   *
                                   * Handles requests to the /products endpoint.

                                    File states.php has 1796 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    <?php
                                    /**
                                     * States
                                     *
                                     * Returns an array of country states. This deprecates and replaces the /states/ directory found in older versions.
                                    Severity: Major
                                    Found in i18n/states.php - About 4 days to fix

                                      File class-wc-admin-setup-wizard.php has 1682 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      <?php
                                      /**
                                       * Setup Wizard Class
                                       *
                                       * Takes new users through some basic steps to setup their store.
                                      Severity: Major
                                      Found in includes/admin/class-wc-admin-setup-wizard.php - About 4 days to fix

                                        Function flexslider has 891 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          $.flexslider = function(el, options) {
                                            var slider = $(el);
                                        
                                            // making variables public
                                        
                                        
                                        Severity: Major
                                        Found in assets/js/flexslider/jquery.flexslider.js - About 4 days to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language