Showing 5,566 of 7,504 total issues
Function _show
has 182 lines of code (exceeds 25 allowed). Consider refactoring. Open
_show : function() {
// shortcuts
var self = this,
queue = this._queue[ 0 ],
Function _show
has 182 lines of code (exceeds 25 allowed). Consider refactoring. Open
_show : function() {
// shortcuts
var self = this,
queue = this._queue[ 0 ],
Method import
has 182 lines of code (exceeds 25 allowed). Consider refactoring. Open
function import() {
global $wpdb;
$wpvarstoreset = array('gmpath', 'archivespath', 'lastentry');
for ($i=0; $i<count($wpvarstoreset); $i += 1) {
Function insert_with_markers
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring. Open
function insert_with_markers( $filename, $marker, $insertion ) {
if (!file_exists( $filename ) || is_writeable( $filename ) ) {
if (!file_exists( $filename ) ) {
$markerdata = '';
} else {
- 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 WrapText
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring. Open
function WrapText($message, $length, $qp_mode = false) {
$soft_break = ($qp_mode) ? sprintf(" =%s", $this->LE) : $this->LE;
// If utf-8 encoding is used, we will need to make sure we don't
// split multibyte characters when we wrap
$is_utf8 = (strtolower($this->CharSet) == "utf-8");
- 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 privExtractFile
has 181 lines of code (exceeds 25 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
AtomServer
has 51 functions (exceeds 20 allowed). Consider refactoring. Open
class AtomServer {
/**
* ATOM content type.
*
File script-loader.php
has 464 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* WordPress scripts and styles default loader.
*
* Most of the functionality that existed here was moved to
File slider.js
has 463 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* Twenty Fourteen Featured Content Slider
*
* Adapted from FlexSlider v2.2.0, copyright 2012 WooThemes
* @link http://www.woothemes.com/flexslider/
File nav-menu.php
has 462 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Navigation Menu functions
*
* @package WordPress
Function users2wp
has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring. Open
function users2wp($users='')
{
// General Housekeeping
global $wpdb;
$count = 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
Function Analyze
has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring. Open
public function Analyze() {
$info = &$this->getid3->info;
$initialOffset = $info['avdataoffset'];
- 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 _createThumbnails
has 177 lines of code (exceeds 25 allowed). Consider refactoring. Open
_createThumbnails : function( push ) {
this.get( 'total' ).innerHTML = this.getDataLength();
var src,
Function _createThumbnails
has 177 lines of code (exceeds 25 allowed). Consider refactoring. Open
_createThumbnails : function( push ) {
this.get( 'total' ).innerHTML = this.getDataLength();
var src,
Method ASF_HeaderExtensionObjectDataParse
has 177 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function ASF_HeaderExtensionObjectDataParse(&$asf_header_extension_object_data, &$unhandled_sections) {
// http://msdn.microsoft.com/en-us/library/bb643323.aspx
$offset = 0;
$objectOffset = 0;
File class-wp-list-table.php
has 461 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Base class for displaying a list of items in an ajaxified HTML table.
*
* @package WordPress
File colorpicker.dev.js
has 460 lines of code (exceeds 250 allowed). Consider refactoring. Open
// ===================================================================
// Author: Matt Kruse <matt@mattkruse.com>
// WWW: http://www.mattkruse.com/
//
// NOTICE: You may use this code for any purpose, commercial or
Function init
has 176 lines of code (exceeds 25 allowed). Consider refactoring. Open
init : function(ed, url) {
var t = this, tbId = ed.getParam('wordpress_adv_toolbar', 'toolbar2'), last = 0, moreHTML, nextpageHTML;
moreHTML = '<img src="' + url + '/img/trans.gif" class="mceWPmore mceItemNoResize" title="'+ed.getLang('wordpress.wp_more_alt')+'" />';
nextpageHTML = '<img src="' + url + '/img/trans.gif" class="mceWPnextpage mceItemNoResize" title="'+ed.getLang('wordpress.wp_page_alt')+'" />';
Method _wp_comment_row
has 176 lines of code (exceeds 25 allowed). Consider refactoring. Open
function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true, $from_ajax = false ) {
global $comment, $post, $_comment_pending_count;
$comment = get_comment( $comment_id );
$post = get_post($comment->comment_post_ID);
$the_comment_status = wp_get_comment_status($comment->comment_ID);
PclZip
has 50 functions (exceeds 20 allowed). Consider refactoring. Open
class PclZip
{
// ----- Filename of the zip file
var $zipname = '';