Showing 10,393 of 14,522 total issues
File core-data.js
has 4727 lines of code (exceeds 250 allowed). Consider refactoring. Open
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ 6689:
File edit-post.js
has 4704 lines of code (exceeds 250 allowed). Consider refactoring. Open
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ 5755:
/***/ ((module, exports) => {
File functions.php
has 4156 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Main WordPress API
*
* @package WordPress
Function paste
has 2316 lines of code (exceeds 25 allowed). Consider refactoring. Open
var paste = (function (domGlobals) {
'use strict';
var Cell = function (initial) {
var value = initial;
Function ParseID3v2Frame
has a Cognitive Complexity of 556 (exceeds 5 allowed). Consider refactoring. Open
public function ParseID3v2Frame(&$parsedFrame) {
// shortcuts
$info = &$this->getid3->info;
$id3v2_majorversion = $info['id3v2']['majorversion'];
- 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 class-wp-xmlrpc-server.php
has 3831 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* XML-RPC protocol support for WordPress.
*
* @package WordPress
File post.php
has 3820 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Core Post API
*
* @package WordPress
Function QuicktimeParseAtom
has a Cognitive Complexity of 522 (exceeds 5 allowed). Consider refactoring. Open
public function QuicktimeParseAtom($atomname, $atomsize, $atom_data, $baseoffset, &$atomHierarchy, $ParseAllPossibleAtoms) {
// http://developer.apple.com/techpubs/quicktime/qtdevdocs/APIREF/INDEX/atomalphaindex.htm
// https://code.google.com/p/mp4v2/wiki/iTunesMetadata
$info = &$this->getid3->info;
- 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 get_posts
has a Cognitive Complexity of 521 (exceeds 5 allowed). Consider refactoring. Open
public function get_posts() {
global $wpdb;
$this->parse_query();
- 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 class-wp-customize-manager.php
has 3719 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* WordPress Customize Manager classes
*
* @package WordPress
Function lists
has 2057 lines of code (exceeds 25 allowed). Consider refactoring. Open
var lists = (function (domGlobals) {
'use strict';
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
File ajax-actions.php
has 3576 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Administration API: Core Ajax handlers
*
* @package WordPress
File mediaelement.js
has 3230 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* MediaElement.js
* http://www.mediaelementjs.com/
*
* Wrapper that mimics native HTML5 MediaElement (audio and video)
File formatting.php
has 3077 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Main WordPress Formatting API.
*
* Handles many functions for formatting output.
File edit-widgets.js
has 3055 lines of code (exceeds 250 allowed). Consider refactoring. Open
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ 5755:
/***/ ((module, exports) => {
Method get_enclosures
has 1683 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function get_enclosures()
{
if (!isset($this->data['enclosures']))
{
$this->data['enclosures'] = array();
File class-pclzip.php
has 2961 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
// --------------------------------------------------------------------------------
// PhpConcept Library - Zip Module 2.8.2
// --------------------------------------------------------------------------------
// License GNU/LGPL - Vincent Blavet - August 2009
File PHPMailer.php
has 2926 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* PHPMailer - PHP email creation and transport class.
* PHP Version 5.5.
Function Analyze
has a Cognitive Complexity of 399 (exceeds 5 allowed). Consider refactoring. Open
public function Analyze() {
$info = &$this->getid3->info;
// initialize these values to an empty array, otherwise they default to NULL
// and you can't append array values to a NULL value
- 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 media.php
has 2885 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* WordPress API for media display.
*
* @package WordPress