Code Analysis: WP Dark Mode 5.2.4

Function Rating Maintainability Complexity Lines of code
WP_Dark_Mode\Admin\Recommended_Plugins::render_recommended_plugins_page()
D
15
46 368
WP_Dark_Mode\Assets::get_preset_styles()
D
31 38 93
WP_Dark_Mode\Config::get_default_options()
C
18
1 492
WPPOOL_Plugin::get_inline_scripts()
C
32 1 408
WP_Dark_Mode\Triggers::is_preactivated()
B
39 24 55
WP_Dark_Mode\Admin\Upgrade::upgrade_woocommerce_settings()
A
49 16 28
WP_Dark_Mode\Config::predefined_presets()
A
26
1 252
WP_Dark_Mode\Appsero\Insights::get_tracking_data()
A
39 13 63
WP_Dark_Mode\Admin\Upgrade::update_one_to_one_options()
A
44 14 45
WP_Dark_Mode\Appsero\License::menu_output()
A
42 13 57
WP_Dark_Mode\Appsero\Insights::deactivate_scripts()
A
34 6 145
WPPOOL_Plugin::get_inline_styles()
A
37 1 207
WP_Dark_Mode\Admin\Upgrade::upgrade_exclude_categories()
A
50 13 26
WP_Dark_Mode\Appsero\Insights::deactivation_modal_styles()
A
48 1 186
WP_Dark_Mode\Shortcode::render_shortcode()
A
48 10 34
WP_Dark_Mode\Admin\Upgrade::upgrade_color_presets()
A
48 10 32
WP_Dark_Mode\Admin\Upgrade::upgrade_exclude_posts()
A
50 10 28
WP_Dark_Mode\SocialShare::the_content()
A
50 9 29
WP_Dark_Mode\Appsero\License::license_form_submit()
A
51 9 26
WP_Dark_Mode\Appsero\Insights::handle_optin_optout()
A
54 9 21
WP_Dark_Mode\Appsero\Insights::get_all_plugins()
A
48 8 34
WP_Dark_Mode\Appsero\License::licenses_style()
A
51 1 132
WP_Dark_Mode\Assets::get_inline_styles()
A
47 7 34
WP_Dark_Mode\SocialShare::channels()
A
35 1 122
WP_Dark_Mode\Ajax::insert_new_visitor()
S
49 7 30
WP_Dark_Mode\Assets::enqueue_scripts()
S
44 6 43
WP_Dark_Mode\Admin\Upgrade::upgrade_modes()
S
53 7 21
WP_Dark_Mode\Appsero\Insights::get_server_info()
S
55 7 17
WP_Dark_Mode\Admin\Install::set_notices()
S
50 6 30
WP_Dark_Mode\Appsero\License::send_request()
S
51 6 28
WP_Dark_Mode\Admin\Menus::admin_menu()
S
42 3 70
WP_Dark_Mode\Switches::load_floating_switch()
S
47 5 39
WP_Dark_Mode\Triggers::language_attributes()
S
53 6 21
WP_Dark_Mode\Appsero\Insights::admin_notice()
S
47 5 35
WP_Dark_Mode\Appsero\Insights::uninstall_reason_submission()
S
54 6 20
WP_Dark_Mode\Assets::script_loader_tag()
S
55 6 20
WP_Dark_Mode\Admin\Install::check_compatibilities()
S
49 5 34
WPPOOL_Plugin::sent_to_fluent_server()
S
55 6 18
WPPOOL_Plugin::set_campaign()
S
56 6 17
WP_Dark_Mode\Appsero\Insights::is_local_server()
S
58 6 13
WP_Dark_Mode\SocialShare::wpdm_social_share_counter()
S
45 4 43
WP_Dark_Mode\Appsero\License::show_active_license_info()
S
51 5 27
WP_Dark_Mode\Admin\Switches::render_admin_switcher_menu()
S
52 5 27
WP_Dark_Mode\Ajax::update_existing_visitor()
S
52 5 24
WP_Dark_Mode\Admin\Upgrade::upgrade_image_settings()
S
53 5 21
WP_Dark_Mode\Admin\REST::update_notice()
S
54 5 20
WP_Dark_Mode\Appsero\License::check_license_status()
S
55 5 19
WP_Dark_Mode\Admin\Assets::get_admin_json()
S
47 4 33
WP_Dark_Mode\Admin\Upgrade::upgrade_video_settings()
S
56 5 17
WP_Dark_Mode\Compatibility\Compatibility::actions()
S
57 5 16
WP_Dark_Mode\Appsero\License::is_valid_by()
S
64 6 9
WP_Dark_Mode\Admin\Assets::is_excluded()
S
64 6 9
WP_Dark_Mode\Appsero\Insights::__construct()
S
65 6 8
WP_Dark_Mode\Appsero\License::is_valid()
S
61 5 12
WP_Dark_Mode\Appsero\Insights::send_tracking_data()
S
61 5 12
WP_Dark_Mode\Module\Elementor\DarkModeWidget::register_controls()
S
40 1 70
WP_Dark_Mode\Model\Visitor::get_all()
S
52 4 24
WP_Dark_Mode\Appsero\License::active_client_license()
S
53 4 23
WP_Dark_Mode\Admin\REST::update_settings()
S
55 4 21
WPPOOL_Plugin::load_popup_template()
S
46 1 65
WP_Dark_Mode\Modules\Gutenberg\Block::register_block()
S
49 3 34
WP_Dark_Mode\Admin\REST::get_settings()
S
56 4 19
WP_Dark_Mode\Appsero\License::deactive_client_license()
S
56 4 18
WP_Dark_Mode\Admin\REST::register_rest_routes()
S
44 1 62
WP_Dark_Mode\Admin\Upgrade::old_option_sets()
S
40 1 62
WP_Dark_Mode\SocialShare::wpdm_social_share_save_options()
S
56 4 17
WP_Dark_Mode\Appsero\Insights::get_wp_info()
S
57 4 15
WP_Dark_Mode\Module\Elementor\Controls\DarkModeSwitch::content_template()
S
55 3 30
WP_Dark_Mode\Appsero\Client::updater()
S
64 5 9
WP_Dark_Mode\SocialShare::admin_enqueue_scripts()
S
49 3 30
WP_Dark_Mode\Appsero\License::get_input_license_value()
S
59 4 14
WP_Dark_Mode\Admin\Upgrade::upgrade_position_values()
S
58 4 14
WP_Dark_Mode\Admin\Recommended_Plugins::get_plugins()
S
60 4 14
WP_Dark_Mode\Appsero\License::admin_menu()
S
62 4 13
WP_Dark_Mode\SocialShare::initialize_social_share()
S
60 4 13
WP_Dark_Mode\Module\Elementor\Element::enqueue_scripts()
S
54 2 38
WP_Dark_Mode\Appsero\License::show_license_page_card_header()
S
57 3 23
WP_Dark_Mode\SocialShare::social_share_default_options()
S
44 1 52
WP_Dark_Mode\Config::get_svg_icons()
S
46 1 50
WP_Dark_Mode\Admin\Assets::admin_enqueue_scripts()
S
54 3 19
WP_Dark_Mode\Appsero\Insights::get_uninstall_reasons()
S
46 1 47
WP_Dark_Mode\Appsero\License::show_license_page_notices()
S
60 3 17
WP_Dark_Mode\Model\Visitor::add()
S
56 3 16
WP_Dark_Mode\Admin\Assets::wp_dark_mode_admin_activated()
S
65 4 8
WP_Dark_Mode\Admin\Upgrade::get_old_settings()
S
66 4 8
WP_Dark_Mode\Appsero\License::refresh_client_license()
S
64 4 9
WP_Dark_Mode\Ajax::update_visitor()
S
64 4 9
WP_Dark_Mode\Admin\Recommended_Plugins::get_plugin()
S
59 3 15
WP_Dark_Mode\Admin\Recommended_Plugins::admin_init()
S
63 4 10
callback_recommended_plugin()
S
59 3 15
WP_Dark_Mode\Assets::add_selector()
S
58 3 14
WP_Dark_Mode\Admin\Notices::init_appsero()
S
59 3 14
WP_Dark_Mode\Admin\Notices::admin_notices()
S
59 3 14
WP_Dark_Mode\Admin\REST::reset_settings()
S
60 3 13
WP_Dark_Mode\Shortcode::render_shortcode()
S
60 3 13
WP_Dark_Mode\Shortcode::render_shortcode()
S
60 3 13
WP_Dark_Mode\Appsero\Insights::get_user_counts()
S
62 3 12
WP_Dark_Mode\Appsero\Insights::activate_plugin()
S
61 3 12
WP_Dark_Mode\Appsero\License::run_schedule()
S
62 3 12
WP_Dark_Mode\Appsero\Insights::get_site_name()
S
63 3 11
WP_Dark_Mode\Appsero\Insights::get_user_ip_address()
S
63 3 11
WP_Dark_Mode\Admin\Upgrade::upgrade_performance_settings()
S
63 3 11
WP_Dark_Mode\SocialShare::get_section_values()
S
63 3 11
WP_Dark_Mode\Admin\Install::plugin_action_links()
S
56 2 22
WP_Dark_Mode\SocialShare::get_social_share_count()
S
56 2 20
WP_Dark_Mode\Compatibility\Compatibility::get_supported_theme()
S
49 1 34
WP_Dark_Mode\Admin\Menus::header_scripts()
S
56 1 34
WP_Dark_Mode\SocialShare::admin_head()
S
59 1 34
WP_Dark_Mode\Admin\REST::get_product_categories()
S
57 2 18
WP_Dark_Mode\Model\Visitor::init_db_table()
S
58 2 17
WP_Dark_Mode\Appsero\Client::set_basename_and_slug()
S
56 2 17
WP_Dark_Mode\Appsero\Client::insights()
S
64 3 10
WP_Dark_Mode\Appsero\Client::license()
S
64 3 10
WP_Dark_Mode\Appsero\Insights::init()
S
69 3 7
WPPOOL_Plugin::set_tag()
S
66 3 9
WP_Dark_Mode\Module\Elementor\DarkModeWidget::render()
S
68 3 6
WPPOOL_Plugin::set_list()
S
66 3 9
WP_Dark_Mode\Admin\Assets::get_inline_css()
S
53 1 30
WP_Dark_Mode\Admin\Assets::admin_html_tag()
S
66 3 9
WP_Dark_Mode\Admin\REST::get_products()
S
60 2 15
WP_Dark_Mode\Admin\Assets::script_loader_tag()
S
69 3 6
WPPOOL_Plugin::remove_tag()
S
66 3 9
WP_Dark_Mode\SocialShare::recursive_sanitizer()
S
64 3 10
WP_Dark_Mode\Appsero\Insights::get_extra_data()
S
67 3 9
WP_Dark_Mode\Boot::instance()
S
70 3 6
WP_Dark_Mode\Boot::load_public_files()
S
65 3 9
WPPOOL_Plugin::remove_list()
S
66 3 9
WP_Dark_Mode\Assets::get_excluded_elements()
S
62 3 10
WP_Dark_Mode\Appsero\Insights::data_we_collect()
S
60 2 14
WP_Dark_Mode\Appsero\Insights::send_tracking_skipped_request()
S
60 2 13
WP_Dark_Mode\Boot::load_admin_files()
S
61 2 13
WPPOOL_Plugin::enqueue_scripts()
S
61 2 12
WP_Dark_Mode\SocialShare::actions()
S
60 2 12
WP_Dark_Mode\Admin\Notices::add_dashboard_widget()
S
63 2 11
WP_Dark_Mode\SocialShare::get_kses_extended_ruleset()
S
54 1 23
WP_Dark_Mode\SocialShare::wp_enqueue_scripts()
S
53 1 23
WP_Dark_Mode\Appsero\Client::send_request()
S
54 1 21
WP_Dark_Mode\Module\Elementor\Controls\DarkModeSwitch::enqueue()
S
57 1 19
WP_Dark_Mode\Assets::get_svg_icons()
S
58 1 16
WP_Dark_Mode\SocialShare::create_database_table()
S
59 1 16
WPPOOL_Plugin::get_tag_id()
S
75 2 4
WPPOOL_Plugin::get_current_plugin()
S
74 2 4
WP_Dark_Mode\Boot::load_files()
S
69 2 8
WP_Dark_Mode\Appsero\License::schedule_cron_event()
S
70 2 6
WP_Dark_Mode\Base::get_instance()
S
68 2 7
WP_Dark_Mode\Admin\Upgrade::actions()
S
67 2 7
WP_Dark_Mode\Compatibility\Themes::add_wp_dark_mode_attribute()
S
69 2 6
WP_Dark_Mode\Appsero\Insights::notice_dismissed()
S
68 2 7
WPPOOL_Plugin::get_current_list_id()
S
75 2 4
WP_Dark_Mode\Appsero\Client::is_local_server()
S
73 2 4
WP_Dark_Mode\Model\Visitor::update()
S
64 2 9
WP_Dark_Mode\Appsero\Insights::schedule_event()
S
69 2 6
WP_Dark_Mode\Appsero\Insights::theme_deactivated()
S
73 2 5
WP_Dark_Mode\Admin\Notices::add_upgrade_popup()
S
72 2 6
WPPOOL_Plugin::get_image_url()
S
76 2 3
WP_Dark_Mode\Appsero\Insights::init_common()
S
64 2 9
WP_Dark_Mode\Appsero\Insights::deactivation_cleanup()
S
67 2 8
WP_Dark_Mode\Admin\REST::get_terms()
S
60 1 15
WP_Dark_Mode\Admin\Upgrade::run_upgrade()
S
60 1 15
WPPOOL_Plugin::get_instance()
S
72 2 6
WP_Dark_Mode\Admin\Install::activate()
S
66 2 9
WP_Dark_Mode\Appsero\Insights::plugin_action_links()
S
69 2 6
WPPOOL_Plugin::get_list_id()
S
68 2 7
WPPOOL_Plugin::__construct()
S
75 2 4
WP_Dark_Mode\Assets::is_elementor_editor_mode()
S
69 2 7
WP_Dark_Mode\Admin\Install::redirect_to_get_started()
S
69 2 7
WP_Dark_Mode\Assets::get_custom_css()
S
68 2 7
WP_Dark_Mode\Config::get_instance()
S
71 2 6
WP_Dark_Mode\Dependency::is_compatible()
S
79 2 3
WP_Dark_Mode\Dependency::is_elementor_active()
S
79 2 3
WP_Dark_Mode\Extended::get_system_default_excluded_elements()
S
74 2 4
WP_Dark_Mode\Dependency::is_wc_active()
S
79 2 3
WPPOOL_Plugin::init()
S
64 2 9
WP_Dark_Mode\Appsero\License::add_settings_page()
S
59 1 14
WP_Dark_Mode\Module\Elementor\DarkModeWidget::get_keywords()
S
62 1 14
WP_Dark_Mode\Admin\REST::get_contents()
S
60 1 14
WP_Dark_Mode\SocialShare::wp_head()
S
64 1 13
WP_Dark_Mode\Admin\REST::get_post_types()
S
61 1 12
WP_Dark_Mode\Appsero\License::create_menu_page()
S
63 1 12
WP_Dark_Mode\Appsero\License::create_submenu_page()
S
63 1 12
WP_Dark_Mode\Admin\REST::get_taxonomies()
S
62 1 11
WP_Dark_Mode\SocialShare::social_share_admin_menu()
S
64 1 11
WP_Dark_Mode\Appsero\License::create_options_page()
S
64 1 11
WPPOOL_Plugin::get_tags()
S
78 1 3
WP_Dark_Mode\Boot::load_modules()
S
71 1 6
WP_Dark_Mode\Admin\Install::get_dependency()
S
80 1 3
WP_Dark_Mode\Admin\Install::filters()
S
78 1 3
WP_Dark_Mode\Appsero\Client::__construct()
S
71 1 6
WP_Dark_Mode\Appsero\Insights::add_extra()
S
77 1 4
WP_Dark_Mode\Appsero\Insights::optin()
S
66 1 8
WPPOOL_Plugin::appsero()
S
82 1 3
WPPOOL_Plugin::unsubscribe()
S
74 1 4
WPPOOL_Plugin::get_plugin_image()
S
79 1 3
WP_Dark_Mode\Admin\Menus::redirect_to_new_settings_page()
S
78 1 3
WP_Dark_Mode\Appsero\Client::_etrans()
S
79 1 3
WP_Dark_Mode\Module\Elementor\Element::actions()
S
72 1 5
WP_Dark_Mode\Admin\Assets::get_predefined_presets()
S
80 1 3
WP_Dark_Mode\Appsero\Insights::optout()
S
68 1 7
WP_Dark_Mode\Compatibility\Themes::oceanwp()
S
82 1 3
WP_Dark_Mode\Appsero\Insights::add_plugin_data()
S
77 1 4
WP_Dark_Mode\Dependency::is_wp_dark_mode_ultimate_active()
S
80 1 3
WP_Dark_Mode\Dependency::is_elementor_installed()
S
79 1 3
WPPOOL_Plugin::unsubscribe_tag()
S
70 1 6
WP_Dark_Mode\Boot::load_common_files()
S
64 1 10
WP_Dark_Mode\Admin\REST::permissions_callback()
S
80 1 3
WP_Dark_Mode\Admin\Assets::actions()
S
73 1 5
WP_Dark_Mode\Dependency::is_wp_dark_mode_ultimate_compatible()
S
76 1 3
WP_Dark_Mode\Admin\Assets::filters()
S
75 1 4
WP_Dark_Mode\Compatibility\Themes::_add_attribute()
S
79 1 3
WP_Dark_Mode\Appsero\Insights::add_weekly_schedule()
S
68 1 7
WP_Dark_Mode\Shortcode::actions()
S
70 1 6
WP_Dark_Mode\Admin\Menus::actions()
S
75 1 4
WP_Dark_Mode\Appsero\Client::endpoint()
S
75 1 4
WPPOOL_Plugin::init_plugin_sdk()
S
68 1 7
WP_Dark_Mode\Appsero\Client::set_textdomain()
S
81 1 3
WPPOOL_Plugin::subscribe()
S
68 1 7
WP_Dark_Mode\Shortcode::hooks()
S
75 1 4
WP_Dark_Mode\SocialShare::wpdm_settings_option_names()
S
66 1 8
WP_Dark_Mode\Admin\Menus::render_get_started_page()
S
82 1 3
WP_Dark_Mode\Admin\Install::actions()
S
75 1 4
WP_Dark_Mode\Admin\Install::print_error()
S
79 1 3
WP_Dark_Mode\Appsero\License::set_option_key()
S
77 1 4
WP_Dark_Mode\Admin\Notices::actions()
S
69 1 6
WP_Dark_Mode\Module\Elementor\DarkModeWidget::get_categories()
S
81 1 3
WP_Dark_Mode\Module\Elementor\Controls\DarkModeSwitch::get_type()
S
82 1 3
WP_Dark_Mode\Module\Elementor\Controls\DarkModeSwitch::get_default_settings()
S
72 1 6
WP_Dark_Mode\Modules\Gutenberg\Block::actions()
S
79 1 3
WP_Dark_Mode\Appsero\Insights::get_last_send()
S
78 1 3
WP_Dark_Mode\Assets::actions()
S
74 1 4
WP_Dark_Mode\Dependency::is_wc_installed()
S
79 1 3
wppool_plugin_init()
S
80 1 3
WP_Dark_Mode\Appsero\Insights::init_plugin()
S
67 1 7
WP_Dark_Mode\Base::filters()
S
98 1 1
WP_Dark_Mode\Appsero\License::activate()
S
74 1 4
WP_Dark_Mode\Admin\REST::get_posts()
S
67 1 8
WP_Dark_Mode\Module\Elementor\Element::register_control()
S
74 1 4
WPPOOL_Plugin::plugin_tracker_optin_callback()
S
67 1 8
WP_Dark_Mode\Module\Elementor\DarkModeWidget::get_icon()
S
82 1 3
WP_Dark_Mode\Boot::is_dark_mode_enabled()
S
79 1 3
WP_Dark_Mode\Boot::start()
S
71 1 6
WP_Dark_Mode\Appsero\License::deactivate()
S
74 1 4
WP_Dark_Mode\SocialShare::hooks_if_social_share_enabled()
S
64 1 9
WP_Dark_Mode\Appsero\Insights::clear_schedule_event()
S
80 1 3
WPPOOL_Plugin::get_plugins()
S
79 1 3
WP_Dark_Mode\Compatibility\Compatibility::get_theme_slug()
S
81 1 3
WP_Dark_Mode\Compatibility\Compatibility::is_theme_supported()
S
73 1 5
WP_Dark_Mode\Boot::define_constants()
S
73 1 8
WP_Dark_Mode\Module\Elementor\DarkModeWidget::get_name()
S
82 1 3
WP_Dark_Mode\Appsero\Insights::tracking_allowed()
S
74 1 4
WP_Dark_Mode\Compatibility\Themes::avada()
S
82 1 3
WP_Dark_Mode\Appsero\Insights::notice()
S
77 1 4
WP_Dark_Mode\Admin\Recommended_Plugins::actions()
S
75 1 4
WP_Dark_Mode\Appsero\License::refresh_license_api()
S
67 1 9
WP_Dark_Mode\Appsero\Insights::hide_notice()
S
77 1 4
WP_Dark_Mode\Appsero\License::__construct()
S
65 1 8
WP_Dark_Mode\Compatibility\Compatibility::enqueue_theme_styles()
S
74 1 4
WP_Dark_Mode\Admin\REST::get_visitors()
S
72 1 5
WP_Dark_Mode\Switches::actions()
S
78 1 3
WP_Dark_Mode\Admin\REST::actions()
S
82 1 3
WP_Dark_Mode\SocialShare::render_social_share()
S
81 1 3
WP_Dark_Mode\Dependency::is_wp_compatible()
S
78 1 3
WP_Dark_Mode\Module\Elementor\DarkModeWidget::get_title()
S
79 1 3
WP_Dark_Mode\Triggers::filters()
S
79 1 3
WP_Dark_Mode\Appsero\License::check()
S
74 1 4
WP_Dark_Mode\SocialShare::social_share_options()
S
68 1 7
WP_Dark_Mode\Dependency::is_php_compatible()
S
78 1 3
WPPOOL_Plugin::listen_appsero()
S
64 1 10
WP_Dark_Mode\Compatibility\Compatibility::get_theme()
S
73 1 5
WP_Dark_Mode\Compatibility\Themes::twentytwenty()
S
82 1 3
WPPOOL_Plugin::slugify()
S
73 1 5
WP_Dark_Mode\SocialShare::filters()
S
79 1 3
WP_Dark_Mode\Admin\Notices::render_dashboard_widget()
S
69 1 7
WP_Dark_Mode\Module\Elementor\Element::register_widget()
S
74 1 4
WP_Dark_Mode\SocialShare::get_social_share_buttons()
S
65 1 9
WP_Dark_Mode\Model\Visitor::actions()
S
79 1 3
WP_Dark_Mode\Ajax::actions()
S
75 1 4
WP_Dark_Mode\Appsero\Insights::init_theme()
S
72 1 5
WP_Dark_Mode\Admin\Upgrade::upgrade_notices()
S
75 1 4
WP_Dark_Mode\Admin\Assets::load_textdomain()
S
77 1 3
WP_Dark_Mode\Assets::get_inline_scripts()
S
75 1 4
WPPOOL_Plugin::unsubscribe_plugin()
S
70 1 6
WP_Dark_Mode\Dependency::is_wp_dark_mode_ultimate_installed()
S
79 1 3
WP_Dark_Mode\Boot::register_rest_routes()
S
80 1 3
WP_Dark_Mode\Shortcode::hooks()
S
75 1 4
WP_Dark_Mode\Base::init()
S
74 1 5
WP_Dark_Mode\Appsero\License::clear_scheduler()
S
81 1 3
WP_Dark_Mode\Appsero\Insights::get_post_count()
S
66 1 9
WP_Dark_Mode\Appsero\Client::__trans()
S
79 1 3
WP_Dark_Mode\Extended::filters()
S
78 1 3
WP_Dark_Mode\Appsero\License::get_license()
S
79 1 3
WP_Dark_Mode\Admin\Menus::render_settings_page()
S
82 1 3
WP_Dark_Mode\Admin\Menus::render_recommended_plugins_page()
S
81 1 3
WP_Dark_Mode\Base::actions()
S
98 1 1
WP_Dark_Mode\Assets::minify()
S
68 1 6
WP_Dark_Mode\Admin\Switches::actions()
S
78 1 3
WP_Dark_Mode\SocialShare::get_share_count_by_url()
S
68 1 7