Code Analysis: WPO365 | MICROSOFT 365 GRAPH MAILER 1.6

Function Rating Maintainability Complexity Lines of code
Wpo\Core\Plugin_Updater::check_license()
D
26
31 156
Wpo\Services\Notifications_Service::show_admin_notices()
C
36 32 60
Wpo\Mail\Mailer::send()
C
29 26 126
Wpo\Core\Plugin_Updater::api_request()
C
38 25 61
Wpo\Core\Url_Helpers::goto_after()
C
37 25 59
Wpo\Services\Access_Token_Service::get_access_token()
C
30 20 127
Wpo\Pages\License_Page::activate_license()
B
35 21 78
Wpo\Core\Extensions_Helpers::get_extensions()
B
23
8 253
Wpo\Core\Plugin_Updater::show_update_notification()
B
36 20 73
Wpo\Core\Script_Helpers::enqueue_wizard()
B
41 22 42
Wpo\Core\Plugin_Updater::show_changelog()
B
40 18 51
Wpo\Mail\Mailer::validate_email_addresses()
B
40 17 59
Wpo\Services\Graph_Service::fetch()
A
37 14 69
Wpo\Pages\License_Page::deactivate_license()
A
42 13 45
Wpo\Core\Plugin_Updater::plugins_api_filter()
A
45 13 41
Wpo\Services\Access_Token_Service::get_cached_access_token()
A
44 12 43
Wpo\Services\Error_Service::get_error_message()
A
41 11 54
Wpo\Services\Log_Service::flush_log()
A
45 12 36
Wpo\Core\Plugin_Updater::check_update()
A
49 12 28
Wpo\Core\Url_Helpers::ensure_trailing_slash_url()
A
47 11 36
Wpo\Services\Access_Token_Service::get_app_only_access_token()
A
40 8 59
Wpo\Services\Options_Service::is_wpo365_configured()
A
45 9 39
Wpo\Services\Options_Service::update_options()
A
48 9 32
Wpo\Services\Access_Token_Service::save_access_tokens()
A
46 8 40
Wpo\Services\Options_Service::get_global_var()
A
51 9 24
Wpo\Services\Ajax_Service::cors_proxy()
A
42 7 49
Wpo\MsGraphMailer::add_wp_hooks()
A
47 8 32
Wpo\Mail\Mailer::to_array_of_valid_email_addresses()
A
50 8 28
Wpo\Services\Access_Token_Service::get_refresh_token()
A
47 7 35
Wpo\Core\Globals::get_url_info()
A
53 8 19
Wpo\Services\Access_Token_Service::validate_access_token()
A
55 8 18
Wpo\Services\Options_Service::ensure_options_cache()
A
57 8 17
Wpo\Services\Graph_Service::is_fetch_result_ok()
A
55 8 17
Wpo\Services\Log_Service::write_log()
S
49 7 28
Wpo\Core\Url_Helpers::get_redirect_url()
S
52 7 25
Wpo\Pages\License_Page::license_page()
S
41 3 83
Wpo\Pages\License_Page::activation_notice()
S
55 7 19
Wpo\Services\Access_Token_Service::get_authorization_code()
S
49 6 32
Wpo\Services\Request_Service::shutdown()
S
50 6 30
Wpo\Mail\Mailer::send_test_mail()
S
50 6 24
Wpo\Core\Shortcode_Helpers::add_pintra_shortcode()
S
51 6 24
Wpo\Core\Permissions_Helpers::prevent_email_change()
S
55 6 18
Wpo\Pages\License_Page::__construct()
S
56 6 18
Wpo\Services\Ajax_Service::verify_ajax_request()
S
55 6 18
Wpo\Core\Url_Helpers::is_wp_login()
S
55 6 17
Wpo\Mail\Mailer::email_message_encode()
S
52 5 26
Wpo\Core\Wpmu_Helpers::switch_blog()
S
53 5 21
Wpo\Core\Wpmu_Helpers::get_blog_id_from_host_and_path()
S
54 5 21
Wpo\Services\Notifications_Service::dismiss_admin_notices()
S
55 5 20
Wpo\Core\Plugin_Updater::check_for_updates()
S
48 4 32
Wpo\Services\Options_Service::get_aad_option()
S
57 5 15
Wpo\Core\Plugin_Helpers::is_premium_edition_active()
S
58 5 15
Wpo\Services\Options_Service::get_global_boolean_var()
S
66 6 7
Wpo\Core\Plugin_Updater::get_cached_version_info()
S
59 5 14
Wpo\Core\Script_Helpers::enqueue_pintra_redirect()
S
59 5 12
Wpo\Services\Ajax_Service::update_settings()
S
60 5 11
Wpo\Core\Url_Helpers::get_login_urls()
S
54 4 23
Wpo\Core\Shortcode_Helpers::add_sign_in_with_microsoft_shortcode_V2()
S
54 4 19
Wpo\Services\Log_Service::to_ai_message()
S
48 3 33
Wpo\Core\Shortcode_Helpers::ensure_display_error_message_short_code()
S
73 5 4
Wpo\Services\Error_Service::check_for_login_messages()
S
58 4 15
Wpo\Pages\Wizard_Page::add_management_page()
S
61 4 13
Wpo\Core\Url_Helpers::ensure_trailing_slash_path()
S
60 4 12
Wpo\Mail\Mailer::mailer_log()
S
60 4 12
Wpo\Core\WordPress_Helpers::get_allowed_html()
S
43 1 55
Wpo\Services\Request_Service::get_instance()
S
58 3 16
Wpo\Services\Access_Token_Service::save_authorization_code()
S
58 3 16
Wpo\Core\Request::get_item()
S
65 4 9
Wpo\Core\Request::remove_item()
S
64 4 10
Wpo\Core\Permissions_Helpers::must_use_delegate_access_for_scope()
S
69 4 6
Wpo\Core\Plugin_Helpers::get_configuration_action_link()
S
66 4 7
Wpo\Core\Wpmu_Helpers::mu_get_transient()
S
69 4 6
Wpo\Core\Wpmu_Helpers::mu_set_transient()
S
67 4 7
Wpo\Core\Shortcode_Helpers::ensure_login_button_short_code_V2()
S
71 4 5
Wpo\Core\Extensions_Helpers::get_active_extension_dir()
S
63 4 9
Wpo\Core\Permissions_Helpers::block_password_update()
S
63 4 9
Wpo\Services\Ajax_Service::get_tokencache()
S
57 3 15
Wpo\Services\Ajax_Service::delete_settings()
S
62 4 10
Wpo\Services\Ajax_Service::verify_POSTed_data()
S
63 4 10
Wpo\Core\Wpmu_Helpers::mu_delete_transient()
S
68 4 7
Wpo\Services\Options_Service::mu_use_subsite_options()
S
70 4 6
Wpo\Core\Plugin_Updater::__construct()
S
58 3 14
Wpo\Services\Options_Service::to_camel_case()
S
59 3 14
Wpo\Core\Shortcode_Helpers::add_display_error_message_shortcode()
S
59 3 13
Wpo\Services\Ajax_Service::get_self_test_results()
S
59 3 13
Wpo\Services\Ajax_Service::get_log()
S
60 3 13
Wpo\Core\Plugin_Updater::show_license_notices()
S
60 3 13
Wpo\Services\Options_Service::add_update_option()
S
61 3 12
Wpo\MsGraphMailer::load()
S
61 3 12
Wpo\Services\Options_Service::to_keyvalues()
S
61 3 11
Wpo\Services\Ajax_Service::send_test_mail()
S
60 3 11
Wpo\Core\Shortcode_Helpers::login_button()
S
61 3 11
Wpo\Core\Globals::set_global_vars()
S
52 2 23
Wpo\Services\Access_Token_Service::delete_tokens()
S
57 2 18
Wpo\Core\Url_Helpers::force_redirect()
S
56 2 18
Wpo\Services\Options_Service::delete_options()
S
70 3 6
Wpo\Core\Permissions_Helpers::user_is_admin()
S
69 3 6
Wpo\Core\Url_Helpers::is_basic_auth_api_request()
S
65 3 8
Wpo\Core\Wpmu_Helpers::mu_is_network_admin()
S
75 3 3
Wpo\Mail\Mailer::mail_from()
S
66 3 9
Wpo\Core\Plugin_Updater::http_request_args()
S
67 3 7
Wpo\Core\Domain_Helpers::is_tenant_domain()
S
65 3 8
Wpo\Core\Request::set_item()
S
65 3 10
Wpo\Services\Access_Token_Service::save_refresh_token()
S
60 2 14
Wpo\Services\Log_Service::to_ai_exception()
S
50 1 29
Wpo\Services\Options_Service::get_default_options()
S
56 1 20
Wpo\Services\Log_Service::flush_log_to_ai()
S
56 1 18
Wpo\Core\Domain_Helpers::get_smtp_domain_from_email_address()
S
68 2 6
Wpo\Services\Options_Service::get_global_numeric_var()
S
74 2 4
Wpo\Services\Ajax_Service::get_settings()
S
64 2 9
Wpo\Services\Dependency_Service::get()
S
71 2 6
Wpo\Services\Options_Service::from_camel_case()
S
63 2 10
Wpo\Services\Request_Service::get_request()
S
68 2 7
Wpo\Core\Plugin_Updater::set_version_info_cache()
S
64 2 10
Wpo\Services\Dependency_Service::remove()
S
73 2 5
Wpo\Core\Shortcode_Helpers::ensure_pintra_short_code()
S
73 2 5
Wpo\Services\Options_Service::get_global_list_var()
S
74 2 4
Wpo\Services\Dependency_Service::get_instance()
S
71 2 6
Wpo\Services\Options_Service::get_options()
S
67 2 8
Wpo\Services\Log_Service::to_ai()
S
70 2 6
Wpo\Services\Options_Service::get_global_string_var()
S
73 2 4
Wpo\Services\Ajax_Service::delete_tokens()
S
66 2 8
Wpo\Core\Url_Helpers::get_preferred_login_url()
S
70 2 6
Wpo\Core\Shortcode_Helpers::ensure_login_button_short_code()
S
73 2 5
Wpo\Core\Url_Helpers::is_wp_rest_api()
S
62 2 10
Wpo\Mail\Mailer::init()
S
67 2 8
Wpo\Core\Plugin_Updater::convert_object_to_array()
S
69 2 7
Wpo\Services\Options_Service::get_secret_options()
S
65 1 11
Wpo\MsGraphMailer::cache_dependencies()
S
75 1 4
Wpo\Services\Dependency_Service::add()
S
80 1 3
Wpo\Core\Permissions_Helpers::show_password_fields()
S
79 1 3
Wpo\Core\Request::clear()
S
81 1 3
Wpo\MsGraphMailer::ensure_wpo365_login()
S
67 1 9
Wpo\Core\Url_Helpers::add_query_vars_filter()
S
66 1 9
Wpo\Core\Permissions_Helpers::allow_password_reset()
S
79 1 3
Wpo\Services\Request_Service::__construct()
S
91 1 2
Wpo\MsGraphMailer::__construct()
S
78 1 3
Wpo\Core\Plugin_Updater::init()
S
67 1 7
Wpo\Core\Request::current_request_id()
S
82 1 3
Wpo\Services\Dependency_Service::__construct()
S
91 1 2
Wpo\Pages\License_Page::license_menu()
S
78 1 3
Wpo\Core\Url_Helpers::remove_protocol_and_www()
S
71 1 5
Wpo\Pages\Wizard_Page::wpo365_wizard_page()
S
69 1 6
Wpo\Core\Request::__construct()
S
81 1 3
Wpo\Core\Url_Helpers::leadingslashit()
S
78 1 3
Wpo\Services\Ajax_Service::AJAX_response()
S
70 1 5
Wpo\Core\Plugin_Updater::verify_ssl()
S
78 1 3