Showing 5,566 of 7,504 total issues
Function dataService
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var dataService = function ($http, $location) {
var url = $location.absUrl();
var host = $location.host();
var firstSlash = url.indexOf('/', url.indexOf(host)) + 1;
var currentYear = url.slice(firstSlash, firstSlash + 4);
Function getFixed
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getFixed()/*{{{*/
{
if (!options.aspectRatio) return getRect();
// This function could use some optimization I think...
var aspect = options.aspectRatio,
File users.php
has 315 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Users administration panel.
*
* @package WordPress
Method wp_title
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_title($sep = '»', $display = true, $seplocation = '') {
global $wpdb, $wp_locale, $wp_query;
$cat = get_query_var('cat');
$tag = get_query_var('tag_id');
Method _mime_types
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _mime_types($ext = '') {
$mimes = array(
'ai' => 'application/postscript',
'aif' => 'audio/x-aiff',
'aifc' => 'audio/x-aiff',
Method wp_install_defaults
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_install_defaults($user_id) {
global $wpdb;
// Default category
$cat_name = __('Uncategorized');
Method admin_help
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function admin_help() {
$current_screen = get_current_screen();
// Screen Content
if ( current_user_can( 'manage_options' ) ) {
Method mw_getPost
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mw_getPost($args) {
$this->escape($args);
$post_ID = (int) $args[0];
Method wp_nav_menu
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_nav_menu( $args = array() ) {
static $menu_id_slugs = array();
$defaults = array( 'menu' => '', 'container' => 'div', 'container_class' => '', 'container_id' => '', 'menu_class' => 'menu', 'menu_id' => '',
'echo' => true, 'fallback_cb' => 'wp_page_menu', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
File class-wp.php
has 313 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* WordPress environment setup class.
*
* @package WordPress
WP_Filesystem_SSH2
has 29 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
var $link = false;
var $sftp_link = false;
var $keys = false;
WP_Filesystem_ftpsockets
has 29 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
var $ftp = false;
var $errors = null;
var $options = array();
Function _setupModel
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setupModel: function() {
var self = this,
registeredSidebar = api.Widgets.registeredSidebars.get( this.params.sidebar_id );
this.setting.bind( function( newWidgetIds, oldWidgetIds ) {
Function create
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
create: function(element) {
element = $(element);
var options = Object.extend({
element: element,
tag: 'li', // assumes li children, override with tag: 'tagname'
Method user_row
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function user_row( $user_object, $style = '', $role = '' ) {
global $wp_roles;
$current_user = wp_get_current_user();
Method wp_kses_hair
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_kses_hair($attr, $allowed_protocols) {
$attrarr = array ();
$mode = 0;
$attrname = '';
$uris = array('xmlns', 'profile', 'href', 'src', 'cite', 'classid', 'codebase', 'data', 'usemap', 'longdesc', 'action');
Method wp_timezone_choice
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_timezone_choice( $selected_zone ) {
static $mo_loaded = false;
$continents = array( 'Africa', 'America', 'Antarctica', 'Arctic', 'Asia', 'Atlantic', 'Australia', 'Europe', 'Indian', 'Pacific');
File edit-pages.php
has 311 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Edit Pages Administration Panel.
*
* @package WordPress
File class-wp-filesystem-ftpext.php
has 310 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* WordPress FTP Filesystem.
*
* @package WordPress
Method _wp_translate_postdata
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _wp_translate_postdata( $update = false, $post_data = null ) {
if ( empty($post_data) )
$post_data = &$_POST;