Code Analysis: ActivityPub 1.3.0

Function Rating Maintainability Complexity Lines of code
Activitypub\Signature::verify_http_signature()
B
37 22 69
Activitypub\Transformer\Post::get_object_type()
B
42 16 55
Activitypub\Handler\Delete::handle_delete()
B
47 17 35
Activitypub\Transformer\Post::get_media_ids_from_blocks()
A
46 16 37
Activitypub\Signature::get_signed_data()
A
44 15 41
Activitypub\Handler\Update::handle_update()
A
52 14 23
Activitypub\Collection\Interactions::add_comment()
A
41 11 55
is_user_type_disabled()
A
46 11 42
Activitypub\Activity\Activity::set_object()
A
51 12 24
Activitypub\Rest\Server::authorize_activitypub_requests()
A
47 11 37
Activitypub\Webfinger::resolve()
A
43 10 48
Activitypub\Activitypub::render_json_template()
A
51 11 26
get_remote_metadata_by_actor()
A
46 10 38
Activitypub\Rest\Outbox::user_outbox_get()
A
41 9 53
extract_recipients_from_activity()
A
50 10 32
Activitypub\Shortcodes::excerpt()
A
45 9 43
Activitypub\Signature::parse_signature_header()
A
51 10 26
Activitypub\Admin::register_settings()
A
33 3 131
is_activitypub_request()
A
52 10 24
Activitypub\Activitypub::pre_get_avatar_data()
A
48 9 33
Activitypub\Transformer\Post::wp_attachment_to_activity_attachment()
A
45 8 43
Activitypub\Hashtag::the_content()
A
46 8 41
Activitypub\Mention::the_content()
A
46 8 41
Activitypub\Rest\Collection::featured_get()
A
46 8 37
Activitypub\Scheduler::cleanup_followers()
A
53 9 21
Activitypub\Scheduler::schedule_post_activity()
A
49 8 33
Activitypub\Health_Check::is_author_url_accessible()
A
42 6 63
Activitypub\Table\Followers::prepare_items()
A
44 7 44
Activitypub\Model\Follower::extract_name_from_uri()
A
50 8 29
Activitypub\Rest\Followers::get()
A
44 7 41
Activitypub\Table\Followers::process_action()
A
52 8 23
Activitypub\Collection\Followers::add_follower()
A
53 8 21
Activitypub\Collection\Users::get_by_username()
A
45 6 46
Activitypub\Transformer\Post::get_classic_editor_images()
A
49 7 31
is_user_disabled()
A
50 7 31
Activitypub\Activity\Base_Object::to_array()
S
50 7 28
Activitypub\Webfinger::get_identifier_and_host()
S
50 7 27
url_to_authorid()
S
51 7 25
Activitypub\Collection\Users::get_by_id()
S
53 7 24
Activitypub\Integration\Buddypress::add_user_metadata()
S
46 6 39
Activitypub\Signature::check_legacy_key_pair_for()
S
53 7 23
Activitypub\Rest\Inbox::shared_inbox_post_parameters()
S
45 5 52
Activitypub\Handler\Create::handle_create()
S
54 7 22
Activitypub\Health_Check::is_webfinger_endpoint_accessible()
S
45 5 48
Activitypub\Signature::generate_key_pair_for()
S
49 6 32
Activitypub\Scheduler::update_followers()
S
57 7 16
Activitypub\Rest\Collection::tags_get()
S
47 5 36
Activitypub\Migration::maybe_migrate()
S
55 6 21
Activitypub\Webfinger::get_remote_follow_endpoint()
S
54 6 20
Activitypub\Admin::save_user_description()
S
57 6 16
Activitypub\Activitypub::add_rewrite_rules()
S
50 5 30
Activitypub\Mention::replace_with_links()
S
58 6 14
Activitypub\Signature::generate_signature()
S
50 5 28
Activitypub\Transformer\Post::get_tags()
S
52 5 26
url_to_commentid()
S
53 5 24
plugin_init()
S
53 5 23
get_active_users()
S
54 5 22
Activitypub\Admin::settings_page()
S
54 5 22
Activitypub\Model\Blog_User::get_icon()
S
55 5 20
Activitypub\Rest\Inbox::shared_inbox_post()
S
47 4 34
Activitypub\Activitypub::register_post_types()
S
42 2 64
Activitypub\Collection\Followers::get_inboxes()
S
45 3 47
Activitypub\Model\Follower::save()
S
48 4 32
Activitypub\Shortcodes::get_item()
S
58 5 16
Activitypub\Transformer\Post::get_block_attachments()
S
58 5 15
Activitypub\Activity\Base_Object::__call()
S
57 5 15
Activitypub\Mention::get_inbox_by_mentioned_actor()
S
60 5 13
Activitypub\Handler\Delete::maybe_delete_interaction()
S
60 5 13
Activitypub\Collection\Interactions::update_comment()
S
50 4 27
Activitypub\Shortcodes::image()
S
52 4 26
Activitypub\Activity_Dispatcher::send_announce()
S
54 4 21
get_total_users()
S
57 4 19
Activitypub\Migration::migrate_from_0_16()
S
55 4 19
Activitypub\Collection\Interactions::get_interactions_by_actor()
S
55 4 19
Activitypub\Shortcodes::hashtags()
S
56 4 19
Activitypub\Shortcodes::hashcats()
S
56 4 19
Activitypub\Health_Check::get_author_posts_url()
S
55 4 19
Activitypub\Rest\Inbox::user_inbox_post_parameters()
S
50 3 34
Activitypub\Health_Check::test_system_cron()
S
49 3 33
Activitypub\Blocks::render_follower_block()
S
49 3 32
Activitypub\Rest\Webfinger::get_profile()
S
50 3 31
Activitypub\Collection\Interactions::allowed_comment_html()
S
62 4 12
Activitypub\Transformer\Post::get_post_content_template()
S
62 4 12
Activitypub\Migration::migrate_from_0_17()
S
62 4 11
Activitypub\Shortcodes::content()
S
52 3 25
Activitypub\Rest\Following::get()
S
52 3 22
Activitypub\Collection\Followers::get_faulty_followers()
S
49 2 37
Activitypub\Activitypub::theme_compat()
S
56 3 21
Activitypub\Collection\Users::get_by_resource()
S
53 3 21
Activitypub\Shortcodes::permalink()
S
56 3 20
Activitypub\Shortcodes::shortlink()
S
56 3 20
Activitypub\Rest\Users::get()
S
55 3 19
Activitypub\Rest\Users::remote_follow_get()
S
57 3 18
Activitypub\Signature::get_remote_key()
S
56 3 18
Activitypub\Model\User::get_attachment()
S
49 2 33
Activitypub\Activity_Dispatcher::send_activity()
S
57 3 17
Activitypub\Collection\Followers::add_error()
S
58 3 17
Activitypub\Signature::format_server_request()
S
57 3 17
Activitypub\Transformer\Post::to_object()
S
49 2 31
Activitypub\Activitypub::init()
S
56 3 16
Activitypub\Model\Follower::is_valid()
S
60 3 15
Activitypub\Webfinger::get_user_resource()
S
63 4 10
Activitypub\Mention::get_inboxes()
S
64 4 10
object_id_to_comment()
S
60 3 15
Activitypub\Rest\Following::default_following()
S
63 4 10
Activitypub\Shortcodes::date()
S
60 3 14
Activitypub\Shortcodes::datetime()
S
59 3 14
Activitypub\Shortcodes::time()
S
60 3 14
Activitypub\Http::post()
S
49 2 29
Activitypub\Health_Check::test_author_url()
S
51 2 28
Activitypub\Health_Check::test_webfinger()
S
51 2 28
Activitypub\Activity\Base_Object::add()
S
61 3 12
Activitypub\Migration::is_locked()
S
62 3 12
Activitypub\Rest\Inbox::get_recipients()
S
62 3 12
Activitypub\Integration\Webfinger::add_user_discovery()
S
61 3 12
Activitypub\Shortcodes::author()
S
61 3 12
Activitypub\Shortcodes::authorurl()
S
61 3 12
Activitypub\Activity_Dispatcher::send_activity_or_announce()
S
62 3 12
Activitypub\Activity\Base_Object::init_from_array()
S
61 3 11
Activitypub\Handler\Follow::send_follow_response()
S
52 2 26
Activitypub\Signature::get_signature_algorithm()
S
64 3 11
Activitypub\Http::get()
S
50 2 26
Activitypub\Rest\Inbox::user_inbox_get()
S
52 2 23
Activitypub\Rest\Collection::register_routes()
S
50 1 37
Activitypub\Collection\Followers::get_outdated_followers()
S
54 2 21
Activitypub\Rest\Nodeinfo::register_routes()
S
51 1 35
get_plugin_meta()
S
56 2 19
Activitypub\Collection\Followers::get_follower()
S
57 2 18
Activitypub\Blocks::render_follow_me_block()
S
56 2 18
Activitypub\Rest\Inbox::register_routes()
S
52 1 32
Activitypub\Activitypub::plugin_update_message()
S
58 2 17
Activitypub\Health_Check::add_tests()
S
57 2 17
Activitypub\Rest\Users::register_routes()
S
52 1 31
Activitypub\Rest\Inbox::user_inbox_post()
S
57 2 16
Activitypub\Webfinger::get_data()
S
57 2 16
Activitypub\Activity\Base_Object::from_array()
S
66 3 8
Activitypub\Debug::init()
S
71 3 5
Activitypub\Collection\Users::get_by_various()
S
65 3 9
Activitypub\Scheduler::register_schedules()
S
66 3 8
Activitypub\Transformer\Post::get_attachments()
S
67 3 7
Activitypub\Debug::write_log()
S
68 3 7
Activitypub\Handler\Delete::maybe_delete_follower()
S
70 3 6
Activitypub\Handler\Delete::delete_interactions()
S
67 3 8
Activitypub\Handler\Delete::defer_signature_verification()
S
68 3 7
Activitypub\Shortcodes::unregister()
S
68 3 7
Activitypub\Handler\Undo::handle_undo()
S
66 3 8
Activitypub\Shortcodes::register()
S
68 3 7
Activitypub\Handler\Update::update_interaction()
S
66 3 8
Activitypub\Model\Blog_User::get_published()
S
58 2 15
Activitypub\Model\Blog_User::get_moderators()
S
70 3 6
Activitypub\Model\Blog_User::get_attributed_to()
S
70 3 6
Activitypub\Model\Follower::count_errors()
S
68 3 7
Activitypub\Model\Follower::get_latest_error_message()
S
68 3 7
Activitypub\Model\Follower::get_name()
S
68 3 8
Activitypub\Model\Follower::get_icon_url()
S
65 3 10
Activitypub\Model\Follower::get_shared_inbox()
S
67 3 8
Activitypub\Transformer\Post::get_cc()
S
65 3 10
Activitypub\Blocks::add_data()
S
58 2 15
Activitypub\Mention::extract_mentions()
S
63 3 10
Activitypub\Rest\Collection::moderators_get()
S
58 2 15
Activitypub\Scheduler::schedule_migration()
S
72 3 5
site_supports_blocks()
S
65 3 9
is_tombstone()
S
66 3 9
is_single_user()
S
67 3 9
Activitypub\Collection\Followers::get_follower_by_actor()
S
60 2 14
Activitypub\Rest\Nodeinfo::nodeinfo2()
S
50 1 29
Activitypub\Table\Followers::__construct()
S
60 2 14
Activitypub\Integration\Nodeinfo::add_nodeinfo_discovery()
S
59 2 14
Activitypub\Admin::admin_menu()
S
58 2 14
rest_init()
S
62 2 13
Activitypub\Rest\Nodeinfo::nodeinfo()
S
51 1 27
Activitypub\Collection\Users::get_collection()
S
62 2 12
Activitypub\Model\Blog_User::from_wp_user()
S
62 2 12
Activitypub\Model\User::from_wp_user()
S
62 2 12
Activitypub\Rest\Followers::request_parameters()
S
53 1 26
Activitypub\Migration::migrate_from_1_2_0()
S
63 2 11
Activitypub\Collection\Followers::get_followers_with_count()
S
53 1 25
Activitypub\Collection\Interactions::get_interaction_by_id()
S
54 1 25
Activitypub\Collection\Followers::count_followers()
S
54 1 24
Activitypub\Blocks::render_follower()
S
55 1 23
Activitypub\Health_Check::debug_information()
S
54 1 23
Activitypub\Collection\Followers::get_all_followers()
S
58 1 17
Activitypub\Transformer\Post::get_content()
S
58 1 16
Activitypub\Activity\Base_Object::get()
S
68 2 6
Activitypub\Hashtag::init()
S
69 2 6
Activitypub\Handler\Delete::maybe_delete_interactions()
S
66 2 9
Activitypub\Signature::get_private_key_for()
S
69 2 7
Activitypub\Activitypub::get_avatar_url()
S
69 2 6
sanitize_url()
S
71 2 6
Activitypub\Admin::init()
S
64 2 9
get_self_link()
S
70 2 5
str_starts_with()
S
71 2 6
esc_hashtag()
S
59 1 15
Activitypub\Transformer\Post::get_attributed_to()
S
69 2 7
is_countable()
S
79 2 3
is_json()
S
78 2 3
Activitypub\Http::is_tombstone()
S
64 2 9
Activitypub\Admin::followers_list_page()
S
72 2 5
Activitypub\Transformer\Post::get_url()
S
64 2 9
Activitypub\Model\Blog_User::get_type()
S
70 2 7
Activitypub\Activitypub::remote_comment_link()
S
68 2 7
Activitypub\Model\Follower::get_url()
S
73 2 6
Activitypub\Integration\Webfinger::add_pseudo_user_discovery()
S
72 2 6
Activitypub\Model\User::get_image()
S
64 2 10
Activitypub\Activity\Base_Object::init_from_json()
S
68 2 7
Activitypub\Collection\Followers::remove_follower()
S
66 2 8
Activitypub\Blocks::get_user_id()
S
71 2 6
Activitypub\Table\Followers::column_default()
S
70 2 6
Activitypub\Signature::get_signature_options_key_for()
S
66 2 8
Activitypub\Shortcodes::title()
S
68 2 7
Activitypub\Hashtag::insert_post()
S
66 2 7
Activitypub\Hashtag::replace_with_links()
S
64 2 9
Activitypub\Model\Blog_User::get_preferred_username()
S
69 2 7
Activitypub\Model\Blog_User::get_header_image()
S
66 2 9
Activitypub\Model\Blog_User::get_posting_restricted_to_mods()
S
71 2 6
Activitypub\Model\Follower::get_summary()
S
72 2 6
Activitypub\Signature::get_public_key_for()
S
69 2 7
Activitypub\Signature::get_keypair_for()
S
67 2 8
Activitypub\Model\Follower::get_icon()
S
64 2 10
Activitypub\Model\Follower::get_preferred_username()
S
73 2 6
Activitypub\Activity\Base_Object::set()
S
67 2 7
Activitypub\Model\User::get_summary()
S
67 2 7
Activitypub\Admin::enqueue_scripts()
S
68 2 6
Activitypub\Model\User::get_indexable()
S
69 2 7
Activitypub\Rest\Outbox::register_routes()
S
61 1 14
Activitypub\Rest\Webfinger::register_routes()
S
61 1 14
Activitypub\Rest\Followers::register_routes()
S
61 1 14
Activitypub\Blocks::register_blocks()
S
61 1 14
Activitypub\Rest\Following::register_routes()
S
61 1 14
Activitypub\Rest\Server::register_routes()
S
62 1 13
Activitypub\Rest\Outbox::request_parameters()
S
62 1 12
Activitypub\Model\User::get_icon()
S
63 1 12
Activitypub\Model\Follower::init_from_cpt()
S
61 1 11
Activitypub\Table\Followers::get_columns()
S
62 1 11
Activitypub\Rest\Users::request_parameters()
S
64 1 11
Activitypub\Rest\Following::request_parameters()
S
63 1 11
Activitypub\Rest\Inbox::user_inbox_get_parameters()
S
63 1 11
Activitypub\Model\Application_User::get_moderators()
S
82 1 3
Activitypub\Model\Blog_User::get_canonical_url()
S
80 1 3
Activitypub\Rest\Inbox::init()
S
80 1 3
Activitypub\Model\Blog_User::get_at_url()
S
78 1 3
Activitypub\Activity\Base_Object::to_string()
S
81 1 3
Activitypub\Rest\Collection::request_parameters()
S
67 1 8
Activitypub\Model\Application_User::get_indexable()
S
82 1 3
Activitypub\Activity\Base_Object::from_json()
S
75 1 4
get_plugin_version()
S
76 1 4
Activitypub\Integration\Nodeinfo::add_nodeinfo2_discovery()
S
65 1 9
Activitypub\Model\Application_User::get_following()
S
82 1 3
Activitypub\Rest\Server::application_actor()
S
63 1 10
Activitypub\Activitypub::trash_post()
S
68 1 8
Activitypub\Table\Followers::column_cb()
S
78 1 3
Activitypub\Integration\Nodeinfo::init()
S
74 1 4
Activitypub\Handler::init()
S
80 1 3
Activitypub\Model\User::get_streams()
S
82 1 3
Activitypub\Blocks::filter_array_by_keys()
S
78 1 3
Activitypub\Model\Application_User::get_followers()
S
82 1 3
Activitypub\Model\Application_User::get_attachment()
S
82 1 3
Activitypub\Admin::add_profile()
S
64 1 10
Activitypub\Debug::log_remote_post_responses()
S
77 1 3
Activitypub\Activity\Base_Object::to_json()
S
74 1 4
Activitypub\Handler\Delete::init()
S
70 1 5
Activitypub\Activity_Dispatcher::init()
S
74 1 4
Activitypub\Model\User::get_public_key()
S
69 1 7
Activitypub\Admin::add_settings_help_tab()
S
80 1 3
Activitypub\Integration\Webfinger::init()
S
73 1 4
Activitypub\Rest\Webfinger::request_parameters()
S
65 1 9
Activitypub\Model\User::get_canonical_url()
S
81 1 3
Activitypub\Model\Post::__construct()
S
72 1 5
Activitypub\Model\Blog_User::get_attachment()
S
82 1 3
get_context()
S
75 1 4
Activitypub\Rest\Webfinger::webfinger()
S
69 1 6
Activitypub\Model\Blog_User::get_name()
S
67 1 9
Activitypub\Transformer\Post::transform()
S
80 1 3
Activitypub\Model\User::get_preferred_username()
S
78 1 3
allow_localhost()
S
77 1 4
Activitypub\Model\Follower::update()
S
82 1 3
Activitypub\Handler\Undo::init()
S
77 1 3
Activitypub\Model\User::get_following()
S
79 1 3
Activitypub\Model\Follower::upsert()
S
81 1 3
Activitypub\Activitypub::flush_rewrite_rules()
S
76 1 4
Activitypub\Model\Follower::reset_errors()
S
80 1 3
Activitypub\Rest\Nodeinfo::init()
S
80 1 3
Activitypub\Rest\Webfinger::init()
S
80 1 3
Activitypub\Model\Post::get_id()
S
81 1 3
Activitypub\Activitypub::uninstall()
S
81 1 3
Activitypub\Model\Post::to_array()
S
78 1 3
Activitypub\Model\Application_User::get_url()
S
80 1 3
Activitypub\Model\Post::get_attachments()
S
81 1 3
Activitypub\Activitypub::untrash_post()
S
79 1 3
Activitypub\Activitypub::deactivate()
S
77 1 4
is_blog_public()
S
78 1 3
Activitypub\Activity\Base_Object::__toString()
S
81 1 3
Activitypub\Integration\Buddypress::init()
S
77 1 3
Activitypub\Model\User::get_tag()
S
82 1 3
Activitypub\Collection\Followers::get_followers()
S
74 1 4
Activitypub\Table\Followers::get_sortable_columns()
S
67 1 8
Activitypub\Model\Follower::get_errors()
S
79 1 3
Activitypub\Scheduler::init()
S
69 1 6
Activitypub\Model\Post::get_content()
S
81 1 3
Activitypub\Rest\Collection::init()
S
80 1 3
Activitypub\Model\Post::get_tags()
S
81 1 3
Activitypub\Table\Followers::get_user_count()
S
80 1 3
Activitypub\Model\User::get_inbox()
S
79 1 3
Activitypub\Migration::get_target_version()
S
80 1 3
Activitypub\Transformer\Post::__construct()
S
81 1 3
Activitypub\Handler\Update::update_actor()
S
78 1 3
Activitypub\Rest\Following::init()
S
74 1 4
Activitypub\Model\Blog_User::get_summary()
S
68 1 8
Activitypub\Model\Blog_User::get_url()
S
78 1 3
safe_remote_post()
S
79 1 3
Activitypub\Model\Post::get_object_type()
S
81 1 3
Activitypub\Scheduler::deregister_schedules()
S
77 1 4
Activitypub\Transformer\Post::get_locale()
S
71 1 5
count_followers()
S
81 1 3
Activitypub\Model\Post::get_url()
S
81 1 3
Activitypub\Model\User::get_url()
S
79 1 3
Activitypub\Handler\Follow::init()
S
73 1 4
Activitypub\Model\Blog_User::get_default_username()
S
71 1 5
Activitypub\Handler\Update::init()
S
77 1 3
Activitypub\Migration::get_version()
S
79 1 3
Activitypub\Rest\Nodeinfo::discovery()
S
64 1 10
Activitypub\Activitypub::activate()
S
77 1 4
Activitypub\Admin::add_followers_list_help_tab()
S
89 1 2
Activitypub\Model\Post::get_actor()
S
76 1 4
Activitypub\Model\Follower::delete()
S
81 1 3
Activitypub\Peer\Followers::count_followers()
S
74 1 4
Activitypub\Signature::generate_digest()
S
74 1 4
snake_to_camel_case()
S
78 1 3
Activitypub\Shortcodes::blogurl()
S
79 1 3
Activitypub\Model\User::get_name()
S
78 1 3
Activitypub\Model\Post::to_json()
S
77 1 3
Activitypub\Health_Check::init()
S
74 1 4
Activitypub\Model\User::get_at_url()
S
78 1 3
Activitypub\Model\Follower::get_post_meta_input()
S
71 1 6
get_webfinger_resource()
S
81 1 3
Activitypub\Model\User::get_id()
S
81 1 3
Activitypub\Handler::register_handlers()
S
68 1 8
get_rest_url_by_path()
S
71 1 5
Activitypub\Transformer\Post::get_image()
S
70 1 6
Activitypub\Transformer\Post::get_id()
S
81 1 3
Activitypub\Model\Post::get_user_id()
S
79 1 3
Activitypub\Table\Followers::column_avatar()
S
72 1 6
Activitypub\Table\Followers::get_bulk_actions()
S
73 1 5
Activitypub\Handler\Follow::handle_follow()
S
74 1 4
Activitypub\Model\Application_User::get_preferred_username()
S
81 1 3
Activitypub\Model\User::get_published()
S
77 1 3
Activitypub\Migration::unlock()
S
80 1 3
Activitypub\Shortcodes::blogname()
S
79 1 3
Activitypub\Model\User::get_followers()
S
79 1 3
Activitypub\Migration::lock()
S
79 1 3
Activitypub\Handler\Create::init()
S
77 1 3
Activitypub\Shortcodes::blogdesc()
S
79 1 3
Activitypub\Model\User::get_outbox()
S
79 1 3
Activitypub\Peer\Followers::remove_follower()
S
74 1 4
Activitypub\Model\User::get_featured()
S
79 1 3
Activitypub\Rest\Followers::init()
S
80 1 3
get_followers()
S
81 1 3
Activitypub\Peer\Followers::get_followers()
S
74 1 4
Activitypub\Table\Followers::column_url()
S
70 1 7
Activitypub\Blocks::init()
S
72 1 5
Activitypub\Mention::init()
S
74 1 4
Activitypub\Rest\Outbox::init()
S
80 1 3
is_activity_public()
S
75 1 4
plugin_settings_link()
S
65 1 9
Activitypub\Activitypub::add_query_vars()
S
76 1 4
Activitypub\Transformer\Post::get_mentions()
S
78 1 3
Activitypub\Peer\Followers::add_follower()
S
74 1 4
Activitypub\Rest\Server::init()
S
74 1 4
Activitypub\Model\Application_User::get_name()
S
82 1 3
Activitypub\Model\Application_User::get_featured()
S
82 1 3
camel_to_snake_case()
S
79 1 3
Activitypub\Model\User::get_resource()
S
77 1 3
Activitypub\Collection\Users::normalize_host()
S
78 1 3
Activitypub\Migration::is_latest_version()
S
70 1 7
safe_remote_get()
S
81 1 3
Activitypub\Migration::init()
S
78 1 3
Activitypub\Activity\Base_Object::has()
S
79 1 3
Activitypub\Rest\Users::init()
S
80 1 3