Code Analysis: LiveChat 4.4.3

Function Rating Maintainability Complexity Lines of code
LiveChat\Helpers\DeactivationFeedbackFormHelper::render()
A
35 1 162
LiveChat\Helpers\TrackingCodeHelper::render()
A
47 9 41
LiveChat\Drivers\HttpClient::request()
A
51 10 24
LiveChat\LiveChatAdmin::register_admin_menu()
S
47 4 41
LiveChat\LiveChatAdmin::ajax_connect()
S
52 5 23
LiveChat\Services\ApiClient::make_request()
S
57 5 17
LiveChat\LiveChatAdmin::check_review_notice_conditions()
S
64 5 11
LiveChat\Services\User::get_user_data()
S
58 4 16
LiveChat\LiveChat::get_connect_token()
S
59 3 16
LiveChat\LiveChatAdmin::uninstall_hook_handler()
S
58 3 15
LiveChat\LiveChatAdmin::register_connect_notice()
S
64 4 10
LiveChat\LiveChat::get_license_number()
S
60 3 13
LiveChat\Services\CertProvider::get_stored_cert()
S
63 3 11
LiveChat\LiveChatAdmin::get_review_notice_start_timestamp()
S
63 3 11
LiveChat\LiveChatAdmin::get_review_notice_start_timestamp_offset()
S
64 3 11
LiveChat\Services\User::remove_authorized_users()
S
65 3 10
LiveChat\Services\ConnectToken::get_from_token()
S
72 3 5
LiveChat\LiveChatAdmin::check_if_license_is_active()
S
63 3 10
LiveChat\Services\TokenValidator::validate_store_token()
S
70 3 6
LiveChat\Services\TokenValidator::validate_user_token()
S
70 3 6
LiveChat\Services\UrlProvider::get_api_url()
S
65 3 9
LiveChat\LiveChat::widget_script()
S
60 2 15
LiveChat\Services\TemplateParser::parse_template()
S
61 2 13
LiveChat\Helpers\ConnectNoticeHelper::render()
S
55 1 26
LiveChat\Services\ConnectTokenProvider::get()
S
64 2 11
LiveChat\Helpers\ReviewNoticeHelper::render()
S
55 1 24
LiveChat\LiveChat::tracking_code()
S
60 1 16
LiveChat\Helpers\ConnectServiceHelper::get_app_url()
S
66 2 8
LiveChat\LiveChat::get_instance()
S
71 2 6
LiveChat\LiveChatAdmin::go_to_livechat_link()
S
72 2 6
LiveChat\LiveChatAdmin::livechat_settings_link()
S
66 2 8
LiveChat\LiveChat::get_login()
S
71 2 6
LiveChat\Services\ModuleConfiguration::get_plugin_url()
S
71 2 6
LiveChat\Services\ModuleConfiguration::get_site_url()
S
72 2 6
LiveChat\Services\ModuleConfiguration::get_plugin_version()
S
70 2 6
LiveChat\Services\ModuleConfiguration::get_instance()
S
71 2 6
LiveChat\Services\Store::get_store_token()
S
69 2 7
LiveChat\Services\Store::get_instance()
S
71 2 6
LiveChat\LiveChatAdmin::register_admin_notices()
S
65 2 9
LiveChat\Services\TemplateParser::replacer()
S
77 2 3
LiveChat\Services\TokenValidator::validate_jwt_token()
S
65 2 10
LiveChat\LiveChat::check_mobile()
S
71 2 5
LiveChat\LiveChatAdmin::show_deactivation_feedback_form()
S
70 2 6
LiveChat\LiveChatAdmin::auto_update()
S
79 2 3
LiveChat\Services\TemplateParser::get_template_file_contents()
S
74 2 4
LiveChat\Services\User::check_logged()
S
71 2 6
LiveChat\Services\User::get_current_user_token()
S
67 2 8
LiveChat\Services\UrlProvider::get_app_url()
S
71 2 6
LiveChat\Services\User::get_authorized_users()
S
66 2 9
LiveChat\Services\User::get_instance()
S
71 2 6
LiveChat\Services\User::authorize_current_user()
S
65 2 9
LiveChat\LiveChatAdmin::check_if_review_notice_was_dismissed()
S
71 2 6
LiveChat\LiveChatAdmin::plugin_activated_action_handler()
S
69 2 7
LiveChat\LiveChatAdmin::get_instance()
S
71 2 6
LiveChat\Services\ApiClient::create()
S
69 2 7
LiveChat\Services\ApiClient::get_request_url()
S
68 2 8
LiveChat\LiveChat::__construct()
S
67 2 8
LiveChat\Services\ConnectToken::get_token()
S
79 2 3
LiveChat\Helpers\ConnectServiceHelper::render()
S
58 1 14
LiveChat\LiveChatAdmin::__construct()
S
60 1 13
LiveChat\Helpers\ConfirmIdentityNoticeHelper::render()
S
62 1 11
LiveChat\LiveChat::has_license_number()
S
75 1 4
LiveChat\Services\CertProvider::create()
S
79 1 3
LiveChat\LiveChatAdmin::ajax_store_not_found()
S
78 1 4
LiveChat\Helpers\ResourcesTabHelper::create()
S
81 1 3
LiveChat\Services\User::remove_current_user_token()
S
81 1 3
LiveChat\Exceptions\InvalidTokenException::user()
S
80 1 3
LiveChat\Exceptions\ApiClientException::__construct()
S
78 1 3
LiveChat\Services\ApiClient::__construct()
S
74 1 5
LiveChat\Services\ApiClient::headers()
S
69 1 7
LiveChat\Exceptions\InvalidTokenException::__construct()
S
79 1 3
LiveChat\Services\ApiClient::get_cert()
S
65 1 9
LiveChat\Services\ApiClient::store_info()
S
79 1 3
LiveChat\LiveChatAdmin::has_user_token()
S
79 1 3
LiveChat\LiveChatAdmin::load_general_scripts_and_styles()
S
63 1 10
LiveChat\Services\ConnectToken::get_api_region()
S
80 1 3
LiveChat\LiveChatAdmin::ajax_user_not_found()
S
82 1 3
LiveChat\Services\ConnectToken::decode()
S
73 1 5
LiveChat\LiveChatAdmin::load_design_system_styles()
S
67 1 8
LiveChat\Services\CertProvider::remove_stored_cert()
S
80 1 3
LiveChat\LiveChatAdmin::livechat_resources_page()
S
82 1 3
LiveChat\LiveChatAdmin::show_connect_notice()
S
81 1 3
LiveChat\LiveChatAdmin::load_translations()
S
71 1 7
LiveChat\Services\ApiClient::license_info()
S
79 1 3
LiveChat\Helpers\ConnectServiceHelper::create()
S
70 1 7
LiveChat\Services\ConnectToken::get_user_uuid()
S
80 1 3
LiveChat\Services\User::remove_user_token()
S
79 1 3
LiveChat\LiveChatAdmin::show_review_notice()
S
81 1 3
LiveChat\Helpers\ConnectServiceHelper::__construct()
S
74 1 5
LiveChat\Services\ConnectTokenProvider::__construct()
S
77 1 4
LiveChat\LiveChatAdmin::changes_saved()
S
82 1 3
LiveChat\LiveChatAdmin::ajax_disconnect()
S
78 1 4
LiveChat\Services\Store::remove_store_data()
S
80 1 3
LiveChat\LiveChatAdmin::register_ajax_actions()
S
70 1 6
LiveChat\Services\Store::authorize_store()
S
79 1 3
LiveChat\Services\ConnectToken::get_store_uuid()
S
80 1 3
LiveChat\Helpers\LiveChatHelper::render()
S
100 1 0
LiveChat\Services\ConnectToken::load()
S
73 1 5
LiveChat\Services\ModuleConfiguration::get_wp_version()
S
82 1 3
LiveChat\LiveChatAdmin::get_offset_time()
S
79 1 3
LiveChat\Helpers\ResourcesTabHelper::render()
S
72 1 5
LiveChat\Services\ModuleConfiguration::get_app_url()
S
73 1 6
LiveChat\LiveChat::get_settings()
S
72 1 5
LiveChat\LiveChatAdmin::get_time_since_connection()
S
80 1 3
LiveChat\Services\ConnectToken::get_api_version()
S
80 1 3
LiveChat\LiveChatAdmin::inject_nonce_object()
S
70 1 6
LiveChat\Services\User::set_user_token()
S
78 1 3
LiveChat\LiveChatAdmin::livechat_settings_page()
S
82 1 3
LiveChat\Services\UrlProvider::get_widget_url()
S
69 1 7
LiveChat\LiveChatAdmin::load_review_scripts_and_styles()
S
73 1 4
LiveChat\Services\TemplateParser::create()
S
80 1 3
LiveChat\LiveChatAdmin::show_confirm_identity_notice()
S
81 1 3
LiveChat\Services\TokenValidator::__construct()
S
81 1 3
LiveChat\LiveChatAdmin::load_menu_icon_styles()
S
78 1 3
LiveChat\Services\User::__construct()
S
80 1 3
uninstall_hook_handler()
S
81 1 3
LiveChat\Services\ConnectToken::has_token()
S
81 1 3
LiveChat\LiveChatAdmin::ajax_review_dismiss()
S
73 1 5
LiveChat\Exceptions\HttpClientException::__construct()
S
78 1 3
LiveChat\Services\CertProvider::__construct()
S
77 1 4
LiveChat\Services\TokenValidator::validate_tokens()
S
74 1 5
LiveChat\Services\TokenValidator::create()
S
80 1 3
LiveChat\Services\ConnectTokenProvider::create()
S
72 1 6
LiveChat\Services\ConnectToken::set_token()
S
75 1 4
LiveChat\Services\UrlProvider::__construct()
S
81 1 3
LiveChat\Services\UrlProvider::create()
S
80 1 3
LiveChat\Services\ConnectToken::set_token_without_validation()
S
72 1 5
LiveChat\LiveChat::is_installed()
S
79 1 3
LiveChat\Exceptions\InvalidTokenException::store()
S
80 1 3
LiveChat\Services\TemplateParser::__construct()
S
78 1 3
LiveChat\LiveChatAdmin::ajax_review_postpone()
S
71 1 6
LiveChat\Services\ApiClient::uninstall()
S
79 1 3
LiveChat\Services\ModuleConfiguration::__construct()
S
77 1 4