Showing 5,566 of 7,504 total issues
File screen.php
has 541 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* WordPress Administration Screen API.
*
* @package WordPress
Function inline_edit_row
has a Cognitive Complexity of 57 (exceeds 5 allowed). Consider refactoring. Open
function inline_edit_row( $type ) {
global $current_user, $mode;
$is_page = 'page' == $type;
if ( $is_page ) {
- 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_list_authors
has a Cognitive Complexity of 57 (exceeds 5 allowed). Consider refactoring. Open
function wp_list_authors($args = '') {
global $wpdb;
$defaults = array(
'optioncount' => false, 'exclude_admin' => true,
- 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 537 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* plugin.js
*
* Copyright, Moxiecode Systems AB
* Released under LGPL License.
Method privParseOptions
has 222 lines of code (exceeds 25 allowed). Consider refactoring. Open
function privParseOptions(&$p_options_list, $p_size, &$v_result_list, $v_requested_options=false)
{
$v_result=1;
// ----- Read the options
Method inline_edit_row
has 222 lines of code (exceeds 25 allowed). Consider refactoring. Open
function inline_edit_row( $type ) {
global $current_user, $mode;
$is_page = 'page' == $type;
if ( $is_page ) {
File textpattern.php
has 534 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* TextPattern Importer
*
* @package WordPress
File dotclear.php
has 532 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* DotClear Importer
*
* @package WordPress
File class.akismet.php
has 532 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
class Akismet {
const API_HOST = 'rest.akismet.com';
const API_PORT = 80;
Function Util
has 219 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Util = (function () {
function Util() {
}
Util._getStorageObject = function () {
try {
Function privCalculateStoredFilename
has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring. Open
function privCalculateStoredFilename(&$p_filedescr, &$p_options)
{
$v_result=1;
// ----- Working variables
- 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 upgrade_160
has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring. Open
function upgrade_160() {
global $wpdb, $wp_current_db_version;
populate_roles_160();
- 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 Analyze
has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring. Open
public function Analyze() {
$info = &$this->getid3->info;
$info['fileformat'] = 'quicktime';
$info['quicktime']['hinting'] = 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 _send
has 216 lines of code (exceeds 25 allowed). Consider refactoring. Open
_send: function (options, data){
var _this = this, xhr, uid = _this.uid, onloadFuncName = _this.uid + "Load", url = options.url;
api.log('XHR._send:', data);
Method mw_newPost
has 216 lines of code (exceeds 25 allowed). Consider refactoring. Open
function mw_newPost($args) {
$this->escape($args);
$blog_ID = (int) $args[0];
$username = $args[1];
File class-wp-customize-manager.php
has 526 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Customize Manager.
*
* Bootstraps the Customize experience on the server-side.
Method Analyze
has 215 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function Analyze() {
$info = &$this->getid3->info;
if (!getid3_lib::intValueSupported($info['filesize'])) {
$info['warning'][] = 'Unable to check for APEtags because file is larger than '.round(PHP_INT_MAX / 1073741824).'GB';
Function __construct
has a Cognitive Complexity of 55 (exceeds 5 allowed). Consider refactoring. Open
public function __construct() {
// Check for PHP version
$required_php_version = '5.0.5';
if (version_compare(PHP_VERSION, $required_php_version, '<')) {
- 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 unittest.js
has 524 lines of code (exceeds 250 allowed). Consider refactoring. Open
// script.aculo.us unittest.js v1.8.0, Tue Nov 06 15:01:40 +0300 2007
// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// (c) 2005-2007 Jon Tirsen (http://www.tirsen.com)
// (c) 2005-2007 Michael Schuerig (http://www.schuerig.de/michael/)
Method __construct
has 214 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __construct($url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false)
{
if (class_exists('idna_convert'))
{
$idn = new idna_convert();