Showing 5,566 of 7,504 total issues
Method the_content_rss
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) {
Method _wptexturize_pushpop_element
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function _wptexturize_pushpop_element($text, &$stack, $disabled_elements, $opening = '<', $closing = '>') {
Method links_popup_script
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) {
Method add
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function add( $handle, $src, $deps = array(), $ver = false, $args = null ) {
Method wpmu_welcome_notification
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function wpmu_welcome_notification( $blog_id, $user_id, $password, $title, $meta = array() ) {
Method comments_popup_link
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function comments_popup_link( $zero = false, $one = false, $more = false, $css_class = '', $none = false ) {
Method wp_register_style
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function wp_register_style( $handle, $src, $deps = array(), $ver = false, $media = 'all' ) {
Method adjacent_post_link
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function adjacent_post_link($format, $link, $in_same_cat = false, $excluded_categories = '', $previous = true) {
Method update_metadata
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function update_metadata($meta_type, $object_id, $meta_key, $meta_value, $prev_value = '') {
Method Services_JSON_Error
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function Services_JSON_Error($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null)
Method wp_enqueue_script
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function wp_enqueue_script( $handle, $src = false, $deps = array(), $ver = false, $in_footer = false ) {
Method Services_JSON_Error
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function Services_JSON_Error($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null)
Method wp_register_script
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_footer = false ) {
Method AddEmbeddedImage
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function AddEmbeddedImage($path, $cid, $name = '', $encoding = 'base64', $type = 'application/octet-stream') {
Method add_metadata
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function add_metadata($meta_type, $object_id, $meta_key, $meta_value, $unique = false) {
Method wp_enqueue_style
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function wp_enqueue_style( $handle, $src = false, $deps = array(), $ver = false, $media = false ) {
Method start_el
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function start_el(&$output, $page, $depth, $args, $current_page) {
Method delete_metadata
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function delete_metadata($meta_type, $object_id, $meta_key, $meta_value = '', $delete_all = false) {
Function addControls
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
dw_Rotator.addControls = function() {
var els = dw_getElementsByClassName('rotator_controls');
for (var i=0; els[i]; i++) {
var links = els[i].getElementsByTagName('a');
for (var j=0; links[j]; j++) {
- 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 request
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
request: function(form, options) {
form = $(form), options = Object.clone(options || { });
var params = options.parameters, action = form.readAttribute('action') || '';
if (action.blank()) action = window.location.href;
- 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"