CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Method _get_list_table has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function _get_list_table( $class, $args = array() ) {
    $core_classes = array(
        //Site Admin
        'WP_Posts_List_Table' => 'posts',
        'WP_Media_List_Table' => 'media',
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-admin/includes/list-table.php - About 1 hr to fix

    Method extra_tablenav has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function extra_tablenav( $which ) {
            global $comment_status, $comment_type;
    ?>
            <div class="alignleft actions">
    <?php

      Method import_tags has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function import_tags ( ) {
              echo '<div class="narrow">';
              echo '<p><h3>'.__('Reading UTW Tags&#8230;').'</h3></p>';
      
              $tags = $this->get_utw_tags();
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-admin/import/utw.php - About 1 hr to fix

        Method link_advanced_meta_box has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function link_advanced_meta_box($link) {
        ?>
        <table class="form-table" style="width: 100%;" cellspacing="2" cellpadding="5">
            <tr class="form-field">
                <th valign="top"  scope="row"><label for="link_image"><?php _e('Image Address') ?></label></th>
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-admin/includes/meta-boxes.php - About 1 hr to fix

          Method add_menu_classes has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function add_menu_classes($menu) {
          
              $first = $lastorder = false;
              $i = 0;
              $mc = count($menu);
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/menu.php - About 1 hr to fix

            Method cat2wp has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function cat2wp($categories='')
                {
                    // General Housekeeping
                    global $wpdb;
                    $count = 0;
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-admin/import/textpattern.php - About 1 hr to fix

              Method blogger_newPost has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function blogger_newPost($args) {
              
                      $this->escape($args);
              
                      $blog_ID    = (int) $args[1]; /* though we don't use it yet */
              Severity: Minor
              Found in Web.Admin/2014/wordpress/xmlrpc.php - About 1 hr to fix

                Method display_start_page has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public static function display_start_page() {
                        if ( isset( $_GET['action'] ) ) {
                            if ( $_GET['action'] == 'delete-key' ) {
                                if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], self::NONCE ) )
                                    delete_option( 'wordpress_api_key' );

                  Method twentyfourteen_list_authors has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function twentyfourteen_list_authors() {
                      $contributor_ids = get_users( array(
                          'fields'  => 'ID',
                          'orderby' => 'post_count',
                          'order'   => 'DESC',

                    Method get_featured_post_ids has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public static function get_featured_post_ids() {
                            // Return array of cached results if they exist.
                            $featured_ids = get_transient( 'featured_content_ids' );
                            if ( ! empty( $featured_ids ) ) {
                                return array_map( 'absint', (array) $featured_ids );

                      Method rightnow_stats has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public static function rightnow_stats() {
                              global $submenu, $wp_db_version;
                      
                              if ( 8645 < $wp_db_version  ) // 2.7
                                  $link = add_query_arg( array( 'comment_status' => 'spam' ), admin_url( 'edit-comments.php' ) );

                        Method twentyfourteen_customize_register has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function twentyfourteen_customize_register( $wp_customize ) {
                            // Add custom description to Colors and Background sections.
                            $wp_customize->get_section( 'colors' )->description           = __( 'Background may only be visible on wide screens.', 'twentyfourteen' );
                            $wp_customize->get_section( 'background_image' )->description = __( 'Background may only be visible on wide screens.', 'twentyfourteen' );
                        
                        

                          Method wp_getUsersBlogs has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function wp_getUsersBlogs( $args ) {
                                  // If this isn't on WPMU then just use blogger_getUsersBlogs
                                  if ( !is_multisite() ) {
                                      array_unshift( $args, 1 );
                                      return $this->blogger_getUsersBlogs( $args );
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 1 hr to fix

                            Method wp_delete_comment has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function wp_delete_comment($comment_id) {
                                global $wpdb;
                                if (!$comment = get_comment($comment_id))
                                    return false;
                            
                            
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-includes/comment.php - About 1 hr to fix

                              Method blogger_editPost has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function blogger_editPost($args) {
                              
                                      $this->escape($args);
                              
                                      $post_ID     = (int) $args[1];
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 1 hr to fix

                                Method get_term_link has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function get_term_link( $term, $taxonomy ) {
                                    global $wp_rewrite;
                                
                                    if ( !is_object($term) ) {
                                        if ( is_int($term) ) {
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/taxonomy.php - About 1 hr to fix

                                  Method RecursiveFrameScanning has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function RecursiveFrameScanning(&$offset, &$nextframetestoffset, $ScanAsCBR) {
                                          $info = &$this->getid3->info;
                                          $firstframetestarray = array('error'=>'', 'warning'=>'', 'avdataend'=>$info['avdataend'], 'avdataoffset'=>$info['avdataoffset']);
                                          $this->decodeMPEGaudioHeader($offset, $firstframetestarray, false);
                                  
                                  
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.mp3.php - About 1 hr to fix

                                    Method GenerateID3v1Tag has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public static function GenerateID3v1Tag($title, $artist, $album, $year, $genreid, $comment, $track='') {
                                            $ID3v1Tag  = 'TAG';
                                            $ID3v1Tag .= str_pad(trim(substr($title,  0, 30)), 30, "\x00", STR_PAD_RIGHT);
                                            $ID3v1Tag .= str_pad(trim(substr($artist, 0, 30)), 30, "\x00", STR_PAD_RIGHT);
                                            $ID3v1Tag .= str_pad(trim(substr($album,  0, 30)), 30, "\x00", STR_PAD_RIGHT);
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.tag.id3v1.php - About 1 hr to fix

                                      Method test has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public static function test( $args = array() ) {
                                      
                                              // First, test Imagick's extension and classes.
                                              if ( ! extension_loaded( 'imagick' ) || ! class_exists( 'Imagick' ) || ! class_exists( 'ImagickPixel' ) )
                                                  return false;

                                        Method wp_kses_split2 has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function wp_kses_split2($string, $allowed_html, $allowed_protocols) {
                                            $string = wp_kses_stripslashes($string);
                                        
                                            if (substr($string, 0, 1) != '<')
                                                return '&gt;';
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-includes/kses.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language