Code Analysis: WowOptin 1.0.2

Function Rating Maintainability Complexity Lines of code
OPTN\Frontend\Frontend::check_display_rules()
D
25
45 165
OPTN\Includes\Utils\Utils::sanitize_json_array()
B
34 21 97
OPTN\Includes\Utils\Utils::check_values()
B
43 21 49
OPTN\Includes\Utils\Sanitizer::get_allowed_html()
B
23
1 298
OPTN\Includes\Db::get_quick_view_data()
A
33 10 121
OPTN\Admin\RestAdmin::handle_save_post()
A
51 16 21
OPTN\Admin\Rest\RestIntegration::handle_create_integration()
A
51 15 21
OPTN\Includes\Utils\Utils::get_embed_hook_and_pos()
A
44 13 47
OPTN\Frontend\OptinGenerator::render_block()
A
41 11 59
OPTN\Frontend\OptinGenerator::countdown_block()
A
46 12 35
OPTN\Includes\Utils\DisplayRules::get_values()
A
49 12 30
OPTN\Includes\Integrations\Implementations\Mailchimp::get_fields()
A
44 11 45
OPTN\Frontend\OptinGenerator::button_block()
A
44 11 44
OPTN\Includes\Db::get_integration()
A
50 11 25
OPTN\Includes\Utils\VisitorCount::track_visit()
A
52 11 23
OPTN\Includes\Db::get_posts()
A
42 9 51
OPTN\Includes\Utils\Device::is_mobile()
A
54 11 19
OPTN\Includes\Utils\Utils::get_woo_info()
A
44 9 45
OPTN\Includes\Db::get_processed_data_for_db()
A
48 10 30
OPTN\Includes\Integrations\Implementations\HubSpot::add_subscriber()
A
45 9 42
OPTN\Includes\Db::create_new_post()
A
45 9 41
OPTN\Includes\Integrations\Implementations\FluentCrm::add_lead()
A
52 10 22
OPTN\Includes\Integrations\Implementations\Mailchimp::add_subscriber()
A
47 9 35
OPTN\Includes\Integrations\Implementations\Mailchimp::get_lists()
A
47 9 35
OPTN\Includes\Analytics::handle_update_analytics()
A
54 10 18
OPTN\Includes\Db::get_encoded_traffic_channel()
A
49 9 31
OPTN\Frontend\Frontend::setup_embedded_optins()
A
50 9 30
OPTN\Includes\Db::get_conversions()
A
45 8 44
OPTN\Admin\Admin::enqueue_scripts()
A
41 7 55
OPTN\Includes\Integrations\Implementations\MailerLite::get_fields()
A
47 8 36
OPTN\Frontend\OptinGenerator::columns_block()
A
48 8 33
OPTN\Admin\RestAdmin::register_routes()
A
35 1 138
OPTN\Includes\Integrations\Implementations\HubSpot::get_lists()
A
48 8 32
OPTN\Includes\Integrations\Implementations\MailerLite::get_lists()
A
48 8 32
OPTN\Includes\Utils\Utils::validate_query_params()
A
56 9 17
OPTN\Includes\Utils\Utils::get_edd_info()
A
44 7 45
OPTN\Frontend\RestFrontend::handle_integration_action()
A
57 9 14
OPTN\Includes\Db::get_leads()
A
48 8 29
OPTN\Frontend\OptinGenerator::coupon_block()
A
43 6 55
OPTN\Includes\Utils\DisplayRules::get_post_types()
A
47 7 40
OPTN\Includes\Integrations\Implementations\HubSpot::get_fields()
A
47 7 36
OPTN\Includes\Utils\Templates::fetch_templates_data()
A
48 7 35
OPTN\Admin\RestAdmin::handle_get_archive_pages()
A
48 7 34
OPTN\Frontend\OptinGenerator::get_conversion_item()
S
45 6 45
OPTN\Frontend\OptinGenerator::get_resp_hide_classes()
S
59 8 13
OPTN\Includes\Db::get_encoded_visitor()
S
51 7 28
OPTN\Admin\Admin::add_menu_page()
S
36 1 118
OPTN\Includes\Db::get_geo_view_data()
S
45 6 43
OPTN\Includes\Utils\DisplayRules::get_options()
S
46 6 42
OPTN\Includes\Utils\Utils::get_license_info()
S
51 7 27
OPTN\Includes\Db::update_saved_post()
S
51 7 26
OPTN\Admin\RestAdmin::handle_support_ticket()
S
52 7 23
OPTN\Includes\Utils\Device::get_device()
S
54 7 22
OPTN\Includes\Db::get_impressions_by_device()
S
46 6 36
OPTN\Includes\Db::get_impressions()
S
48 6 34
OPTN\Admin\Rest\RestIntegration::handle_get_integration_data()
S
55 7 18
OPTN\Frontend\OptinGenerator::form_block()
S
48 6 32
OPTN\Frontend\OptinGenerator::add_google_font()
S
56 7 17
OPTN\Includes\Db::get_sales()
S
48 6 32
OPTN\Includes\Db::delete_post()
S
51 6 27
OPTN\Frontend\OptinGenerator::get_form_grouped_fields()
S
53 6 25
OPTN\Includes\Db::get_post_status_count()
S
47 5 40
OPTN\Includes\Db::get_pop_optin()
S
43 4 54
OPTN\Frontend\OptinGenerator::video_block()
S
52 6 23
OPTN\Includes\Utils\Utils::get_terms_by_id()
S
56 6 18
OPTN\Frontend\OptinGenerator::generateShareLink()
S
57 6 17
OPTN\Includes\Integrations\Base\IntegrationFactory::get_integration_class()
S
58 6 16
OPTN\Includes\Utils\TrafficChannel::is_organic_search_traffic()
S
58 6 15
OPTN\Includes\Utils\Os::getOS()
S
58 6 14
OPTN\Includes\Db::add_purchase()
S
51 5 29
OPTN\Admin\RestAdmin::handle_delete_post()
S
58 6 13
OPTN\Includes\Integrations\Implementations\MailerLite::add_subscriber()
S
50 5 28
OPTN\Includes\Integrations\Implementations\Webhook::add_subscriber()
S
52 5 27
OPTN\Includes\Db::get_encoded_os()
S
53 5 24
OPTN\Includes\Db::add_view()
S
53 5 23
OPTN\Includes\Utils\DisplayRules::get_edd_products()
S
53 5 23
OPTN\Includes\Db::get_conv_for_render()
S
48 4 37
OPTN\Includes\Utils\DisplayRules::get_woo_products()
S
54 5 22
OPTN\Includes\Db::get_encoded_device()
S
55 5 20
OPTN\Frontend\OptinGenerator::social_block()
S
55 5 19
OPTN\Includes\Settings::init_settings()
S
56 5 18
OPTN\Includes\Integrations\Implementations\FluentCrm::add_subscriber()
S
57 5 17
OPTN\Frontend\Frontend::get_conversions()
S
59 5 16
OPTN\Admin\RestAdmin::handle_download_assets()
S
45 3 46
OPTN\Includes\Utils\TrafficChannel::get_traffic_channels()
S
59 5 16
OPTN\Includes\Utils\Utils::get_revenue()
S
58 5 16
OPTN\Admin\RestAdmin::handle_get_posts()
S
65 6 7
OPTN\Includes\Utils\Utils::log_to_file()
S
63 6 10
OPTN\Includes\Db::get_decoded_conv_type()
S
60 5 14
OPTN\Frontend\Frontend::get_embedded_conversion()
S
58 5 14
OPTN\Includes\Analytics::register_admin_routes()
S
43 1 74
OPTN\Includes\Db::get_encoded_conv_type()
S
62 5 13
OPTN\Includes\Utils\Utils::get_ip_from_request()
S
59 5 12
OPTN\Includes\Utils\TrafficChannel::is_paid_search_traffic()
S
61 5 12
optn_autoloader()
S
53 4 22
OPTN\Includes\Utils\DisplayRules::get_terms()
S
54 4 21
OPTN\Includes\Utils\DisplayRules::get_posts()
S
54 4 21
OPTN\Includes\Db::delete_leads()
S
55 4 20
OPTN\Admin\RestAdmin::handle_get_products()
S
46 2 46
OPTN\Includes\Utils\Utils::clean_values()
S
59 4 16
OPTN\Admin\RestAdmin::handle_get_rule_values()
S
65 5 7
OPTN\Includes\Utils\Templates::store_in_cache()
S
58 4 15
OPTN\Includes\Utils\Utils::get_user_info()
S
59 4 14
OPTN\Frontend\OptinGenerator::separator_block()
S
51 3 28
OPTN\Frontend\OptinGenerator::get_link_opening_tag_html()
S
60 4 13
OPTN\Includes\Integrations\Implementations\Webhook::add_lead()
S
60 4 13
OPTN\Includes\Utils\Device::is_tablet()
S
60 4 13
OPTN\Includes\Db::get_decoded_integration_type()
S
62 4 12
OPTN\Frontend\Frontend::get_inline_conversion()
S
61 4 12
OPTN\Admin\RestAdmin::handle_delete_leads()
S
60 4 12
OPTN\Includes\Utils\TrafficChannel::is_social_media_traffic()
S
61 4 12
OPTN\Includes\Utils\Utils::check_math()
S
62 4 12
OPTN\Includes\Db::get_saved_post()
S
62 4 11
OPTN\Includes\Db::copy_post()
S
51 3 26
OPTN\Frontend\OptinGenerator::get_form_input_html()
S
54 3 22
OPTN\Admin\Rest\RestIntegration::__construct()
S
47 1 48
OPTN\Includes\Utils\DisplayRules::get_users()
S
57 3 18
OPTN\Includes\Integrations\Implementations\FluentCrm::get_lists()
S
51 2 32
OPTN\Includes\Db::add_goal()
S
57 3 17
OPTN\Includes\Utils\Utils::get_sanitized_query_parameters()
S
64 4 10
OPTN\Frontend\OptinGenerator::get_countdown_time_part_html()
S
58 3 15
OPTN\Frontend\OptinGenerator::image_block()
S
57 3 15
OPTN\Admin\RestAdmin::handle_get_leads()
S
70 4 5
OPTN\Includes\Analytics::handle_get_pop_optins()
S
66 4 7
OPTN\Includes\Analytics::handle_get_impression()
S
66 4 7
OPTN\Admin\Rest\RestIntegration::handle_delete_integration()
S
65 4 8
OPTN\Includes\Analytics::handle_get_ipinfo()
S
60 3 13
OPTN\Includes\Analytics::handle_get_quick_view_data()
S
62 3 11
OPTN\Frontend\OptinGenerator::get_icon_html()
S
63 3 11
OPTN\Includes\Utils\Templates::fetch_single_template()
S
53 2 25
OPTN\Includes\Db::add_integration()
S
55 2 23
OPTN\Includes\Utils\Sanitizer::add_to_tags_allowlist()
S
56 2 20
OPTN\Frontend\Frontend::get_user_info()
S
56 2 18
OPTN\Includes\Integrations\Implementations\FluentCrm::get_fields()
S
58 2 17
OPTN\Includes\Integrations\Implementations\HubSpot::add_to_hub_sopt_lists()
S
59 2 16
OPTN\Frontend\OptinGenerator::render_conversion()
S
58 2 16
OPTN\Includes\Db::get_encoded_integration()
S
67 3 9
OPTN\Includes\Analytics::handle_get_conversion()
S
68 3 6
OPTN\Includes\Settings::get_integration_settings()
S
64 3 10
OPTN\Includes\Db::create_interactions_tables()
S
54 1 30
OPTN\Includes\Db::get_cond()
S
67 3 7
OPTN\Admin\RestAdmin::handle_restore_post()
S
63 3 9
OPTN\Includes\Integrations\Base\BaseMailIntegration::get_settings()
S
68 3 7
OPTN\Includes\Analytics::handle_get_sales()
S
68 3 6
OPTN\Includes\Integrations\Implementations\Mailchimp::merge_unique_fields()
S
66 3 8
OPTN\Frontend\Frontend::track_purchase()
S
64 3 8
OPTN\Includes\Analytics::handle_get_impression_device()
S
68 3 6
OPTN\Includes\Utils\TrafficChannel::is_direct_traffic()
S
70 3 6
OPTN\Includes\Utils\Utils::bin_array_to_dec()
S
68 3 7
OPTN\Includes\Utils\Utils::log()
S
72 3 5
OPTN\Includes\Utils\Utils::check_prefix()
S
64 3 10
OPTN\Includes\Utils\Utils::detect_new_or_returning_visitor()
S
63 3 9
OPTN\Includes\Loader::run()
S
66 3 8
OPTN\Includes\Db::create_conversions_table()
S
55 1 28
OPTN\Includes\Integrations\Implementations\HubSpot::add_lead()
S
61 2 12
OPTN\Includes\Integrations\Implementations\MailerLite::add_lead()
S
61 2 12
OPTN\Frontend\Frontend::enqueue_scripts()
S
52 1 27
OPTN\Includes\Integrations\Implementations\Mailchimp::add_lead()
S
61 2 12
OPTN\Frontend\OptinGenerator::add_close_btn_content()
S
63 2 11
OPTN\Frontend\OptinGenerator::get_social_item()
S
62 2 11
OPTN\Includes\Db::create_leads_table()
S
56 1 24
OPTN\Frontend\RestFrontend::register_routes()
S
58 1 20
OPTN\Includes\Analytics::register_public_routes()
S
57 1 20
OPTN\Includes\Db::create_integrations_table()
S
60 1 17
OPTN\Frontend\OptinGenerator::heading_block()
S
58 1 16
OPTN\Includes\Utils\Utils::get_license_key()
S
70 2 6
OPTN\Includes\Utils\Utils::format_number()
S
66 2 7
OPTN\Includes\Utils\Utils::get_past_dates()
S
63 2 10
OPTN\Frontend\OptinGenerator::get_form_fields_html()
S
65 2 9
OPTN\Includes\Utils\VisitorCount::is_unique_visitor()
S
64 2 9
OPTN\Includes\Utils\Templates::get_from_cache()
S
68 2 7
OPTN\Includes\Utils\CountryDecoder::get_dom_pct()
S
70 2 5
OPTN\Includes\Db::restore_post()
S
59 1 15
OPTN\Admin\RestAdmin::handle_get_post()
S
71 2 5
OPTN\Includes\Analytics::handle_get_geo_view()
S
71 2 5
OPTN\Includes\Utils\CountryDecoder::get_country_map()
S
69 2 6
OPTN\Includes\Utils\Utils::get_audio_html()
S
66 2 8
OPTN\Includes\Utils\Utils::get_visitor_types()
S
70 2 6
OPTN\Includes\Utils\Utils::get_diff_pct()
S
70 2 5
OPTN\Admin\Admin::is_in_menu_page()
S
76 2 3
OPTN\Includes\Utils\VisitorCount::schedule_rotation()
S
70 2 6
OPTN\Includes\Utils\Device::match()
S
69 2 6
OPTN\Includes\Utils\CountryDecoder::decode()
S
71 2 5
OPTN\Includes\Utils\Utils::maybe_remove_prefix()
S
68 2 7
OPTN\Includes\Utils\VisitorCount::get_current_week_stats()
S
69 2 7
OPTN\Frontend\OptinGenerator::get_watermark_html()
S
64 2 10
OPTN\Admin\Admin::enqueue_styles()
S
65 2 8
OPTN\Frontend\Frontend::set_allow_enqueuing()
S
79 2 3
OPTN\Admin\RestAdmin::handle_get_rule_options()
S
71 2 5
OPTN\Admin\Rest\RestIntegration::handle_get_integration()
S
64 2 9
OPTN\Includes\Utils\VisitorCount::get_stats()
S
60 1 14
OPTN\Includes\Db::add_lead()
S
60 1 14
OPTN\Includes\Init::define_public_hooks()
S
59 1 13
OPTN\Frontend\OptinGenerator::html_block()
S
63 1 11
OPTN\Includes\Utils\VisitorCount::get_previous_week_stats()
S
73 1 6
OPTN\Includes\Db::__construct()
S
66 1 8
OPTN\Includes\Db::get_post_for_select()
S
67 1 9
OPTN\Frontend\OptinGenerator::__construct()
S
77 1 4
OPTN\Includes\Analytics::handle_get_valid_convs()
S
77 1 4
OPTN\Includes\Db::get_conv_by_id()
S
74 1 4
OPTN\Includes\Loader::add_filter()
S
77 1 3
OPTN\Frontend\Frontend::__construct()
S
65 1 9
OPTN\Frontend\RestFrontend::__construct()
S
77 1 4
OPTN\Admin\Admin::register_routes()
S
82 1 3
OPTN\Includes\Utils\Cache::get()
S
80 1 3
OPTN\Includes\I18n::load_plugin_textdomain()
S
69 1 7
OPTN\Frontend\Frontend::add_to_tags_allowlist()
S
79 1 3
OPTN\Includes\Integrations\Implementations\Webhook::get_lists()
S
82 1 3
OPTN\Includes\Utils\Cache::set()
S
78 1 3
OPTN\Frontend\Frontend::woo_purchase_tracking()
S
80 1 3
OPTN\Frontend\OptinGenerator::shape_block()
S
68 1 7
OPTN\Includes\Loader::__construct()
S
77 1 4
OPTN\Includes\Init::__construct()
S
68 1 8
OPTN\Admin\RestAdmin::__construct()
S
77 1 4
OPTN\Frontend\OptinGenerator::get_countdown_div_html()
S
79 1 3
OPTN\Includes\Utils\Sanitizer::sanitize()
S
78 1 3
optn_activate_plugin()
S
83 1 3
OPTN\Includes\Analytics::permission_callback()
S
80 1 3
OPTN\Includes\Db::delete_integration()
S
65 1 10
OPTN\Frontend\Frontend::track_visit()
S
82 1 3
OPTN\Frontend\RestFrontend::permission_callback()
S
82 1 3
OPTN\Includes\Settings::get_settings()
S
79 1 3
OPTN\Includes\Db::create_tables()
S
68 1 8
OPTN\Includes\Utils\Utils::get_user_ip()
S
75 1 4
OPTN\Includes\Init::get_plugin_name()
S
82 1 3
OPTN\Frontend\Frontend::get_allow_enqueuing()
S
82 1 3
OPTN\Admin\Rest\RestIntegration::permission_callback()
S
80 1 3
OPTN\Includes\Loader::add()
S
64 1 10
OPTN\Includes\Analytics::__construct()
S
76 1 4
OPTN\Includes\Init::set_locale()
S
75 1 4
OPTN\Includes\Integrations\Base\BaseMailIntegration::__construct()
S
73 1 5
optn_run_plugin()
S
77 1 4
OPTN\Includes\Integrations\Implementations\Mailchimp::__construct()
S
67 1 7
OPTN\Admin\Admin::__construct()
S
77 1 4
OPTN\Includes\Utils\Utils::__construct()
S
98 1 1
OPTN\Includes\Utils\VisitorCount::rotate_weekly_stats()
S
66 1 9
OPTN\Includes\Integrations\Implementations\Webhook::get_fields()
S
82 1 3
OPTN\Includes\Utils\Templates::delete_from_cache()
S
75 1 4
optn_deactivate_plugin()
S
83 1 3
OPTN\Includes\Integrations\Base\BaseMailIntegration::get_headers()
S
65 1 9
OPTN\Includes\Init::get_loader()
S
82 1 3
OPTN\Admin\RestAdmin::handle_get_templates()
S
80 1 3
OPTN\Frontend\Frontend::enqueue_styles()
S
73 1 4
OPTN\Frontend\Frontend::preconnect_google_fonts()
S
78 1 4
OPTN\Includes\Utils\Templates::get_templates()
S
80 1 3
OPTN\Includes\Utils\Utils::is_valid_json()
S
75 1 4
OPTN\Includes\Integrations\Base\BaseMailIntegration::add_lead()
S
100 1 0
OPTN\Frontend\Frontend::add_to_style_allowlist()
S
80 1 3
OPTN\Frontend\Frontend::add_html()
S
75 1 4
OPTN\Includes\Init::run()
S
82 1 3
OPTN\Includes\Deactivator::deactivate()
S
89 1 2
OPTN\Includes\Integrations\Base\BaseMailIntegration::get_lists()
S
100 1 0
OPTN\Includes\Db::get_formatted_date()
S
75 1 4
OPTN\Frontend\Frontend::register_routes()
S
78 1 4
OPTN\Admin\Admin::add_dropdown_html()
S
83 1 5
OPTN\Includes\Utils\Templates::get_path()
S
74 1 4
OPTN\Includes\Utils\Sanitizer::add_to_style_allowlist()
S
79 1 3
OPTN\Frontend\OptinGenerator::render_inline_conversion()
S
67 1 7
OPTN\Includes\Integrations\Base\BaseMailIntegration::get_fields()
S
100 1 0
OPTN\Includes\Db::drop_tables()
S
91 1 2
OPTN\Includes\Activator::activate()
S
73 1 5
OPTN\Frontend\Frontend::edd_purchase_tracking()
S
80 1 3
OPTN\Includes\Init::define_admin_hooks()
S
66 1 8
OPTN\Includes\Integrations\Base\BaseMailIntegration::add_subscriber()
S
100 1 0
OPTN\Includes\Init::get_version()
S
82 1 3
OPTN\Frontend\OptinGenerator::shortcode_block()
S
65 1 9
OPTN\Admin\RestAdmin::permission_callback()
S
80 1 3
OPTN\Includes\Loader::add_action()
S
77 1 3
OPTN\Includes\Settings::set_settings()
S
72 1 5