Code Analysis: LiveChat WooCommerce 2.1.2

Function Rating Maintainability Complexity Lines of code
WooLiveChat\Drivers\HttpClient::request()
A
51 10 24
WooLiveChat\Services\Templates\TrackingCodeTemplate::render()
S
55 7 19
WooLiveChat\Services\SettingsProvider::ajax_connect()
S
51 6 26
WooLiveChat\Services\User::get_user_data()
S
52 5 28
WooLiveChat\Services\MenuProvider::register_admin_menu()
S
47 4 41
WooLiveChat\Services\WidgetProvider::ajax_get_customer_tracking()
S
53 5 24
WooLiveChat\Services\ApiClient::make_request()
S
57 5 17
WooLiveChat\Services\Options\Deprecated\DeprecatedOptions::clear()
S
67 6 8
WooLiveChat\Services\WidgetProvider::set_widget()
S
54 4 24
WooLiveChat\Services\Notifications\ReviewNotice::should_render()
S
68 5 7
WooLiveChat\Services\User::remove_authorized_users()
S
63 4 11
WooLiveChat\Services\WidgetProvider::get_cart_content()
S
55 3 19
WooLiveChat\LiveChatAdmin::woo_uninstall_hook_handler()
S
59 3 14
WooLiveChat\LiveChatAdmin::init_services()
S
62 3 13
WooLiveChat\Services\LicenseProvider::get_license_number()
S
63 3 11
WooLiveChat\Services\CertProvider::get_stored_cert()
S
64 3 11
WooLiveChat\Services\ConnectToken::get_from_token()
S
72 3 5
WooLiveChat\Services\Notifications\ConfirmIdentityNotice::should_render()
S
73 3 5
WooLiveChat\Services\Notifications\ConnectNotice::should_render()
S
73 3 5
WooLiveChat\Services\Notifications\ReviewNotice::is_license_active()
S
66 3 8
WooLiveChat\Services\SettingsProvider::ajax_widget_script_updated()
S
63 3 10
WooLiveChat\LiveChat::init_services()
S
64 3 10
WooLiveChat\Services\Options\ReviewNoticeOptions::clear()
S
74 3 5
WooLiveChat\Services\TokenValidator::validate_store_token()
S
70 3 6
WooLiveChat\Services\TokenValidator::validate_user_token()
S
70 3 6
WooLiveChat\Services\Options\Deprecated\DeprecatedWidgetSettings::extract_widget_options()
S
64 3 10
WooLiveChat\Services\User::check_logged()
S
70 3 6
WooLiveChat\Services\UrlProvider::get_api_url()
S
65 3 9
WooLiveChat\Services\WidgetProvider::get_instance()
S
61 2 14
WooLiveChat\Services\Templates\DeactivationModalTemplate::render()
S
50 1 28
WooLiveChat\Services\TemplateParser::parse_template()
S
61 2 13
WooLiveChat\Services\SettingsProvider::get_instance()
S
63 2 12
WooLiveChat\Services\MenuProvider::get_instance()
S
63 2 12
WooLiveChat\Services\ConnectTokenProvider::get()
S
64 2 11
WooLiveChat\Services\Templates\ReviewNoticeTemplate::render()
S
54 1 22
WooLiveChat\Services\WidgetProvider::get_shipping_address()
S
57 1 22
WooLiveChat\Services\Templates\SettingsTemplate::render()
S
56 1 17
WooLiveChat\Services\Templates\PluginsConflictNoticeTemplate::render()
S
57 1 16
WooLiveChat\Services\ModuleConfiguration::get_plugin_url()
S
71 2 6
WooLiveChat\LiveChatAdmin::plugin_activated_action_handler()
S
69 2 7
WooLiveChat\Services\ModuleConfiguration::get_plugin_version()
S
70 2 6
WooLiveChat\Services\ModuleConfiguration::get_site_url()
S
72 2 6
WooLiveChat\Services\ConnectToken::get_token()
S
79 2 3
WooLiveChat\Services\Factories\ApiClientFactory::create()
S
66 2 9
WooLiveChat\Services\Factories\UrlProviderFactory::create()
S
66 2 9
WooLiveChat\Services\ModuleConfiguration::get_instance()
S
71 2 6
WooLiveChat\Services\Factories\ConnectTokenProviderFactory::create()
S
71 2 6
WooLiveChat\Services\NotificationsRenderer::init()
S
70 2 6
WooLiveChat\LiveChat::get_instance()
S
71 2 6
WooLiveChat\Services\Notifications\Notification::is_user_on_page()
S
74 2 4
WooLiveChat\Services\Notifications\Notification::render()
S
75 2 5
WooLiveChat\Services\ApiClient::get_request_url()
S
68 2 8
WooLiveChat\Services\Options\Option::__construct()
S
69 2 7
WooLiveChat\Services\Notifications\ReviewNotice::enqueue_scripts_and_styles()
S
61 1 15
WooLiveChat\Services\LicenseProvider::get_deprecated_license_number()
S
72 2 6
WooLiveChat\Services\Options\OptionsSet::__construct()
S
73 2 5
WooLiveChat\Services\SetupProvider::get_instance()
S
68 2 7
WooLiveChat\LiveChatAdmin::auto_update()
S
79 2 3
WooLiveChat\Services\Options\ReviewNoticeOptions::postpone()
S
79 2 3
WooLiveChat\Services\Store::get_store_token()
S
70 2 7
WooLiveChat\Services\Options\ReviewNoticeOptions::start()
S
79 2 3
WooLiveChat\Services\Store::get_instance()
S
71 2 6
WooLiveChat\Services\TemplateParser::replacer()
S
77 2 3
WooLiveChat\Services\TemplateParser::get_template_file_contents()
S
74 2 4
WooLiveChat\Services\TokenValidator::validate_jwt_token()
S
65 2 10
WooLiveChat\Services\ApiClient::create()
S
69 2 7
WooLiveChat\Services\Options\Deprecated\DeprecatedWidgetSettings::get()
S
69 2 7
WooLiveChat\Services\MenuProvider::livechat_settings_link()
S
66 2 8
WooLiveChat\Services\UrlProvider::get_app_url()
S
71 2 6
WooLiveChat\Services\Templates\ConnectNoticeTemplate::render()
S
58 1 15
WooLiveChat\Services\Templates\SettingsTemplate::get_app_url()
S
66 2 8
WooLiveChat\Services\MenuProvider::go_to_livechat_link()
S
72 2 6
WooLiveChat\LiveChatAdmin::get_instance()
S
71 2 6
WooLiveChat\Services\User::get_authorized_users()
S
68 2 8
WooLiveChat\Services\Templates\TrackingCodeTemplate::check_mobile()
S
71 2 5
WooLiveChat\Services\ModuleConfiguration::get_woo_version()
S
79 2 3
WooLiveChat\Services\User::authorize_current_user()
S
68 2 7
WooLiveChat\Services\User::get_current_user_token()
S
69 2 7
WooLiveChat\Services\User::get_instance()
S
71 2 6
WooLiveChat\Services\Options\Deprecated\DeprecatedOptions::__construct()
S
62 1 12
WooLiveChat\Services\WidgetProvider::get_url_from_token()
S
63 1 12
WooLiveChat\Services\Templates\CustomerTrackingTemplate::render()
S
63 1 11
WooLiveChat\Services\Templates\ConfirmIdentityNoticeTemplate::render()
S
62 1 11
WooLiveChat\LiveChatAdmin::__construct()
S
64 1 11
WooLiveChat\LiveChat::__construct()
S
64 1 11
WooLiveChat\Services\Templates\Template::render()
S
100 1 0
WooLiveChat\Services\Store::authorize_store()
S
80 1 3
WooLiveChat\Services\Store::remove_store_data()
S
81 1 3
WooLiveChat\Services\MenuProvider::has_user_token()
S
80 1 3
WooLiveChat\Services\Store::is_connected()
S
80 1 3
WooLiveChat\Services\LicenseProvider::create()
S
72 1 6
WooLiveChat\Services\TemplateParser::__construct()
S
78 1 3
WooLiveChat\Services\MenuProvider::__construct()
S
69 1 7
WooLiveChat\Services\Options\ReviewNoticeOffset::get()
S
80 1 3
WooLiveChat\Services\MenuProvider::init()
S
79 1 3
WooLiveChat\Services\TemplateParser::create()
S
80 1 3
WooLiveChat\Services\Templates\ResourcesTabTemplate::render()
S
72 1 5
WooLiveChat\Services\User::remove_current_user_token()
S
80 1 3
WooLiveChat\Services\MenuProvider::livechat_settings_page()
S
82 1 3
WooLiveChat\Services\Templates\SettingsTemplate::__construct()
S
67 1 8
WooLiveChat\Services\TokenValidator::validate_tokens()
S
74 1 5
WooLiveChat\Services\MenuProvider::livechat_resources_page()
S
82 1 3
WooLiveChat\Services\Options\UserOption::set()
S
78 1 3
WooLiveChat\Services\Options\ReadableOption::remove()
S
80 1 3
WooLiveChat\Services\TokenValidator::__construct()
S
81 1 3
WooLiveChat\Services\Options\Deprecated\DeprecatedReviewNoticeDismissed::get()
S
80 1 3
WooLiveChat\Services\Options\Deprecated\DeprecatedReviewNoticeTimestamp::__construct()
S
79 1 3
WooLiveChat\Services\Options\Deprecated\DeprecatedReviewNoticeOffset::get()
S
80 1 3
WooLiveChat\Services\Options\Deprecated\DeprecatedReviewNoticeTimestamp::get()
S
80 1 3
WooLiveChat\Exceptions\InvalidTokenException::user()
S
80 1 3
WooLiveChat\Services\User::set_user_token()
S
79 1 3
WooLiveChat\Services\Templates\TrackingCodeTemplate::create()
S
67 1 9
WooLiveChat\Services\ModuleConfiguration::__construct()
S
77 1 4
WooLiveChat\Services\CertProvider::create()
S
70 1 7
WooLiveChat\Services\ModuleConfiguration::get_wp_version()
S
82 1 3
WooLiveChat\Services\Options\Deprecated\DeprecatedLicenseEmail::__construct()
S
80 1 3
WooLiveChat\Services\WidgetProvider::__construct()
S
65 1 9
WooLiveChat\Services\ConnectToken::set_token()
S
75 1 4
WooLiveChat\Exceptions\HttpClientException::__construct()
S
78 1 3
WooLiveChat\Services\Templates\Template::__construct()
S
81 1 3
WooLiveChat\Services\WidgetProvider::is_widget_url_valid()
S
79 1 3
WooLiveChat\Services\ConnectToken::has_token()
S
81 1 3
WooLiveChat\Services\Templates\TrackingCodeTemplate::__construct()
S
68 1 7
WooLiveChat\Services\User::__construct()
S
76 1 4
WooLiveChat\Services\Factories\ApiClientFactory::__construct()
S
81 1 3
WooLiveChat\Services\ModuleConfiguration::get_app_url()
S
73 1 6
WooLiveChat\Services\Factories\ApiClientFactory::get_instance()
S
80 1 3
WooLiveChat\Services\Notifications\ReviewNotice::get_offset_time()
S
79 1 3
WooLiveChat\Services\Factories\ConnectTokenProviderFactory::get_instance()
S
81 1 3
WooLiveChat\Services\Factories\UrlProviderFactory::__construct()
S
81 1 3
WooLiveChat\Services\ApiClient::__construct()
S
74 1 5
WooLiveChat\Services\Factories\UrlProviderFactory::get_instance()
S
80 1 3
WooLiveChat\Services\Notifications\ConfirmIdentityNotice::__construct()
S
79 1 3
WooLiveChat\Services\NotificationsRenderer::get_instance()
S
66 1 10
WooLiveChat\Services\Notifications\ConnectNotice::__construct()
S
79 1 3
WooLiveChat\Services\NotificationsRenderer::get_instance_for_plugins_conflict()
S
80 1 3
WooLiveChat\Services\Notifications\DeactivationModal::__construct()
S
78 1 3
WooLiveChat\Services\Notifications\DeactivationModal::should_render()
S
80 1 3
WooLiveChat\Services\Notifications\Notification::__construct()
S
69 1 7
WooLiveChat\Services\Notifications\Notification::get_render_hook()
S
82 1 3
WooLiveChat\Services\Notifications\Notification::get_register_hook()
S
82 1 3
WooLiveChat\Services\LicenseProvider::has_deprecated_license_number()
S
75 1 4
WooLiveChat\Services\ConnectTokenProvider::__construct()
S
77 1 4
WooLiveChat\Services\SettingsProvider::__construct()
S
69 1 7
WooLiveChat\Services\ConnectToken::load()
S
73 1 5
WooLiveChat\Services\Notifications\ReviewNotice::ajax_review_dismiss()
S
76 1 4
WooLiveChat\Services\Options\PublicKey::__construct()
S
80 1 3
WooLiveChat\Services\SetupProvider::__construct()
S
77 1 4
WooLiveChat\Services\SettingsProvider::ajax_store_not_found()
S
78 1 4
WooLiveChat\Services\ConnectTokenProvider::create()
S
72 1 6
WooLiveChat\Services\Options\Deprecated\DeprecatedLicenseNumber::__construct()
S
80 1 3
WooLiveChat\Services\SetupProvider::load_general_scripts_and_styles()
S
63 1 10
WooLiveChat\Services\SetupProvider::load_menu_icon_styles()
S
78 1 3
WooLiveChat\Services\Options\AuthorizedUsers::__construct()
S
80 1 3
WooLiveChat\Services\UrlProvider::__construct()
S
81 1 3
WooLiveChat\Services\Notifications\ReviewNotice::get_instance()
S
67 1 9
WooLiveChat\Services\Notifications\PluginsConflictNotice::__construct()
S
79 1 3
WooLiveChat\Services\Templates\CustomerTrackingTemplate::create()
S
72 1 6
WooLiveChat\Services\Options\ReviewNoticeTimestamp::set_current()
S
80 1 3
WooLiveChat\Services\Options\ReviewNoticeTimestamp::get()
S
80 1 3
WooLiveChat\Services\Notifications\ReviewNotice::ajax_review_postpone()
S
76 1 4
WooLiveChat\Services\Templates\SettingsTemplate::create()
S
65 1 10
WooLiveChat\Services\Options\Deprecated\DeprecatedReviewNoticeOffset::__construct()
S
79 1 3
WooLiveChat\Services\Options\ReviewNoticeTimestamp::__construct()
S
79 1 3
WooLiveChat\Services\ConnectToken::get_user_uuid()
S
80 1 3
WooLiveChat\Services\Notifications\Notification::was_migrated()
S
79 1 3
WooLiveChat\Services\Templates\Template::create()
S
79 1 3
WooLiveChat\Services\Notifications\ReviewNotice::get_time_since_connection()
S
80 1 3
WooLiveChat\Services\ConnectToken::get_api_version()
S
80 1 3
WooLiveChat\Services\Options\UserOption::get()
S
78 1 3
WooLiveChat\Services\Options\ReviewNoticeDismissed::get()
S
80 1 3
WooLiveChat\Services\Options\ReviewNoticeOffset::__construct()
S
79 1 3
WooLiveChat\Services\NotificationsRenderer::__construct()
S
81 1 3
WooLiveChat\Services\ConnectToken::get_store_uuid()
S
80 1 3
WooLiveChat\Services\Options\Deprecated\DeprecatedWidgetSettings::__construct()
S
80 1 3
WooLiveChat\Services\Notifications\PluginsConflictNotice::should_render()
S
82 1 3
WooLiveChat\Services\Options\Deprecated\DeprecatedReviewNoticeDismissed::__construct()
S
79 1 3
WooLiveChat\Services\Options\ReadableOption::get()
S
79 1 3
WooLiveChat\Services\UrlProvider::create()
S
80 1 3
WooLiveChat\Services\TokenValidator::create()
S
80 1 3
WooLiveChat\Exceptions\ApiClientException::__construct()
S
78 1 3
WooLiveChat\Services\Options\SettingsOptions::__construct()
S
66 1 9
WooLiveChat\Services\Notifications\Notification::get_instance()
S
79 1 3
WooLiveChat\Services\CertProvider::remove_stored_cert()
S
81 1 3
WooLiveChat\Services\Options\ReviewNoticeOptions::__construct()
S
66 1 9
WooLiveChat\Services\Options\ReviewNoticeOptions::dismiss()
S
80 1 3
WooLiveChat\Services\ConnectToken::get_api_region()
S
80 1 3
WooLiveChat\Services\Options\UserAuthOptions::__construct()
S
68 1 8
WooLiveChat\Services\Store::__construct()
S
81 1 3
WooLiveChat\Services\SetupProvider::inject_nonce_object()
S
70 1 6
WooLiveChat\Services\CertProvider::__construct()
S
74 1 5
WooLiveChat\Services\Options\ReviewNoticeDismissed::__construct()
S
79 1 3
WooLiveChat\Services\Options\OptionsSet::get_instance()
S
81 1 3
WooLiveChat\Services\Notifications\Notification::register()
S
98 1 1
WooLiveChat\Services\Options\UserToken::__construct()
S
80 1 3
WooLiveChat\Services\Templates\CustomerTrackingTemplate::__construct()
S
76 1 4
WooLiveChat\Services\ApiClient::get_cert()
S
65 1 9
WooLiveChat\Services\Options\Option::get_instance()
S
81 1 3
WooLiveChat\Services\Options\UserOption::remove()
S
79 1 3
WooLiveChat\Services\SetupProvider::init()
S
70 1 6
WooLiveChat\Services\SetupProvider::load_design_system_styles()
S
67 1 8
woo_uninstall_hook_handler()
S
81 1 3
WooLiveChat\Services\Notifications\Notification::should_render()
S
82 1 3
WooLiveChat\Exceptions\InvalidTokenException::__construct()
S
79 1 3
WooLiveChat\Services\SettingsProvider::init()
S
68 1 7
WooLiveChat\Services\LicenseProvider::__construct()
S
77 1 4
WooLiveChat\Services\SetupProvider::load_translations()
S
71 1 7
WooLiveChat\Services\SettingsProvider::render()
S
82 1 3
WooLiveChat\Services\ApiClient::headers()
S
69 1 7
WooLiveChat\Services\Options\ReviewNoticeOptions::is_dismissed()
S
81 1 3
WooLiveChat\Services\Options\AuthorizedUsers::get()
S
79 1 3
WooLiveChat\Exceptions\InvalidTokenException::store()
S
80 1 3
WooLiveChat\Services\Options\StoreToken::__construct()
S
80 1 3
WooLiveChat\Services\SettingsProvider::ajax_user_not_found()
S
82 1 3
WooLiveChat\Services\ApiClient::license_info()
S
79 1 3
WooLiveChat\Services\Notifications\ReviewNotice::__construct()
S
66 1 8
WooLiveChat\Services\Options\WidgetURL::__construct()
S
80 1 3
WooLiveChat\Services\Options\AuthorizedUsers::set()
S
78 1 3
WooLiveChat\Services\ApiClient::uninstall()
S
79 1 3
WooLiveChat\Services\ApiClient::store_info()
S
79 1 3
WooLiveChat\Services\MenuProvider::is_installed()
S
80 1 3
WooLiveChat\Services\Options\WritableOption::set()
S
79 1 3
WooLiveChat\Services\Notifications\ReviewNotice::register()
S
79 1 3
WooLiveChat\Services\Options\Deprecated\DeprecatedOptions::was_review_notice_dismissed()
S
81 1 3
WooLiveChat\Services\SettingsProvider::ajax_disconnect()
S
78 1 4