Showing 5,566 of 7,504 total issues
Method display_page_row
has 134 lines of code (exceeds 25 allowed). Consider refactoring. Open
function display_page_row( $page, $level = 0 ) {
global $post;
static $rowclass;
$post = $page;
Method getOnlyMPEGaudioInfoBruteForce
has 134 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getOnlyMPEGaudioInfoBruteForce() {
$MPEGaudioHeaderDecodeCache = array();
$MPEGaudioHeaderValidCache = array();
$MPEGaudioHeaderLengthCache = array();
$MPEGaudioVersionLookup = self::MPEGaudioVersionArray();
Method request_filesystem_credentials
has 133 lines of code (exceeds 25 allowed). Consider refactoring. Open
function request_filesystem_credentials($form_post, $type = '', $error = false, $context = false) {
$req_cred = apply_filters('request_filesystem_credentials', '', $form_post, $type, $error, $context);
if ( '' !== $req_cred )
return $req_cred;
Method upgrade_230
has 133 lines of code (exceeds 25 allowed). Consider refactoring. Open
function upgrade_230() {
global $wp_current_db_version, $wpdb;
if ( $wp_current_db_version < 5200 ) {
populate_roles_230();
Method get_themes
has 132 lines of code (exceeds 25 allowed). Consider refactoring. Open
function get_themes() {
global $wp_themes, $wp_broken_themes;
if ( isset($wp_themes) )
return $wp_themes;
File wp-signup.php
has 386 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/** Sets up the WordPress Environment. */
require( dirname(__FILE__) . '/wp-load.php' );
File upload.php
has 386 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Media Library administration panel.
*
* @package WordPress
Function install_theme_information
has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring. Open
function install_theme_information() {
//TODO: This function needs a LOT of UI work :)
global $tab, $themes_allowedtags;
$api = themes_api('theme_information', array('slug' => stripslashes( $_REQUEST['theme'] ) ));
- 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 wp_dashboard_plugins_output
has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring. Open
function wp_dashboard_plugins_output() {
$popular = fetch_feed( 'http://wordpress.org/extend/plugins/rss/browse/popular/' );
$new = fetch_feed( 'http://wordpress.org/extend/plugins/rss/browse/new/' );
$updated = fetch_feed( 'http://wordpress.org/extend/plugins/rss/browse/updated/' );
- 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 convert_tags
has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring. Open
function convert_tags() {
global $wpdb;
if ( (!isset($_POST['tags_to_convert']) || !is_array($_POST['tags_to_convert'])) && empty($this->tags_to_convert)) {
echo '<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 auto_check_comment
has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring. Open
public static function auto_check_comment( $commentdata ) {
self::$last_comment_result = null;
$comment = $commentdata;
- 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 prepare_simplepie_object_for_cache
has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring. Open
protected static function prepare_simplepie_object_for_cache($data)
{
$items = $data->get_items();
$items_by_id = 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 prepare_simplepie_object_for_cache
has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring. Open
function prepare_simplepie_object_for_cache($data)
{
$items = $data->get_items();
$items_by_id = 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 start_element
has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring. Open
function start_element($parser, $name, $attrs) {
$tag = array_pop(split(":", $name));
switch($name) {
- 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 wp_list_comments
has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring. Open
function wp_list_comments($args = array(), $comments = null ) {
global $wp_query, $comment_alt, $comment_depth, $comment_thread_alt, $overridden_cpage, $in_comment_loop;
$in_comment_loop = true;
- 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 dbDelta
has 131 lines of code (exceeds 25 allowed). Consider refactoring. Open
function dbDelta($queries, $execute = true) {
global $wpdb;
// Separate individual queries into an array
if( !is_array($queries) ) {
Method screen_meta
has 131 lines of code (exceeds 25 allowed). Consider refactoring. Open
function screen_meta($screen) {
global $wp_meta_boxes, $_wp_contextual_help;
$screen = str_replace('.php', '', $screen);
$screen = str_replace('-new', '', $screen);
Function patchEditor
has 130 lines of code (exceeds 25 allowed). Consider refactoring. Open
function patchEditor(editor) {
function patchEditorEvents(oldEventNames, argsMap) {
tinymce.each(oldEventNames.split(" "), function(oldName) {
editor["on" + oldName] = new Dispatcher(editor, oldName, argsMap);
});
Method populate_options
has 130 lines of code (exceeds 25 allowed). Consider refactoring. Open
function populate_options() {
global $wpdb, $wp_db_version;
$guessurl = wp_guess_url();
File edit-comments.php
has 382 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Edit Comments Administration Panel.
*
* @package WordPress