Showing 5,566 of 7,504 total issues
File customize-base.js
has 371 lines of code (exceeds 250 allowed). Consider refactoring. Open
window.wp = window.wp || {};
(function( exports, $ ){
var api, extend, ctor, inherits,
slice = Array.prototype.slice;
File user.php
has 371 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* WordPress user administration API.
*
* @package WordPress
Method media_upload_library_form
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
function media_upload_library_form($errors) {
global $wpdb, $wp_query, $wp_locale, $type, $tab, $post_mime_types;
media_upload_header();
Method QuicktimeLanguageLookup
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function QuicktimeLanguageLookup($languageid) {
// http://developer.apple.com/library/mac/#documentation/QuickTime/QTFF/QTFFChap4/qtff4.html#//apple_ref/doc/uid/TP40000939-CH206-34353
static $QuicktimeLanguageLookup = array();
if (empty($QuicktimeLanguageLookup)) {
$QuicktimeLanguageLookup[0] = 'English';
Method Handle
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
public IEnumerable Handle(Func<Guid, ParticipantAggregate> al, UpdateParticipant command)
{
var agg = al(command.Id);
if (agg.Name != command.Name)
Method media_upload_gallery_form
has 120 lines of code (exceeds 25 allowed). Consider refactoring. Open
function media_upload_gallery_form($errors) {
global $redir_tab, $type;
$redir_tab = 'gallery';
media_upload_header();
File stepladder_ladies.php
has 366 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
include "header.php";
?>
<body>
File stepladder_ladies.php
has 366 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
include "header.php";
?>
<body>
File stepladder_men.php
has 366 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
include "header.php";
?>
<body>
File stepladder_men.php
has 366 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
include "header.php";
?>
<body>
Function transitionTo
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
$state.transitionTo = function transitionTo(to, toParams, options) {
toParams = toParams || {};
options = extend({
location: true, inherit: false, relative: null, notify: true, reload: false, $retry: false
}, options || {});
Method save
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function save($data)
{
if ($this->mysql === null)
{
return false;
Function add
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
function add($p_filelist)
{
$v_result=1;
// ----- Reset the error handler
- Read upRead up
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 check_column
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
function check_column($table_name, $col_name, $col_type, $is_null = null, $key = null, $default = null, $extra = null) {
global $wpdb, $debug;
$diffs = 0;
$results = $wpdb->get_results("DESC $table_name");
- Read upRead up
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 load
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
public function load()
{
if ($this->mysql === null)
{
return false;
- Read upRead up
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 wp_timezone_choice
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
function wp_timezone_choice( $selected_zone ) {
static $mo_loaded = false;
$continents = array( 'Africa', 'America', 'Antarctica', 'Arctic', 'Asia', 'Atlantic', 'Australia', 'Europe', 'Indian', 'Pacific');
- Read upRead up
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 wp_die
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
function wp_die( $message, $title = '', $args = array() ) {
global $wp_locale;
$defaults = array( 'response' => 500 );
$r = wp_parse_args($args, $defaults);
- Read upRead up
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 Data
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
function Data($msg_data) {
$this->error = null; # so no confusion is caused
if(!$this->connected()) {
$this->error = array(
- Read upRead up
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
File plugin.js
has 364 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* global tinymce, getUserSetting, setUserSetting */
// Set the minimum value for the modals z-index higher than #wpadminbar (100000)
tinymce.ui.FloatPanel.zIndex = 100100;
File class-wp-media-list-table.php
has 364 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Media Library List Table class.
*
* @package WordPress