Code Analysis: ActivityPub 0.12.0

Function Rating Maintainability Complexity Lines of code
Activitypub\Model\Post::generate_object_type()
B
42 16 54
Activitypub\Activitypub::render_json_template()
A
47 13 34
Activitypub\Model\Post::generate_attachments()
A
43 9 47
Activitypub\Activitypub::pre_get_avatar_data()
A
51 9 26
Activitypub\Peer\Followers::add_follower()
A
52 8 24
Activitypub\Peer\Followers::get_followers()
A
55 8 18
get_publickey_by_actor()
A
56 8 17
url_to_authorid()
S
51 7 25
Activitypub\Rest\Inbox::shared_inbox_request_parameters()
S
45 5 55
Activitypub\Peer\Users::url_to_authorid()
S
51 7 25
Activitypub\Activitypub::schedule_post_activity()
S
56 7 17
init()
S
46 5 41
Activitypub\Rest\Outbox::user_outbox()
S
43 4 44
get_remote_metadata_by_actor()
S
51 5 26
Activitypub\Signature::generate_signature()
S
51 5 26
Activitypub\Rest\Webfinger::webfinger()
S
47 4 36
Activitypub\Health_Check::is_profile_url_accessible()
S
57 5 16
get_follower_inboxes()
S
59 5 15
get_inbox_by_actor()
S
60 5 13
Activitypub\Model\Activity::from_post()
S
62 4 12
Activitypub\Model\Post::get_post_content_template()
S
62 4 12
Activitypub\Admin::register_settings()
S
44 1 56
Activitypub\Rest\Inbox::user_inbox_request_parameters()
S
51 2 33
Activitypub\Model\Post::get_the_post_excerpt()
S
57 3 16
Activitypub\Rest\Inbox::handle_unfollow()
S
70 4 5
Activitypub\Model\Post::generate_tags()
S
59 3 15
Activitypub\Model\Post::get_the_post_hashtags()
S
61 3 12
Activitypub\Rest\Inbox::serve_request()
S
62 3 11
Activitypub\Rest\Server::dispatch()
S
62 3 11
Activitypub\Activitypub::init()
S
60 3 11
Activitypub\Model\Post::get_the_post_link()
S
62 3 11
Activitypub\Health_Check::test_profile_url()
S
52 2 26
Activitypub\Rest\Inbox::handle_reaction()
S
52 2 24
Activitypub\Rest\Inbox::handle_create()
S
52 2 24
Activitypub\Rest\Followers::get()
S
52 2 23
Activitypub\Rest\Following::get()
S
52 2 23
Activitypub\Model\Post::generate_the_content()
S
54 2 19
Activitypub\Peer\Followers::remove_follower()
S
64 3 9
Activitypub\Signature::get_private_key()
S
64 3 9
Activitypub\Model\Activity::__construct()
S
64 3 9
Activitypub\Model\Activity::__call()
S
64 3 9
Activitypub\Debug::init()
S
71 3 5
Activitypub\Debug::write_log()
S
68 3 7
Activitypub\Rest\Nodeinfo::nodeinfo2()
S
50 1 30
Activitypub\Model\Post::__call()
S
64 3 9
Activitypub\Signature::get_public_key()
S
64 3 9
add_rewrite_rules()
S
65 3 9
Activitypub\Rest\Nodeinfo::register_routes()
S
53 1 29
Activitypub\Model\Activity::to_simple_array()
S
60 2 14
Activitypub\Rest\Nodeinfo::nodeinfo()
S
51 1 28
safe_remote_post()
S
52 1 24
Activitypub\Rest\Inbox::register_routes()
S
56 1 22
safe_remote_get()
S
54 1 21
Activitypub\Model\Post::to_array()
S
54 1 20
get_identifier_settings()
S
58 1 18
Activitypub\Admin::add_settings_help_tab()
S
57 1 18
Activitypub\Rest\Inbox::shared_inbox()
S
64 2 9
Activitypub\Activity_Dispatcher::send_delete_activity()
S
62 2 10
Activitypub\Model\Activity::to_array()
S
66 2 8
Activitypub\Activitypub::get_avatar_url()
S
69 2 6
Activitypub\Hashtag::init()
S
69 2 6
Activitypub\Activity_Dispatcher::send_update_activity()
S
62 2 10
Activitypub\Hashtag::insert_post()
S
66 2 7
Activitypub\Table\Followers_List::prepare_items()
S
63 2 10
get_followers()
S
69 2 7
get_webfinger_resource()
S
67 2 7
Activitypub\Hashtag::replace_with_links()
S
64 2 9
Activitypub\Rest\Nodeinfo::add_nodeinfo_discovery()
S
65 2 9
Activitypub\Activity_Dispatcher::send_post_activity()
S
62 2 10
Activitypub\Signature::generate_key_pair()
S
60 1 13
get_context()
S
61 1 13
Activitypub\Rest\Outbox::register_routes()
S
62 1 12
Activitypub\Rest\Following::register_routes()
S
62 1 12
Activitypub\Rest\Webfinger::register_routes()
S
62 1 12
Activitypub\Admin::admin_menu()
S
61 1 12
Activitypub\Rest\Followers::register_routes()
S
62 1 12
Activitypub\Rest\Following::request_parameters()
S
64 1 11
Activitypub\Rest\Inbox::handle_follow()
S
61 1 11
Activitypub\Rest\Ostatus::register_routes()
S
64 1 11
Activitypub\Rest\Outbox::request_parameters()
S
64 1 11
Activitypub\Rest\Followers::request_parameters()
S
64 1 11
Activitypub\Peer\Users::get_user_by_various()
S
89 1 2
Activitypub\Model\Post::to_json()
S
77 1 3
Activitypub\Signature::generate_digest()
S
74 1 4
Activitypub\Activitypub::add_query_vars()
S
76 1 4
Activitypub\Rest\Nodeinfo::init()
S
71 1 5
flush_rewrite_rules()
S
77 1 4
Activitypub\Rest\Outbox::init()
S
78 1 3
Activitypub\Activitypub::add_rewrite_endpoint()
S
78 1 3
Activitypub\Rest\Webfinger::request_parameters()
S
65 1 9
Activitypub\Rest\Inbox::user_inbox()
S
65 1 8
Activitypub\Table\Followers_List::get_sortable_columns()
S
82 1 3
Activitypub\Health_Check::init()
S
78 1 3
Activitypub\Signature::verify_signature()
S
89 1 2
Activitypub\Table\Followers_List::get_columns()
S
73 1 5
Activitypub\Model\Activity::from_remote_array()
S
91 1 2
Activitypub\Model\Post::get_the_post_content()
S
72 1 5
Activitypub\Admin::add_followers_list_help_tab()
S
89 1 2
Activitypub\Model\Post::generate_id()
S
72 1 5
Activitypub\Peer\Followers::count_followers()
S
75 1 4
Activitypub\Admin::followers_list_page()
S
78 1 3
Activitypub\Admin::settings_page()
S
78 1 3
Activitypub\Rest\Inbox::init()
S
66 1 7
Activitypub\Rest\Webfinger::init()
S
74 1 4
Activitypub\Model\Activity::to_comment()
S
91 1 2
Activitypub\Model\Post::__construct()
S
63 1 10
Activitypub\Admin::init()
S
72 1 5
Activitypub\Health_Check::add_tests()
S
67 1 7
Activitypub\Table\Followers_List::column_default()
S
80 1 3
Activitypub\Model\Activity::to_json()
S
77 1 3
Activitypub\Rest\Nodeinfo::discovery()
S
64 1 10
count_followers()
S
75 1 4
Activitypub\Rest\Followers::init()
S
78 1 3
Activitypub\Debug::log_remote_post_responses()
S
77 1 3
Activitypub\Rest\Webfinger::add_webfinger_discovery()
S
66 1 8
Activitypub\Admin::add_fediverse_profile()
S
71 1 6
Activitypub\Activity_Dispatcher::init()
S
71 1 5
Activitypub\Hashtag::the_content()
S
73 1 4
Activitypub\Rest\Following::init()
S
78 1 3
Activitypub\Model\Activity::from_comment()
S
91 1 2
Activitypub\Rest\Nodeinfo::add_nodeinfo2_discovery()
S
76 1 4
Activitypub\Rest\Ostatus::get()
S
89 1 2
Activitypub\Model\Activity::to_simple_json()
S
77 1 3