Code Analysis: HubSpot All-In-One Marketing - Forms, Popups, Live Chat 8.9.22

Function Rating Maintainability Complexity Lines of code
Leadin\admin\Links::get_iframe_src()
A
42 14 51
PageHooks::leadin_add_hubspot_shortcode()
A
41 9 62
Leadin\admin\AdminConstants::get_hubspot_query_params_array()
A
44 9 45
Leadin\admin\DeactivationForm::add_feedback_form()
S
40 3 85
PageHooks::add_frontend_scripts()
S
54 7 22
Leadin\auth\OAuthCrypto::decrypt()
S
56 6 17
PageHooks::add_page_analytics()
S
54 5 23
Leadin\admin\ReviewBanner::leadin_render_review_banner()
S
44 2 64
Leadin\admin\LeadinAdmin::build_app()
S
52 4 30
Leadin\auth\OAuthCrypto::encrypt()
S
58 5 15
Leadin\admin\AdminConstants::get_leadin_config()
S
57 4 18
Leadin\admin\ReviewController::has_contacts_created_since_activation()
S
57 4 16
Leadin\admin\NoticeManager::should_show_review_notice()
S
67 5 7
Leadin\wp\Page::is_gutenberg_page()
S
63 5 10
Leadin\admin\LeadinAdmin::authorize()
S
61 4 13
Leadin\rest\HubSpotApiClient::make_request()
S
53 3 24
Leadin\admin\AdminConstants::get_background_leadin_config()
S
46 2 39
Leadin\admin\LeadinAdmin::check_review_requested()
S
66 4 9
Leadin\utils\QueryParameters::get_param()
S
64 4 10
Leadin\utils\QueryParameters::get_param_array()
S
63 4 10
Leadin\admin\NoticeManager::leadin_action_required_notice()
S
65 4 10
Leadin\rest\LeadinRestApi::proxy_request()
S
58 3 14
Leadin\admin\LeadinAdmin::__construct()
S
52 2 25
PageHooks::add_form_management_script()
S
57 1 37
Leadin\admin\LeadinAdmin::build_menu()
S
54 2 18
PageHooks::is_valid_uuid()
S
69 3 6
Leadin\admin\Impact::get_params()
S
64 3 10
PageHooks::is_elementor_preview_mode()
S
77 3 3
Leadin\admin\Links::get_routes_mapping()
S
50 1 30
Leadin\rest\LeadinRestApi::oauth_token_request()
S
58 2 15
Leadin\admin\Gutenberg::__construct()
S
63 3 10
Leadin\admin\IframeRoutes::get_oauth_path()
S
68 3 8
LeadinFilters::apply_hublet()
S
66 3 8
Leadin\admin\api\RegistrationApi::run()
S
59 2 14
Leadin\admin\api\GetPortalHubletApi::run()
S
61 2 13
Leadin\auth\OAuth::refresh_access_token()
S
61 2 13
Leadin\rest\HubSpotApiClient::get_contacts_from_timestamp()
S
52 1 27
Leadin\admin\Connection::disconnect()
S
61 2 12
Leadin\admin\PluginActionsManager::add_plugin_settings_link()
S
62 2 11
Leadin\admin\AdminConstants::get_utm_query_params_array()
S
63 2 11
Leadin\rest\LeadinRestApi::register_routes()
S
59 1 17
Leadin\admin\NoticeManager::leadin_render_disconnected_banner()
S
60 1 17
Leadin\auth\OAuthCrypto::get_salt()
S
71 2 6
Leadin\admin\Impact::get_affiliate_link()
S
65 2 9
Leadin\admin\api\ApiMiddlewares::validate_nonce()
S
70 2 6
Leadin::__construct()
S
70 2 7
Leadin\admin\AdminConstants::get_leadin_i18n()
S
58 1 15
Leadin\admin\LeadinAdmin::redirect_after_activation()
S
69 2 7
LeadinFilters::get_leadin_base_api_url()
S
71 2 5
PageHooks::__construct()
S
64 2 9
PageHooks::get_random_number_string()
S
68 2 7
Leadin\admin\api\ApiMiddlewares::admin_only()
S
72 2 5
Leadin\admin\LeadinAdmin::store_activation_time()
S
73 2 5
PageHooks::add_id_to_tracking_code()
S
70 2 6
Leadin\admin\LeadinAdmin::enqueue_scripts()
S
70 2 7
Leadin\admin\api\DisconnectApi::run()
S
68 2 8
Leadin\admin\Links::get_iframe_route()
S
74 2 4
Leadin\admin\Links::http_build_query()
S
69 2 6
Leadin\admin\Links::get_background_iframe_src()
S
64 2 9
Leadin\admin\Links::get_connection_src()
S
72 2 4
Leadin\admin\Connection::is_connection_requested()
S
71 2 5
Leadin\admin\api\TrackConsentApi::run()
S
65 2 9
Leadin\admin\api\UpdateHubletApi::run()
S
63 2 10
Leadin\admin\Connection::add_metadata()
S
68 2 7
Leadin\admin\NoticeManager::should_show_disconnected_notice()
S
74 2 4
Leadin\utils\Versions::parse_version()
S
68 2 7
Leadin\admin\PluginActionsManager::leadin_plugin_advanced_features_link()
S
63 2 9
Leadin\wp\Options::create_key()
S
74 2 4
Leadin\admin\AdminConstants::get_utm_campaign()
S
71 2 6
Leadin\admin\ReviewController::should_fetch_contacts()
S
63 2 10
Leadin\wp\User::get_role()
S
64 2 10
Leadin\auth\OAuth::get_access_token()
S
71 2 6
Leadin\auth\OAuth::get_refresh_token()
S
68 2 7
Leadin\auth\OAuthCrypto::get_key()
S
71 2 6
Leadin\admin\Routing::redirect()
S
60 1 14
Leadin\rest\HubSpotApiClient::get_portal_details()
S
62 1 12
Leadin\utils\QueryParameters::get_parameters()
S
63 1 12
Leadin\rest\LeadinRestApi::register_leadin_route()
S
64 1 11
ConnectionTest::test_disconnect()
S
63 1 11
Leadin\admin\Connection::oauth_connect()
S
63 1 11
Leadin\admin\AdminConstants::get_signup_prefill_params_array()
S
63 1 11
Leadin\admin\Gutenberg::add_hubspot_category()
S
64 1 11
AssetsManager::register_assets()
S
61 1 11
Leadin\wp\Options::update()
S
78 1 3
Leadin\admin\Links::get_query_params()
S
72 1 5
Leadin\admin\Connection::is_new_portal()
S
74 1 4
Leadin\utils\Versions::is_wp_version_supported()
S
75 1 4
Leadin\options\AccountOptions::add_portal_domain()
S
79 1 3
OptionsTest::test_add_should_create_new_options()
S
71 1 6
Leadin\utils\Versions::is_version_less_than()
S
78 1 3
Leadin\options\AccountOptions::get_account_name()
S
80 1 3
OptionsTest::test_get_should_retrieve_options()
S
76 1 4
Leadin\admin\Connection::is_disconnection_requested()
S
75 1 4
Leadin\options\AccountOptions::get_portal_id()
S
80 1 3
Leadin\admin\PluginActionsManager::__construct()
S
75 1 4
Leadin\admin\AdminConstants::is_odyssey_enabled()
S
79 1 3
Leadin\admin\Connection::delete_metadata()
S
72 1 5
Leadin\wp\Page::is_dashboard()
S
75 1 4
Leadin\admin\Connection::connect()
S
72 1 5
Leadin\wp\User::get_metadata()
S
78 1 3
Leadin\wp\Website::get_ajax_url()
S
80 1 3
OAuthCryptoTest::test_encrypt()
S
69 1 7
Leadin\admin\ReviewController::has_min_contacts()
S
80 1 3
Leadin\admin\AdminUserMetaData::get_skip_review()
S
80 1 3
Leadin\admin\Routing::has_just_connected_with_oauth()
S
68 1 8
Leadin\admin\Routing::is_new_portal_with_oauth()
S
68 1 8
Leadin\admin\Routing::is_oauth_expired()
S
68 1 8
Leadin\admin\Routing::has_review_request()
S
69 1 7
Leadin\admin\Routing::is_review_request()
S
69 1 7
Leadin\admin\utils\DeviceId::get()
S
72 1 5
Leadin\auth\OAuth::is_enabled()
S
79 1 3
Leadin\auth\OAuth::authorize()
S
69 1 6
Leadin\auth\OAuth::deauthorize()
S
74 1 5
Leadin\admin\AdminConstants::get_signup_query_params_array()
S
65 1 9
ConnectionTest::setUp()
S
77 1 4
Leadin\auth\OAuth::get_expiry_time()
S
80 1 3
Leadin\auth\OAuth::is_access_token_expired()
S
72 1 5
Leadin\admin\Gutenberg::register_gutenberg_block()
S
68 1 9
Leadin\admin\api\ApiGenerator::__construct()
S
72 1 5
Leadin\wp\FileSystem::file_exists()
S
79 1 3
Leadin\admin\IframeRoutes::get_base_connected_path()
S
75 1 4
LeadinOptionsTest::test_get_should_retrieve_options()
S
65 1 9
Leadin\admin\IframeRoutes::get_expired_path()
S
79 1 3
AssetsManager::enqueue_admin_assets()
S
77 1 4
AssetsManager::enqueue_feedback_assets()
S
77 1 4
AssetsManager::enqueue_bridge_assets()
S
77 1 4
AssetsManager::enqueue_script_loader()
S
65 1 8
Leadin\admin\LeadinAdmin::load_languages()
S
79 1 3
Leadin\admin\Connection::is_connected()
S
79 1 3
Leadin\admin\Links::get_page_id()
S
75 1 4
Leadin\utils\RequestUtils::send_error_message()
S
68 1 8
ConnectionTest::test_connect()
S
66 1 8
Leadin\rest\HubSpotApiClient::refresh_access_token()
S
71 1 5
Leadin\options\AccountOptions::delete_portal_domain()
S
80 1 3
Leadin\utils\Versions::get_php_version()
S
79 1 3
Leadin\admin\AdminFilters::apply_connect_plugin_capability()
S
79 1 3
Leadin\admin\DeactivationForm::__construct()
S
79 1 3
Leadin\options\AccountOptions::add_hublet()
S
79 1 3
Leadin\options\AccountOptions::update_hublet()
S
79 1 3
Leadin\admin\AdminUserMetaData::get_has_min_contacts()
S
80 1 3
Leadin\admin\IframeRoutes::get_just_connected_path()
S
79 1 3
Leadin\rest\LeadinRestApi::healthcheck_request()
S
82 1 3
AssetsManager::enqueue_forms_script()
S
68 1 9
AssetsManager::localize_gutenberg()
S
71 1 5
LeadinFilters::get_leadin_hublet()
S
79 1 3
Leadin\wp\Options::get()
S
78 1 3
Leadin\rest\LeadinRestApi::verify_permissions()
S
80 1 3
Leadin\admin\Connection::delete_portal_info()
S
72 1 6
Leadin\admin\AdminConstants::get_connection_nonce()
S
80 1 3
Leadin\options\AccountOptions::get_portal_domain()
S
80 1 3
LeadinFilters::get_leadin_app_prefix()
S
78 1 3
Leadin\admin\Links::get_iframe_search_string()
S
79 1 3
Leadin\options\AccountOptions::delete_hublet()
S
80 1 3
Leadin\utils\RequestUtils::send_json()
S
79 1 3
Leadin\options\AccountOptions::delete_portal_id()
S
80 1 3
Leadin\admin\LeadinAdmin::do_redirect_action()
S
80 1 3
Leadin\admin\LeadinAdmin::set_redirect_transient()
S
79 1 3
Leadin\admin\AdminFilters::apply_view_plugin_menu_capability()
S
79 1 3
Leadin\admin\Links::is_static_version_valid()
S
75 1 4
LeadinFilters::get_leadin_domain()
S
79 1 3
Leadin\admin\Impact::has_params()
S
78 1 3
LeadinFilters::get_leadin_api_prefix()
S
78 1 3
Leadin\options\HubspotOptions::get_wpe_template()
S
80 1 3
OptionsTest::test_delete_should_remove_options()
S
73 1 5
Leadin\wp\Options::add()
S
78 1 3
Leadin\options\AccountOptions::add_account_name()
S
79 1 3
Leadin\rest\HubSpotApiClient::authenticated_request()
S
67 1 9
LeadinFilters::get_leadin_signup_base_url()
S
74 1 4
Leadin\admin\AdminUserMetaData::set_review_banner_last_call()
S
79 1 3
Leadin\admin\LeadinAdmin::do_activate_action()
S
80 1 3
Leadin\rest\HubSpotApiClient::get_default_headers()
S
79 1 3
VersionsTest::test_is_version_less_than()
S
70 1 6
Leadin\utils\Versions::is_php_version_supported()
S
78 1 3
Leadin\rest\LeadinRestApi::__construct()
S
72 1 6
LeadinFilters::get_leadin_base_url()
S
71 1 5
Leadin\admin\AdminUserMetaData::get_review_banner_last_call()
S
80 1 3
Leadin\admin\ReviewController::is_after_introductary_period()
S
69 1 6
Leadin\options\AccountOptions::delete_account_name()
S
80 1 3
ConnectionTest::tearDown()
S
81 1 3
OptionsTest::test_update_should_update_existing_options()
S
67 1 8
Leadin\wp\User::is_admin()
S
80 1 3
PageHooks::generate_div_uuid()
S
78 1 3
Leadin\admin\NoticeManager::__construct()
S
79 1 3
Leadin\wp\User::delete_metadata()
S
79 1 3
Leadin\rest\HubSpotApiClient::get_oauth_headers()
S
78 1 3
OptionsTest::tearDown()
S
81 1 3
Leadin\wp\Options::delete()
S
78 1 3
LeadinFilters::get_leadin_forms_script_url()
S
74 1 4
LeadinFilters::get_leadin_script_loader_domain()
S
74 1 4
Leadin\admin\Links::get_login_url()
S
74 1 4
Leadin\utils\RequestUtils::send()
S
79 1 3
Leadin\utils\RequestUtils::send_message()
S
69 1 8
Leadin\options\AccountOptions::add_portal_id()
S
79 1 3
Leadin\admin\AdminUserMetaData::get_track_consent()
S
80 1 3
Leadin\admin\Connection::store_portal_info()
S
71 1 6
Leadin\admin\AdminUserMetaData::set_has_min_contacts()
S
79 1 3
Leadin\utils\Versions::get_wp_version()
S
76 1 4
_manually_load_plugin()
S
79 1 3
Leadin\wp\Website::get_url()
S
80 1 3
Leadin\admin\AdminUserMetaData::set_track_consent()
S
79 1 3
Leadin\admin\api\SkipReviewApi::run()
S
81 1 3
Leadin\wp\Website::get_theme()
S
80 1 3
OAuthTest::test_refresh_empty_access_token()
S
67 1 8
Leadin\wp\User::set_metadata()
S
79 1 3
Leadin\wp\FileSystem::get_absolute_path()
S
79 1 3
Leadin\admin\AdminUserMetaData::set_skip_review()
S
79 1 3
Leadin\admin\ReviewController::is_reviewed_or_skipped()
S
79 1 3
Leadin\options\AccountOptions::get_hublet()
S
80 1 3
LeadinFilters::get_leadin_forms_payload()
S
79 1 3