Showing 5,566 of 7,504 total issues
Function Finger
has 195 lines of code (exceeds 25 allowed). Consider refactoring. Open
Galleria.Finger = (function() {
var abs = M.abs;
// test for translate3d support
Function Finger
has 195 lines of code (exceeds 25 allowed). Consider refactoring. Open
Galleria.Finger = (function() {
var abs = M.abs;
// test for translate3d support
Method Analyze
has 195 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function Analyze() {
$info = &$this->getid3->info;
fseek($this->getid3->fp, $info['avdataoffset'], SEEK_SET);
Function suggest
has 194 lines of code (exceeds 25 allowed). Consider refactoring. Open
$.suggest = function(input, options) {
var $input, $results, timeout, prevLength, cache, cacheSize;
$input = $(input).attr("autocomplete", "off");
$results = $(document.createElement("ul"));
Method get_terms
has 194 lines of code (exceeds 25 allowed). Consider refactoring. Open
function &get_terms($taxonomies, $args = '') {
global $wpdb;
$empty_array = array();
$single_taxonomy = false;
Method EBMLidName
has 194 lines of code (exceeds 25 allowed). Consider refactoring. Open
private static function EBMLidName($value) {
static $EBMLidList = array();
if (empty($EBMLidList)) {
$EBMLidList[EBML_ID_ASPECTRATIOTYPE] = 'AspectRatioType';
$EBMLidList[EBML_ID_ATTACHEDFILE] = 'AttachedFile';
Function convert_categories
has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring. Open
function convert_categories() {
global $wpdb;
if ( (!isset($_POST['cats_to_convert']) || !is_array($_POST['cats_to_convert'])) && empty($this->categories_to_convert)) { ?>
<div class="narrow">
- 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 ParseVorbisComments
has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring. Open
public function ParseVorbisComments() {
$info = &$this->getid3->info;
$OriginalOffset = $this->ftell();
$commentdataoffset = 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 remove_iunreserved_percent_encoded
has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring. Open
protected function remove_iunreserved_percent_encoded($match)
{
// As we just have valid percent encoded sequences we can just explode
// and ignore the first member of the returned array (an empty string).
$bytes = explode('%', $match[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 __construct
has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring. Open
public function __construct( $theme_dir, $theme_root, $_child = null ) {
global $wp_theme_directories;
// Initialize caching on first run.
if ( ! isset( self::$persistently_cache ) ) {
- 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 continents-cities.php
has 488 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/* Continent and city translations for timezone selection.
* This file is not included anywhere. It exists solely for use by xgettext.
*/
Method Handle
has 192 lines of code (exceeds 25 allowed). Consider refactoring. Open
public IEnumerable Handle(Func<Guid, MatchAggregate> al, SaveMatchResult command)
{
var agg = al(command.Id);
var match = _dispatcher.Load<MatchAggregate>(command.Id); //TODO: Why am I loading this again?
File post.dev.js
has 485 lines of code (exceeds 250 allowed). Consider refactoring. Open
var tagBox, commentsBox, editPermalink, makeSlugeditClickable, WPSetThumbnailHTML, WPSetThumbnailID, WPRemoveThumbnail;
// return an array with any duplicate, whitespace or values removed
function array_unique_noempty(a) {
var out = [];
Method register_controls
has 191 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function register_controls() {
/* Site Title & Tagline */
$this->add_section( 'title_tagline', array(
Method wp_mce_translation
has 190 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function wp_mce_translation() {
$mce_translation = array(
// Default TinyMCE strings
'New document' => __( 'New document' ),
File module.audio.ogg.php
has 483 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 //
File class-pop3.php
has 483 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* mail_fetch/setup.php
*
* @package SquirrelMail
Function _wp_ajax_menu_quick_search
has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring. Open
function _wp_ajax_menu_quick_search( $request = array() ) {
$args = array();
$type = isset( $request['type'] ) ? $request['type'] : '';
$object_type = isset( $request['object_type'] ) ? $request['object_type'] : '';
$query = isset( $request['q'] ) ? $request['q'] : '';
- 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_plugins
has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring. Open
function get_plugins($plugin_folder = '') {
if ( ! $cache_plugins = wp_cache_get('plugins', 'plugins') )
$cache_plugins = array();
- 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 widget
has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring. Open
public function widget( $args, $instance ) {
$format = $instance['format'];
switch ( $format ) {
case 'image':
- 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"