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

Function Rating Maintainability Complexity Lines of code
Leadin\admin\ContentEmbedInstaller::wp_ajax_install_content_embed()
B
37 17 72
Leadin\admin\Links::get_iframe_src()
B
42 17 45
Leadin\PageHooks::add_frontend_scripts()
A
53 8 22
Leadin\admin\AdminConstants::get_hubspot_query_params_array()
S
47 6 34
Leadin\utils\ShortcodeRenderUtils::render_cta()
S
49 6 33
Leadin\utils\ShortcodeRenderUtils::render_form()
S
50 6 31
Leadin\admin\DeactivationForm::add_feedback_form()
S
42 3 74
Leadin\PageHooks::add_page_analytics()
S
50 6 28
Leadin\auth\OAuthCrypto::decrypt()
S
56 6 17
Leadin\admin\AdminConstants::get_background_leadin_config()
S
45 4 40
Leadin\admin\ReviewBanner::leadin_render_review_banner()
S
44 2 62
Leadin\admin\LeadinAdmin::authorize()
S
58 5 16
Leadin\auth\OAuthCrypto::encrypt()
S
58 5 15
Leadin\admin\LeadinAdmin::render_app()
S
53 4 30
Leadin\utils\ShortcodeRenderUtils::render_shortcode()
S
59 5 15
Leadin\admin\widgets\ElementorForm::render()
S
54 4 23
Leadin\admin\widgets\ElementorMeeting::render()
S
56 4 22
Leadin\admin\ReviewController::has_contacts_created_since_activation()
S
57 4 17
Leadin\admin\LeadinAdmin::register_document_controls()
S
50 3 30
Leadin\wp\Page::is_gutenberg_page()
S
63 5 10
Leadin\admin\AdminConstants::get_leadin_config()
S
62 4 12
Leadin\admin\NoticeManager::leadin_action_required_notice()
S
64 4 11
Leadin\data\Filters::apply_page_content_type_filters()
S
63 4 10
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\auth\OAuth::get_refresh_token()
S
61 3 13
Leadin\AssetsManager::enqueue_script_loader()
S
60 3 12
Leadin\admin\api\User_Meta_Api_Controller::track_consent()
S
62 3 11
Leadin\admin\ContentEmbedInstaller::is_content_embed_active_installed()
S
53 2 26
Leadin\utils\ShortcodeRenderUtils::render_meeting()
S
56 2 21
Leadin\admin\LeadinAdmin::build_menu()
S
54 2 18
Leadin\admin\Connection::disconnect()
S
58 2 16
Leadin\data\Filters::resolve_hublet()
S
66 3 8
Leadin\utils\ShortcodeRenderUtils::is_valid_uuid()
S
69 3 6
Leadin\admin\Impact::get_params()
S
64 3 10
Leadin\auth\OAuth::is_valid_value()
S
78 3 3
Leadin\admin\NoticeManager::should_show_review_notice()
S
69 3 6
Leadin\admin\AdminConstants::get_utm_query_params_array()
S
63 2 11
Leadin\admin\PluginActionsManager::add_plugin_settings_link()
S
62 2 11
Leadin\admin\Links::get_routes_mapping()
S
52 1 25
Leadin\admin\LeadinAdmin::__construct()
S
56 1 18
Leadin\admin\NoticeManager::leadin_render_disconnected_banner()
S
60 1 17
Leadin\admin\widgets\ElementorForm::register_controls()
S
59 1 16
Leadin\admin\widgets\ElementorMeeting::register_controls()
S
59 1 16
Leadin\admin\PluginActionsManager::leadin_plugin_advanced_features_link()
S
63 2 9
Leadin\Leadin::__construct()
S
65 2 9
Leadin\PageHooks::__construct()
S
63 2 10
Leadin\PageHooks::register_content_type_meta()
S
60 1 15
Leadin\admin\ReviewController::should_fetch_contacts()
S
64 2 10
Leadin\PageHooks::add_id_to_tracking_code()
S
70 2 6
Leadin\admin\AdminConstants::get_utm_campaign()
S
70 2 6
Leadin\PageHooks::add_defer_to_forms_script()
S
70 2 6
Leadin\data\Filters::apply_base_url_filters()
S
70 2 5
Leadin\admin\api\Hublet_Api_Controller::update_hublet()
S
64 2 9
Leadin\data\Filters::apply_base_api_url_filters()
S
70 2 5
Leadin\admin\LeadinAdmin::redirect_after_activation()
S
69 2 7
Leadin\admin\ContentEmbedInstaller::__construct()
S
73 2 5
Leadin\admin\LeadinAdmin::store_activation_time()
S
74 2 5
Leadin\admin\LeadinAdmin::enqueue_scripts()
S
70 2 7
Leadin\admin\Connection::is_connection_requested()
S
71 2 5
Leadin\admin\Connection::is_connected()
S
78 2 3
Leadin\admin\Links::get_iframe_route()
S
74 2 4
Leadin\admin\Links::http_build_query()
S
70 2 6
Leadin\data\User::get_role()
S
64 2 10
Leadin\admin\Gutenberg::__construct()
S
68 2 7
Leadin\utils\ShortcodeRenderUtils::get_random_number_string()
S
68 2 7
Leadin\utils\Versions::parse_version()
S
68 2 7
Leadin\admin\NoticeManager::should_show_disconnected_notice()
S
74 2 4
Leadin\auth\OAuthCrypto::get_key()
S
71 2 6
Leadin\auth\OAuthCrypto::get_salt()
S
71 2 6
Leadin\admin\Connection::add_metadata()
S
68 2 7
Leadin\admin\Routing::redirect()
S
60 1 14
Leadin\admin\api\Internal_Tracking_Api_Controller::__construct()
S
64 1 12
Leadin\admin\api\Portal_Api_Controller::__construct()
S
64 1 12
Leadin\admin\api\User_Meta_Api_Controller::__construct()
S
64 1 12
Leadin\utils\QueryParameters::get_parameters()
S
63 1 12
Leadin\admin\Connection::oauth_connect()
S
63 1 11
Leadin\api\Base_Api_Controller::register_leadin_route()
S
64 1 11
Leadin\api\Base_Api_Controller::register_leadin_admin_route()
S
64 1 11
Leadin\admin\Gutenberg::add_hubspot_category()
S
64 1 11
Leadin\admin\AdminConstants::get_content_embed_config()
S
63 1 11
Leadin\data\User_Metadata::get_has_min_contacts()
S
80 1 3
Leadin\admin\api\Portal_Api_Controller::set_business_unit_option()
S
69 1 6
Leadin\admin\AdminConstants::get_signup_query_params_array()
S
66 1 8
Leadin\admin\api\User_Meta_Api_Controller::skip_review()
S
75 1 4
Leadin\auth\OAuth::authorize()
S
73 1 5
Leadin\admin\widgets\ElementorForm::get_name()
S
82 1 3
Leadin\admin\widgets\ElementorForm::get_title()
S
80 1 3
Leadin\admin\widgets\ElementorForm::get_icon()
S
82 1 3
Leadin\admin\widgets\ElementorForm::get_custom_help_url()
S
82 1 3
Leadin\admin\widgets\ElementorForm::get_categories()
S
80 1 3
Leadin\admin\widgets\ElementorForm::get_keywords()
S
79 1 3
Leadin\admin\widgets\ElementorForm::get_style_depends()
S
71 1 5
Leadin\admin\widgets\ElementorForm::get_script_depends()
S
66 1 10
Leadin\utils\Versions::get_wp_version()
S
76 1 4
Leadin\admin\DeactivationForm::__construct()
S
79 1 3
Leadin\admin\widgets\ElementorFormSelect::get_type()
S
82 1 3
Leadin\admin\widgets\ElementorFormSelect::enqueue()
S
82 1 3
Leadin\admin\widgets\ElementorFormSelect::get_default_settings()
S
70 1 7
Leadin\admin\widgets\ElementorFormSelect::content_template()
S
72 1 6
Leadin\admin\widgets\ElementorMeeting::get_name()
S
82 1 3
Leadin\admin\widgets\ElementorMeeting::get_title()
S
80 1 3
Leadin\admin\widgets\ElementorMeeting::get_icon()
S
82 1 3
Leadin\admin\Connection::is_disconnection_requested()
S
75 1 4
Leadin\admin\widgets\ElementorMeeting::get_categories()
S
80 1 3
Leadin\admin\Links::is_static_version_valid()
S
75 1 4
Leadin\data\Portal_Options::get_refresh_token_error()
S
79 1 3
Leadin\admin\widgets\ElementorMeeting::get_script_depends()
S
66 1 10
Leadin\admin\widgets\ElementorMeetingSelect::get_default_settings()
S
70 1 7
Leadin\data\Portal_Options::get_activation_time()
S
80 1 3
Leadin\admin\widgets\ElementorMeetingSelect::get_type()
S
82 1 3
Leadin\admin\widgets\ElementorMeetingSelect::enqueue()
S
82 1 3
Leadin\utils\Versions::is_wp_version_not_supported()
S
75 1 4
Leadin\wp\Page::is_dashboard()
S
75 1 4
Leadin\admin\widgets\ElementorMeetingSelect::content_template()
S
72 1 6
Leadin\data\User::get_metadata()
S
78 1 3
Leadin\admin\Impact::get_affiliate_link()
S
80 1 3
Leadin\api\Base_Api_Controller::verify_permissions()
S
80 1 3
Leadin\api\Base_Api_Controller::verify_admin_permissions()
S
80 1 3
Leadin\admin\Connection::delete_metadata()
S
72 1 5
Leadin\utils\RequestUtils::send_message()
S
69 1 8
Leadin\admin\PluginActionsManager::__construct()
S
75 1 4
Leadin\utils\Versions::get_php_version()
S
79 1 3
Leadin\AssetsManager::register_assets()
S
62 1 10
Leadin\AssetsManager::enqueue_admin_assets()
S
80 1 3
Leadin\AssetsManager::enqueue_feedback_assets()
S
69 1 6
Leadin\AssetsManager::enqueue_bridge_assets()
S
74 1 5
Leadin\AssetsManager::enqueue_integrated_app_assets()
S
68 1 7
Leadin\admin\ReviewBanner::__construct()
S
82 1 3
Leadin\AssetsManager::enqueue_forms_script()
S
68 1 9
Leadin\AssetsManager::enqueue_meetings_script()
S
68 1 9
Leadin\AssetsManager::localize_gutenberg()
S
63 1 9
Leadin\AssetsManager::enqueue_review_banner_tracking_script()
S
71 1 5
Leadin\AssetsManager::enqueue_elementor_script()
S
62 1 10
Leadin\admin\ReviewController::is_after_introductary_period()
S
70 1 6
Leadin\Leadin::add_elementor_widget_categories()
S
67 1 9
Leadin\Leadin::register_elementor_widgets()
S
77 1 4
Leadin\Leadin::register_hsselectors_control()
S
77 1 4
Leadin\admin\LeadinAdmin::load_languages()
S
79 1 3
Leadin\admin\ReviewController::has_min_contacts()
S
80 1 3
Leadin\auth\OAuth::retry_delay()
S
80 1 3
Leadin\admin\LeadinAdmin::do_activate_action()
S
80 1 3
Leadin\admin\widgets\ElementorMeeting::get_custom_help_url()
S
82 1 3
Leadin\admin\Routing::has_just_connected_with_oauth()
S
68 1 8
Leadin\PageHooks::leadin_add_hubspot_shortcode()
S
80 1 3
Leadin\data\Filters::apply_hublet_filters()
S
78 1 3
Leadin\data\Filters::apply_app_prefix_filters()
S
77 1 3
Leadin\data\Filters::apply_js_prefix_filters()
S
77 1 3
Leadin\data\Filters::apply_api_prefix_filters()
S
77 1 3
Leadin\data\Filters::apply_hubspot_domain_filters()
S
78 1 3
Leadin\admin\Routing::is_review_request()
S
69 1 7
Leadin\data\Filters::apply_js_base_url_filters()
S
71 1 5
Leadin\admin\api\Hublet_Api_Controller::__construct()
S
70 1 7
Leadin\data\Filters::apply_signup_base_url_filters()
S
74 1 4
Leadin\data\Filters::apply_forms_script_url_filters()
S
73 1 4
Leadin\data\Filters::apply_meetings_script_url_filters()
S
78 1 3
Leadin\data\Filters::apply_script_loader_domain_filters()
S
73 1 4
Leadin\data\Filters::apply_forms_payload_filters()
S
78 1 3
Leadin\admin\api\Internal_Tracking_Api_Controller::get_internal_tracking_option()
S
79 1 3
Leadin\data\User_Metadata::set_review_banner_last_call()
S
79 1 3
Leadin\data\Portal_Options::delete_disable_internal_tracking()
S
80 1 3
Leadin\api\Healthcheck_Api_Controller::get_healthcheck_request()
S
79 1 3
Leadin\admin\LeadinAdmin::build_integrated_app()
S
78 1 4
Leadin\data\Portal_Options::set_account_name()
S
79 1 3
Leadin\data\Portal_Options::set_refresh_token_error()
S
79 1 3
Leadin\data\Portal_Options::delete_refresh_token()
S
80 1 3
Leadin\data\User_Metadata::set_track_consent()
S
79 1 3
Leadin\data\User_Metadata::get_nickname()
S
80 1 3
Leadin\admin\Links::get_query_params()
S
72 1 5
Leadin\data\User::is_admin()
S
80 1 3
Leadin\admin\widgets\ElementorMeeting::get_keywords()
S
79 1 3
Leadin\data\Portal_Options::delete_business_unit_id()
S
80 1 3
Leadin\data\User::set_metadata()
S
79 1 3
Leadin\data\Portal_Options::delete_account_name()
S
80 1 3
Leadin\data\Filters::apply_impact_code_filters()
S
78 1 3
Leadin\data\Portal_Options::set_activation_time()
S
79 1 3
Leadin\utils\Versions::is_php_version_not_supported()
S
78 1 3
Leadin\data\Portal_Options::set_business_unit_id()
S
79 1 3
Leadin\data\User_Metadata::get_first_name()
S
80 1 3
Leadin\admin\Connection::connect()
S
72 1 5
Leadin\data\Portal_Options::set_last_disconnect_time()
S
79 1 3
Leadin\data\Portal_Options::delete_hublet()
S
80 1 3
leadin_register_routes()
S
71 1 7
Leadin\data\Portal_Options::get_refresh_token()
S
80 1 3
Leadin\data\Portal_Options::get_disable_internal_tracking()
S
80 1 3
Leadin\admin\ReviewController::is_reviewed_or_skipped()
S
79 1 3
Leadin\data\User_Metadata::get_track_consent()
S
80 1 3
Leadin\utils\RequestUtils::send()
S
79 1 3
Leadin\data\Portal_Options::get_portal_id()
S
80 1 3
Leadin\admin\AdminConstants::get_connection_nonce()
S
80 1 3
Leadin\utils\RequestUtils::send_error_message()
S
68 1 8
Leadin\data\Portal_Options::get_account_name()
S
80 1 3
Leadin\data\Portal_Options::set_refresh_token()
S
79 1 3
Leadin\data\Portal_Options::delete_portal_id()
S
80 1 3
Leadin\admin\Routing::is_new_portal_with_oauth()
S
68 1 8
Leadin\admin\Routing::has_review_request()
S
69 1 7
Leadin\admin\LeadinAdmin::set_redirect_transient()
S
79 1 3
Leadin\data\Portal_Options::get_business_unit_id()
S
80 1 3
Leadin\data\Portal_Options::get_last_authorize_time()
S
79 1 3
Leadin\data\Portal_Options::set_portal_id()
S
79 1 3
Leadin\data\Filters::apply_query_params_filters()
S
78 1 3
Leadin\data\Portal_Options::get_last_deauthorize_time()
S
79 1 3
Leadin\data\Filters::apply_connect_plugin_capability_filters()
S
78 1 3
Leadin\admin\LeadinAdmin::build_app()
S
78 1 4
Leadin\data\Portal_Options::delete_portal_domain()
S
80 1 3
Leadin\data\User_Metadata::set_has_min_contacts()
S
79 1 3
Leadin\data\Portal_Options::get_last_disconnect_time()
S
79 1 3
Leadin\data\Portal_Options::get_portal_domain()
S
80 1 3
Leadin\admin\Gutenberg::register_gutenberg_block()
S
68 1 9
Leadin\data\Portal_Options::delete_activation_time()
S
80 1 3
Leadin\admin\AdminConstants::get_signup_prefill_params_array()
S
64 1 10
Leadin\data\Portal_Options::set_disable_internal_tracking()
S
79 1 3
Leadin\admin\Connection::is_new_portal()
S
74 1 4
Leadin\data\Portal_Options::set_last_deauthorize_time()
S
79 1 3
Leadin\data\Portal_Options::get_hublet()
S
80 1 3
Leadin\admin\api\Portal_Api_Controller::get_business_unit_option()
S
79 1 3
Leadin\data\User_Metadata::get_skip_review()
S
80 1 3
Leadin\utils\ShortcodeRenderUtils::generate_div_uuid()
S
78 1 3
Leadin\admin\Links::get_iframe_search_string()
S
79 1 3
Leadin\admin\Connection::store_portal_info()
S
69 1 7
Leadin\data\User::delete_metadata()
S
79 1 3
Leadin\utils\Versions::is_version_less_than()
S
78 1 3
Leadin\admin\Impact::has_params()
S
78 1 3
Leadin\admin\Connection::delete_portal_info()
S
68 1 8
Leadin\api\Healthcheck_Api_Controller::__construct()
S
70 1 7
Leadin\utils\RequestUtils::send_json()
S
79 1 3
Leadin\data\Portal_Options::get_device_id()
S
72 1 5
Leadin\admin\api\Internal_Tracking_Api_Controller::set_internal_tracking_option()
S
74 1 4
Leadin\data\Portal_Options::set_hublet()
S
79 1 3
Leadin\admin\NoticeManager::__construct()
S
79 1 3
Leadin\admin\LeadinAdmin::make_external_link()
S
78 1 3
Leadin\admin\LeadinAdmin::do_redirect_action()
S
80 1 3
Leadin\admin\Links::get_page_id()
S
75 1 4
Leadin\auth\OAuth::deauthorize()
S
77 1 4
Leadin\data\Filters::apply_view_plugin_menu_capability_filters()
S
78 1 3
Leadin\data\Portal_Options::set_portal_domain()
S
79 1 3
Leadin\data\User_Metadata::set_skip_review()
S
79 1 3
Leadin\admin\widgets\ElementorMeeting::get_style_depends()
S
71 1 5
Leadin\data\Portal_Options::set_last_authorize_time()
S
79 1 3
Leadin\data\User_Metadata::get_review_banner_last_call()
S
80 1 3