Showing 5,566 of 7,504 total issues
Function responsiveNav
has 392 lines of code (exceeds 25 allowed). Consider refactoring. Open
var responsiveNav = function (el, options) {
var computed = !!window.getComputedStyle;
// getComputedStyle polyfill
Function responsiveNav
has 392 lines of code (exceeds 25 allowed). Consider refactoring. Open
var responsiveNav = function (el, options) {
var computed = !!window.getComputedStyle;
// getComputedStyle polyfill
File revisions.js
has 818 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* global _wpRevisionsSettings, isRtl */
window.wp = window.wp || {};
(function($) {
var revisions;
File Enclosure.php
has 816 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* SimplePie
*
* A PHP-Based RSS and Atom Feed Framework.
Function dataService
has 385 lines of code (exceeds 25 allowed). Consider refactoring. Open
var dataService = function ($http, ngUpload, moment) {
return {
SaveTeam: saveTeam,
RemoveTeam: removeTeam,
SaveParticipant: saveParticipant,
wp_xmlrpc_server
has 100 functions (exceeds 20 allowed). Consider refactoring. Open
class wp_xmlrpc_server extends IXR_Server {
/**
* Register all of the XMLRPC methods that XMLRPC server understands.
*
File controls.js
has 804 lines of code (exceeds 250 allowed). Consider refactoring. Open
// script.aculo.us controls.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 Ivan Krstic (http://blogs.law.harvard.edu/ivan)
// (c) 2005-2007 Jon Tirsen (http://www.tirsen.com)
Function display_rows
has a Cognitive Complexity of 95 (exceeds 5 allowed). Consider refactoring. Open
function display_rows() {
global $post;
add_filter( 'the_title','esc_html' );
$alt = '';
- 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
Method GetFileFormatArray
has 379 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function GetFileFormatArray() {
static $format_info = array();
if (empty($format_info)) {
$format_info = array(
Function process_post
has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring. Open
function process_post($post) {
global $wpdb;
$post_ID = (int) $this->get_tag( $post, 'wp:post_id' );
if ( $post_ID && !empty($this->post_ids_processed[$post_ID]) ) // Processed already
- 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 sanitize
has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring. Open
public function sanitize($data, $type, $base = '')
{
$data = trim($data);
if ($data !== '' || $type & SIMPLEPIE_CONSTRUCT_IRI)
{
- 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 dragdrop.js
has 785 lines of code (exceeds 250 allowed). Consider refactoring. Open
// script.aculo.us dragdrop.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 Sammi Williams (http://www.oriontransfer.co.nz, sammi@oriontransfer.co.nz)
//
Function Heartbeat
has 366 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Heartbeat = function() {
var $document = $(document),
settings = {
// Suspend/resume
suspend: false,
File class-wp-upgrader.php
has 776 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* A File upgrader class for WordPress.
*
* This set of classes are designed to be used to upgrade/install a local set of files on the filesystem via the Filesystem Abstraction classes.
Function mw_editPost
has a Cognitive Complexity of 91 (exceeds 5 allowed). Consider refactoring. Open
function mw_editPost($args) {
$this->escape($args);
$post_ID = (int) $args[0];
- 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 rewrite.php
has 774 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* WordPress Rewrite API
*
* @package WordPress
Function wp_insert_post
has a Cognitive Complexity of 90 (exceeds 5 allowed). Consider refactoring. Open
function wp_insert_post($postarr = array(), $wp_error = false) {
global $wpdb, $wp_rewrite, $user_ID;
$defaults = array('post_status' => 'draft', 'post_type' => 'post', 'post_author' => $user_ID,
'ping_status' => get_option('default_ping_status'), 'post_parent' => 0,
- 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
Method decodeMPEGaudioHeader
has 353 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function decodeMPEGaudioHeader($offset, &$info, $recursivesearch=true, $ScanAsCBR=false, $FastMPEGheaderScan=false) {
static $MPEGaudioVersionLookup;
static $MPEGaudioLayerLookup;
static $MPEGaudioBitrateLookup;
static $MPEGaudioFrequencyLookup;
Function _farbtastic
has a Cognitive Complexity of 88 (exceeds 5 allowed). Consider refactoring. Open
jQuery._farbtastic = function (container, callback) {
// Store farbtastic object
var fb = this;
// Insert markup
- 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 decode
has a Cognitive Complexity of 88 (exceeds 5 allowed). Consider refactoring. Open
function decode($str)
{
$str = $this->reduce_string($str);
switch (strtolower($str)) {
- 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"