Showing 5,566 of 7,504 total issues
File admin-ajax.php
has 1184 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* WordPress AJAX Process Execution.
*
* @package WordPress
File customize-widgets.js
has 1163 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* global _wpCustomizeWidgetsSettings */
(function( wp, $ ){
if ( ! wp || ! wp.customize ) { return; }
File taxonomy.php
has 1144 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Taxonomy API
*
* @package WordPress
File class-phpmailer.php
has 1118 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/*~ class.phpmailer.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
| Version: 2.0.4 |
Function dbDelta
has a Cognitive Complexity of 140 (exceeds 5 allowed). Consider refactoring. Open
function dbDelta($queries, $execute = true) {
global $wpdb;
// Separate individual queries into an array
if( !is_array($queries) ) {
- 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 __construct
has a Cognitive Complexity of 140 (exceeds 5 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();
- 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 general-template.php
has 1091 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* General template tags that can go anywhere in a template.
*
* @package WordPress
File getid3.lib.php
has 1070 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/////////////////////////////////////////////////////////////////
/// getID3() by James Heinrich <info@getid3.org> //
// available at http://getid3.sourceforge.net //
// or http://www.getid3.org //
Method parseEBML
has 542 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function parseEBML(&$info) {
// http://www.matroska.org/technical/specs/index.html#EBMLBasics
$this->current_offset = $info['avdataoffset'];
while ($this->getEBMLelement($top_element, $info['avdataend'])) {
Function privExtractByRule
has a Cognitive Complexity of 131 (exceeds 5 allowed). Consider refactoring. Open
function privExtractByRule(&$p_file_list, $p_path, $p_remove_path, $p_remove_all_path, &$p_options)
{
$v_result=1;
// ----- Magic quotes trick
- 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 _insert_post
has a Cognitive Complexity of 131 (exceeds 5 allowed). Consider refactoring. Open
protected function _insert_post( $user, $content_struct ) {
$defaults = array( 'post_status' => 'draft', 'post_type' => 'post', 'post_author' => 0,
'post_password' => '', 'post_excerpt' => '', 'post_content' => '', 'post_title' => '' );
$post_data = wp_parse_args( $content_struct, $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 inline_edit
has a Cognitive Complexity of 129 (exceeds 5 allowed). Consider refactoring. Open
function inline_edit() {
global $mode;
$screen = $this->screen;
- 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 privExtractFile
has a Cognitive Complexity of 128 (exceeds 5 allowed). Consider refactoring. Open
function privExtractFile(&$p_entry, $p_path, $p_remove_path, $p_remove_all_path, &$p_options)
{
$v_result=1;
// ----- Read the file header
- 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 upgrade.php
has 1025 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* WordPress Upgrade API
*
* Most of the functions are pluggable and can be overwritten
Function SimplePie_File
has a Cognitive Complexity of 127 (exceeds 5 allowed). Consider refactoring. Open
function SimplePie_File($url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false)
{
if (class_exists('idna_convert'))
{
$idn =& new idna_convert;
- 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 effects.js
has 1016 lines of code (exceeds 250 allowed). Consider refactoring. Open
// script.aculo.us effects.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)
// Contributors:
// Justin Palmer (http://encytemedia.com/)
File theme.js
has 1015 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* global _wpThemeSettings, confirm */
window.wp = window.wp || {};
( function($) {
File ms-functions.php
has 1013 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Multisite WordPress API
*
* @package WordPress
Function single_row
has a Cognitive Complexity of 125 (exceeds 5 allowed). Consider refactoring. Open
function single_row( $post, $level = 0 ) {
global $mode;
static $alternate;
$global_post = get_post();
- 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 imgAreaSelect
has 482 lines of code (exceeds 25 allowed). Consider refactoring. Open
$.imgAreaSelect = function (img, options) {
var
$img = $(img),