Code Analysis: Co-Authors Plus 3.4.6

Function Rating Maintainability Complexity Lines of code
coauthors_wp_list_authors()
D
30 30 108
CoAuthors_Plus::posts_where_filter()
C
35 25 73
coauthors__echo()
B
41 23 47
CoAuthors_WP_List_Table::prepare_items()
B
33 18 102
CoAuthors_Guest_Authors::get_guest_author_by()
B
37 20 70
CoAuthors_Plus::get_coauthor_by()
B
44 20 43
CoAuthors_Guest_Authors::manage_guest_author_save_meta_fields()
B
41 17 51
CoAuthors_Guest_Authors::__construct()
B
35 15 81
wp_notify_postauthor()
A
36 14 75
CoAuthors_Plus::coauthors_meta_box()
A
40 14 60
CoAuthorsPlus_Command::create_guest_authors_from_csv()
A
40 14 57
CoAuthors_Plus::filter_user_has_cap()
A
46 15 35
CoAuthorsPlus_Command::swap_coauthors()
A
37 12 74
CoAuthors_Plus::search_authors()
A
41 13 52
get_coauthors()
A
46 14 35
CoAuthorsPlus_Command::update_author_terms()
A
40 12 55
CoAuthors_Guest_Authors::handle_delete_guest_author_action()
A
41 12 51
CoAuthorsPlus_Command::assign_coauthors()
A
39 11 64
CoAuthors_Guest_Authors::view_guest_authors_list()
A
36 10 78
CoAuthors_Plus::coauthors_set_post_author_field()
A
49 13 28
CoAuthors_Guest_Authors::create()
A
45 12 38
CoAuthorsPlus_Command::reassign_terms()
A
39 10 63
CoAuthors_Guest_Authors::manage_guest_author_filter_post_data()
A
47 12 32
CoAuthors_Plus::add_coauthors()
A
43 11 46
CoAuthorsPlus_Command::create_terms_for_posts()
A
42 10 49
CoAuthors_Plus::filter_wp_get_object_terms()
A
47 10 34
get_the_coauthor_meta()
A
48 10 32
is_coauthor_for_post()
A
51 10 27
CoAuthors_Plus::filter_pre_get_avatar_data_url()
A
56 10 16
CoAuthors_Plus::delete_user_action()
A
50 9 27
CoAuthors_Plus::current_user_can_set_authors()
A
51 9 27
CoAuthors_Plus::posts_join_filter()
A
50 9 26
CoAuthors_Plus::coauthors_update_post()
A
53 9 23
CoAuthors_Guest_Authors::get_guest_author_fields()
A
39 5 78
CoAuthors_Guest_Authors::create_guest_author_from_user_id()
A
51 8 24
CoAuthorsPlus_Command::assign_user_to_coauthor()
A
45 7 39
CoAuthors_Guest_Authors::personal_data_exporter()
A
43 6 48
coauthors_plus_upgrade_20()
S
51 7 27
CoAuthors_Plus::ajax_suggest()
S
50 7 26
CoAuthors_Plus::filter_jetpack_open_graph_tags()
S
53 7 22
CoAuthors_Guest_Authors::filter_author_feed_link()
S
53 7 21
CoAuthors_Guest_Authors::delete()
S
48 6 34
CoAuthors_Plus::get_guest_author_post_count()
S
56 7 18
CoAuthorsPlus_Command::create_guest_authors_from_wxr()
S
48 6 32
CoAuthors_Plus::fix_author_page()
S
52 6 24
CoAuthors_Guest_Authors::action_parse_request()
S
53 6 23
CoAuthors_Guest_Authors::get_all_linked_accounts()
S
52 6 22
CoAuthors_Guest_Authors::handle_create_guest_author_action()
S
53 6 21
CoAuthorsPlus_Command::rename_coauthor()
S
47 5 35
CoAuthors_Guest_Authors::filter_author_link()
S
56 6 18
CoAuthorsPlus_Command::create_guest_author()
S
49 5 33
CoAuthors_Plus::posts_groupby_filter()
S
56 6 17
coauthors_get_avatar()
S
57 6 16
CoAuthors_Guest_Authors::filter_update_post_metadata()
S
59 6 13
CoAuthors_Guest_Authors::handle_ajax_search_coauthors_to_assign()
S
51 5 27
CoAuthors_Plus::_filter_manage_posts_custom_column()
S
51 5 26
CoAuthors_Guest_Authors::action_admin_enqueue_scripts()
S
59 6 11
CoAuthors_Plus::action_init_late()
S
51 5 25
CoAuthors_Plus::update_author_term()
S
52 5 24
CoAuthors_Plus::filter_views()
S
52 5 22
CoAuthors_Guest_Authors::filter_user_row_actions()
S
53 5 21
CoAuthors_Guest_Authors::delete_guest_author_cache()
S
54 5 20
CoAuthors_Guest_Authors::metabox_manage_guest_author_slug()
S
47 4 34
CoAuthorsPlus_Command::list_posts_without_terms()
S
49 4 32
CoAuthors_Guest_Authors::action_admin_notices()
S
57 5 17
CoAuthors_Plus::_filter_manage_posts_columns()
S
58 5 16
CoAuthors_Guest_Authors::filter_get_avatar()
S
60 5 14
CoAuthors_WP_List_Table::column_display_name()
S
49 4 28
CoAuthors_Guest_Authors::metabox_manage_guest_author_name()
S
50 4 26
CoAuthors_Guest_Authors::metabox_manage_guest_author_contact_info()
S
50 4 26
CoAuthors_Template_Filters::filter_the_author_rss()
S
62 5 11
CoAuthorsPlus_Command::migrate_author_terms()
S
51 4 25
coauthors_links()
S
54 4 23
coauthors_posts_links()
S
54 4 23
CoAuthors_Plus::js_vars()
S
55 4 23
CoAuthors_Plus::get_coauthor_terms_for_post()
S
55 4 22
coauthors_links_single()
S
56 4 19
CoAuthors_Plus::enqueue_scripts()
S
54 4 19
CoAuthors_Guest_Authors::get_guest_author_thumbnail()
S
57 4 17
CoAuthors_WP_List_Table::extra_tablenav()
S
57 4 17
Test_CoAuthors_Guest_Authors::test_handle_delete_guest_author_action_with_reassign_is_reassign_another()
S
49 3 31
Test_CoAuthors_Guest_Authors::test_handle_delete_guest_author_action_with_list_users_capability()
S
50 3 30
cap_filter_comment_moderation_email_recipients()
S
59 4 15
CoAuthors_Guest_Authors::get_cache_key()
S
58 4 15
CoAuthors_Plus::get_author_term()
S
59 4 15
CoAuthors_Plus::filter_ef_calendar_item_information_fields()
S
58 4 15
CoAuthors_Plus::filter_count_user_posts()
S
59 4 15
CoAuthors_Plus::_action_quick_edit_custom_box()
S
59 4 14
CoAuthors_Plus::get_to_be_filtered_caps()
S
59 4 14
CoAuthors_Plus::action_init()
S
59 4 14
CoAuthorsIterator::iterate()
S
60 4 14
Test_CoAuthors_Guest_Authors::test_handle_delete_guest_author_action_with_guest_author_existence()
S
51 3 28
CoAuthorsIterator::__construct()
S
60 4 13
CoAuthors_WP_List_Table::column_default()
S
61 4 12
CoAuthors_WP_List_Table::column_linked_account()
S
61 4 12
CoAuthors_Plus::filter_infinite_scroll_js_settings()
S
62 4 11
CoAuthors_Guest_Authors::filter_post_updated_messages()
S
50 3 26
Test_CoAuthors_Guest_Authors::test_handle_delete_guest_author_action_with_nonce()
S
52 3 25
Test_Manage_CoAuthors::setUp()
S
45 1 53
CoAuthorsPlus_Command::create_guest_authors()
S
53 3 23
CoAuthors_Plus::update_author_term_post_count()
S
51 3 22
CoAuthorsPlus_Command::remove_terms_from_revisions()
S
56 3 16
CoAuthors_Plus::is_post_type_enabled()
S
65 4 9
CoAuthors_Plus::_filter_manage_users_custom_column()
S
58 3 15
coauthors_posts_links_single()
S
50 2 29
CoAuthorsPlus_Command::stop_the_insanity()
S
60 3 14
CoAuthors_Plus::action_edited_term_taxonomy_flush_cache()
S
59 3 13
CoAuthors_Guest_Authors::metabox_manage_guest_author_bio()
S
53 2 26
CoAuthors_Plus::filter_ef_story_budget_term_column_value()
S
62 3 11
CoAuthors_Plus::_filter_manage_users_columns()
S
62 3 11
Test_CoAuthors_Guest_Authors::test_handle_delete_guest_author_action_with_reassign_is_leave_assigned()
S
53 2 22
Test_CoAuthors_Guest_Authors::test_handle_delete_guest_author_action_with_reassign_is_remove_byline()
S
53 2 22
Test_CoAuthors_Guest_Authors::test_get_guest_author_fields()
S
49 1 36
Test_CoAuthors_Guest_Authors::test_handle_delete_guest_author_action_with_reassign_not_as_expected()
S
54 2 21
Test_Author_Queries::tests__author_name_arg_plus_tax_query__is_coauthor()
S
50 1 33
Test_Author_Queried_Object::test__author_queried_object_fix()
S
49 1 32
Test_Manage_CoAuthors::test_coauthors_set_post_author_field_when_coauthor_is_set()
S
50 1 31
Test_Author_Queries::test__author_name_arg__user_is_coauthor()
S
51 1 31
Test_Author_Queries::test__author_arg__user_is_coauthor__author_arg()
S
51 1 31
CoAuthors_Plus::add_coauthors_box()
S
70 3 5
Test_CoAuthors_Plus::test_current_user_can_set_authors_using_current_screen()
S
52 1 30
Test_CoAuthors_Plus::test_search_authors_when_search_keyword_provided()
S
52 1 30
CoAuthors_Plus::__construct()
S
49 1 30
CoAuthors_Guest_Authors::filter_wp_insert_post_empty_content()
S
66 3 9
CoAuthors_Plus::remove_quick_edit_authors_box()
S
70 3 6
Test_Template_Tags::test_coauthors_posts_links()
S
49 1 30
Test_CoAuthors_Guest_Authors::setUp()
S
52 1 30
Test_Template_Tags::test_coauthors_lastnames()
S
51 1 28
Test_CoAuthors_Plus::test_get_coauthor_by_when_guest_authors_not_enabled()
S
51 1 28
Test_Template_Tags::test_coauthors_firstnames()
S
51 1 28
Test_Template_Tags::test_coauthors_emails()
S
51 1 28
Test_Template_Tags::test_coauthors_nicknames()
S
51 1 28
Test_Template_Tags::test_coauthors_links()
S
51 1 27
CoAuthors_Guest_Authors::action_add_meta_boxes()
S
59 2 12
Test_Manage_CoAuthors::test_coauthors_set_post_author_field_when_post_type_is_attachment()
S
53 1 27
cap_update_amp_json_metadata()
S
62 2 12
Test_Author_Queries::test__author_name_arg_plus_tax_query__user_is_post_author()
S
52 1 26
CoAuthors_Plus::_update_users_posts_count()
S
61 2 11
CoAuthors_WP_List_Table::__construct()
S
63 2 11
Test_CoAuthors_Plus::test_search_authors_no_args()
S
53 1 26
Test_Template_Tags::setUp()
S
53 1 26
Test_Author_Queries::test__author_arg__user_is_post_author_query_as_post_author()
S
53 1 25
Test_Template_Tags::test_coauthors_links_single_when_guest_author()
S
53 1 24
Test_Author_Queries::test__author_arg__user_is_post_author()
S
54 1 24
Test_Author_Queries::test__author_name_arg__user_is_post_author()
S
54 1 24
Test_CoAuthors_Plus::setUp()
S
54 1 24
Test_Manage_CoAuthors::test_coauthors_update_post_when_current_user_can_set_authors()
S
53 1 24
Test_CoAuthors_Guest_Authors::test_handle_delete_guest_author_action_when_post_args_not_as_expected()
S
54 1 23
Test_Manage_CoAuthors::test_post_publish_count_for_coauthor()
S
54 1 23
Test_CoAuthors_Plus::test_update_author_term_when_author_term_exists()
S
54 1 23
Test_CoAuthors_Plus::test_update_author_term_when_author_term_not_exist()
S
54 1 23
Test_Manage_CoAuthors::test_coauthors_set_post_author_field_when_guest_author_is_linked_with_wp_user()
S
54 1 22
Test_Manage_CoAuthors::test_coauthors_update_post_when_post_type_is_attachment()
S
56 1 22
Test_CoAuthors_Plus::test_current_user_can_set_authors_using_global_post()
S
56 1 21
Test_CoAuthors_Plus::test_search_authors_when_ignored_authors_provided()
S
55 1 21
Test_Template_Tags::test_coauthors_wp_list_authors_for_default_args()
S
54 1 21
Test_CoAuthors_Guest_Authors::test_delete_with_reassign_when_linked_account_and_author_are_different_user()
S
54 1 20
Test_CoAuthors_Plus::test_current_user_can_set_authors_using_coauthors_plus_edit_authors_filter()
S
56 1 19
Test_Template_Tags::test_coauthors_links_single_author_url_is_set()
S
56 1 19
Test_Template_Tags::test_coauthors_wp_list_authors_for_show_fullname()
S
56 1 19
Test_CoAuthors_Guest_Authors::test_get_guest_author_thumbnail()
S
56 1 18
Test_CoAuthors_Guest_Authors::test_get_all_linked_accounts()
S
57 1 18
Test_CoAuthors_Guest_Authors::test_delete_with_reassign_without_linked_account_and_author_is_other_user()
S
56 1 18
Test_Manage_CoAuthors::test_coauthors_set_post_author_field_when_post_author_is_not_set()
S
56 1 18
Test_Template_Tags::test_coauthors_wp_list_authors_for_guest_authors_only()
S
57 1 18
Test_Template_Tags::test_coauthors_wp_list_authors_for_hide_empty()
S
59 1 18
Test_CoAuthors_Plus::test_current_user_can_set_authors_using_normal_post()
S
57 1 18
Test_CoAuthors_Guest_Authors::test_get_guest_author_by_with_different_keys()
S
57 1 17
Test_Template_Tags::test_coauthors_get_avatar_when_guest_author()
S
57 1 17
Test_CoAuthors_Plus::test_is_post_type_enabled()
S
58 1 17
Test_CoAuthors_Guest_Authors::test_delete_with_reassign_without_linked_account_and_author_is_same_user()
S
58 1 16
CoAuthors_Plus::load_edit()
S
70 2 6
CoAuthors_Guest_Authors::metabox_manage_guest_author_save()
S
63 2 10
CoAuthors_Plus::clear_cache_on_terms_set()
S
70 2 6
CoAuthors_Plus::filter_author_archive_title()
S
66 2 8
CoAuthors_WP_List_Table::single_row()
S
65 2 8
CoAuthors_WP_List_Table::filter_query_for_search()
S
66 2 8
Test_Template_Tags::test_is_coauthor_for_post_when_user_is_coauthor()
S
59 1 15
Test_Template_Tags::test_coauthors_ids()
S
58 1 15
CoAuthorsIterator::get_position()
S
72 2 6
Test_CoAuthors_Plus::test_search_authors_when_search_keyword_and_ignored_authors_provided()
S
59 1 15
CoAuthors_Plus::remove_authors_box()
S
73 2 5
the_coauthor_meta()
S
70 2 6
CoAuthors_Guest_Authors::get_post_meta_key()
S
71 2 6
Test_Template_Tags::test_coauthors()
S
58 1 15
cap_set_amp_author_meta_template()
S
70 2 6
CoAuthors_Template_Filters::action_add_rss_guest_authors()
S
68 2 7
CoAuthors_Plus::has_author_terms()
S
73 2 4
coauthors_plus_upgrade()
S
75 2 5
Test_CoAuthors_Plus::test_get_author_term_when_author_has_not_linked_account()
S
60 1 14
coauthors_lastnames()
S
61 1 14
coauthors()
S
61 1 14
Test_Template_Tags::test_get_coauthors_when_global_post_exists()
S
61 1 14
Test_Template_Tags::test_coauthors_wp_list_authors_for_feed_type()
S
60 1 14
coauthors_ids()
S
61 1 14
coauthors_emails()
S
61 1 14
coauthors_firstnames()
S
61 1 14
Test_CoAuthors_Plus::test_get_coauthor_by_when_guest_author()
S
60 1 14
coauthors_nicknames()
S
61 1 14
Test_Template_Tags::test_coauthors_order()
S
60 1 14
Test_Template_Tags::test_coauthors_links_single_when_url_not_exist()
S
60 1 14
CoAuthors_Plus::admin_init()
S
59 1 13
Test_CoAuthors_Guest_Authors::test_delete_without_reassign()
S
61 1 12
CoAuthors_WP_List_Table::get_columns()
S
61 1 12
Test_Template_Tags::test_get_coauthors_when_post_exists()
S
63 1 12
Test_CoAuthors_Guest_Authors::test_delete_with_reassign_when_linked_account_and_author_are_same_user()
S
60 1 12
Test_Manage_CoAuthors::test_add_coauthor_to_post()
S
61 1 12
Test_Template_Tags::test_coauthors_get_avatar_when_user_email_not_set()
S
62 1 12
Test_Template_Tags::test_get_the_coauthor_meta()
S
63 1 11
Test_Template_Tags::test_coauthors_wp_list_authors_for_optioncount()
S
64 1 11
Test_Template_Tags::test_coauthors_wp_list_authors_for_feed()
S
63 1 11
Test_Manage_CoAuthors::test_coauthors_set_post_author_field_when_coauthor_is_not_set()
S
62 1 11
Test_CoAuthors_Guest_Authors::test_get_guest_author_by_using_cache()
S
62 1 11
Test_Template_Tags::test_coauthors_wp_list_authors_for_feed_image()
S
63 1 11
CoAuthorsIterator::get_all()
S
83 1 3
Test_Template_Tags::test_get_coauthors_when_post_not_exists()
S
81 1 3
Test_Template_Tags::test_is_coauthor_for_post_when_user_or_post_not_exists()
S
65 1 10
Test_CoAuthors_Plus::test_get_author_term_when_coauthor_is_not_object()
S
71 1 6
CoAuthors_Guest_Authors::action_admin_menu()
S
77 1 3
Test_CoAuthors_Guest_Authors::catch_redirect_destination()
S
79 1 3
CoAuthors_Template_Filters::__construct()
S
70 1 6
Test_CoAuthors_Plus::test_get_author_term_when_author_has_linked_account()
S
65 1 9
Test_Template_Tags::test_coauthors_wp_list_authors_for_html()
S
63 1 10
Test_Template_Tags::test_is_coauthor_for_post_when_user_not_numeric_or_user_login_not_set()
S
80 1 3
Test_Template_Tags::test_is_coauthor_for_post_when_user_numeric_or_user_login_set_but_not_coauthor()
S
75 1 4
Test_CoAuthors_Guest_Authors::test_delete_when_guest_author_not_exist()
S
68 1 7
CoAuthors_Guest_Authors::change_title_icon()
S
100 1 9
CoAuthorsIterator::is_last()
S
80 1 3
CoAuthors_Guest_Authors::filter_personal_data_exporter()
S
68 1 7
CoAuthors_Plus::clear_cache()
S
79 1 3
Test_Template_Tags::test_coauthors_get_avatar_size()
S
73 1 4
Test_CoAuthors_Guest_Authors::test_get_guest_author_by_with_empty_key_or_value()
S
64 1 10
Test_CoAuthors_Guest_Authors::test_create_guest_author_from_user_id()
S
63 1 10
_manually_load_plugin()
S
80 1 3
Test_Template_Tags::test_coauthors_get_avatar_alt()
S
73 1 4
Test_Manage_CoAuthors::test_add_coauthor_updates_post_author()
S
66 1 8
Test_CoAuthors_Guest_Authors::test_delete_with_reassign_author_not_exist()
S
64 1 9
cap_add_amp_actions()
S
75 1 4
CoAuthorsIterator::count()
S
83 1 3
CoAuthors_Plus::is_valid_page()
S
75 1 4
Test_CoAuthors_Guest_Authors::test_get_all_linked_accounts_with_cache()
S
64 1 10
CoAuthorsPlus_TestCase::setUp()
S
74 1 5
CoAuthors_WP_List_Table::display()
S
73 1 5
CoAuthors_Template_Filters::filter_the_author_posts_link()
S
79 1 3
CoAuthors_WP_List_Table::column_posts()
S
70 1 5
Test_Template_Tags::test_coauthors_posts_links_single()
S
63 1 10
Test_CoAuthors_Plus::test_get_author_term_using_caching()
S
64 1 9
CoAuthors_Plus::is_guest_authors_enabled()
S
79 1 3
CoAuthors_Plus::filter_terms_clauses()
S
75 1 4
cap_get_coauthor_terms_for_post()
S
77 1 4
Test_Template_Tags::test_coauthors_get_avatar_default()
S
74 1 4
Test_Template_Tags::test_coauthors_wp_list_authors_for_style()
S
65 1 10
CoAuthors_Template_Filters::filter_the_author()
S
79 1 3
Test_CoAuthors_Plus::test_update_author_term_when_coauthor_is_not_object()
S
71 1 6
CoAuthors_Guest_Authors::filter_wp_dropdown_users_to_disable()
S
79 1 3
CoAuthors_WP_List_Table::no_items()
S
80 1 3
Test_CoAuthors_Plus::test_is_guest_authors_enabled()
S
67 1 8
Test_Manage_CoAuthors::test_coauthors_update_post_when_post_has_not_author_terms()
S
67 1 8
Test_Template_Tags::test_get_coauthors_when_terms_for_post_not_exists()
S
76 1 4
Test_Manage_CoAuthors::tearDown()
S
81 1 3
CoAuthorsIterator::is_first()
S
81 1 3