CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method the_content_rss has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) {
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/deprecated.php - About 35 mins to fix

    Method _wptexturize_pushpop_element has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function _wptexturize_pushpop_element($text, &$stack, $disabled_elements, $opening = '<', $closing = '>') {
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/formatting.php - About 35 mins to fix

      Method links_popup_script has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) {
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/deprecated.php - About 35 mins to fix

        Method add has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            function add( $handle, $src, $deps = array(), $ver = false, $args = null ) {
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/class.wp-dependencies.php - About 35 mins to fix

          Method wpmu_welcome_notification has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          function wpmu_welcome_notification( $blog_id, $user_id, $password, $title, $meta = array() ) {
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/ms-functions.php - About 35 mins to fix

            Method comments_popup_link has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            function comments_popup_link( $zero = false, $one = false, $more = false, $css_class = '', $none = false ) {
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-includes/comment-template.php - About 35 mins to fix

              Method wp_register_style has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              function wp_register_style( $handle, $src, $deps = array(), $ver = false, $media = 'all' ) {
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/functions.wp-styles.php - About 35 mins to fix

                Method adjacent_post_link has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                function adjacent_post_link($format, $link, $in_same_cat = false, $excluded_categories = '', $previous = true) {
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/link-template.php - About 35 mins to fix

                  Method update_metadata has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  function update_metadata($meta_type, $object_id, $meta_key, $meta_value, $prev_value = '') {
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/meta.php - About 35 mins to fix

                    Method Services_JSON_Error has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                            function Services_JSON_Error($message = 'unknown error', $code = null,
                                                        $mode = null, $options = null, $userinfo = null)
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/class-json.php - About 35 mins to fix

                      Method wp_enqueue_script has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      function wp_enqueue_script( $handle, $src = false, $deps = array(), $ver = false, $in_footer = false ) {
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/functions.wp-scripts.php - About 35 mins to fix

                        Method Services_JSON_Error has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                function Services_JSON_Error($message = 'unknown error', $code = null,
                                                            $mode = null, $options = null, $userinfo = null)
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/class-json.php - About 35 mins to fix

                          Method wp_register_script has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_footer = false ) {
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/functions.wp-scripts.php - About 35 mins to fix

                            Method AddEmbeddedImage has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                              function AddEmbeddedImage($path, $cid, $name = '', $encoding = 'base64', $type = 'application/octet-stream') {
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-includes/class-phpmailer.php - About 35 mins to fix

                              Method add_metadata has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              function add_metadata($meta_type, $object_id, $meta_key, $meta_value, $unique = false) {
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/meta.php - About 35 mins to fix

                                Method wp_enqueue_style has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                function wp_enqueue_style( $handle, $src = false, $deps = array(), $ver = false, $media = false ) {
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/functions.wp-styles.php - About 35 mins to fix

                                  Method start_el has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      function start_el(&$output, $page, $depth, $args, $current_page) {
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/classes.php - About 35 mins to fix

                                    Method delete_metadata has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    function delete_metadata($meta_type, $object_id, $meta_key, $meta_value = '', $delete_all = false) {
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/meta.php - About 35 mins to fix

                                      Function addControls has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                      dw_Rotator.addControls = function() {
                                          var els = dw_getElementsByClassName('rotator_controls');
                                          for (var i=0; els[i]; i++) {
                                              var links = els[i].getElementsByTagName('a');
                                              for (var j=0; links[j]; j++) {
                                      Severity: Minor
                                      Found in Web.Admin/2015/js/dw_rotator_aux.js - About 35 mins to fix

                                      Cognitive Complexity

                                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                      A method's cognitive complexity is based on a few simple rules:

                                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                      • Code is considered more complex for each "break in the linear flow of the code"
                                      • Code is considered more complex when "flow breaking structures are nested"

                                      Further reading

                                      Function request has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                        request: function(form, options) {
                                          form = $(form), options = Object.clone(options || { });
                                      
                                          var params = options.parameters, action = form.readAttribute('action') || '';
                                          if (action.blank()) action = window.location.href;
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 35 mins to fix

                                      Cognitive Complexity

                                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                      A method's cognitive complexity is based on a few simple rules:

                                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                      • Code is considered more complex for each "break in the linear flow of the code"
                                      • Code is considered more complex when "flow breaking structures are nested"

                                      Further reading

                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language