Code Analysis: Envato Elements 2.0.16

Function Rating Maintainability Complexity Lines of code
Envato_Elements\API\Settings::get_server_limits()
D
23
34 187
Envato_Elements\API\Settings::get_server_limits()
D
23
34 187
Envato_Elements\API\Requirements::install_requirement()
C
31 22 124
Envato_Elements\API\Requirements::install_requirement()
C
31 22 124
Envato_Elements\API\Photos_Import::import_photo()
C
31 23 108
Envato_Elements\API\Photos_Import::import_photo()
C
31 23 108
Envato_Elements\API\Template_Kit_Import::import_free_block()
C
33 22 98
Envato_Elements\API\Template_Kit_Import::import_free_block()
C
33 22 98
Envato_Elements\Utils\Extensions_API::api_call()
B
40 21 54
Envato_Elements\Utils\Extensions_API::api_call()
B
40 21 54
Envato_Elements\API\Template_Kit_Import::fetch_individual_templates()
A
35 13 83
Envato_Elements\API\Template_Kit_Import::fetch_individual_templates()
A
35 13 83
Envato_Elements\API\Requirements::install_plugin()
A
39 14 63
Envato_Elements\API\Requirements::install_plugin()
A
39 14 63
Envato_Elements\API\Template_Kit_Install::install_template_kit_from_elements()
A
39 11 73
Envato_Elements\API\Template_Kit_Install::install_template_kit_from_elements()
A
39 11 73
Envato_Elements\Backend\REST::ajax_handler()
A
46 13 36
Envato_Elements\Utils\Content_API::get_free_template_kits()
A
42 12 51
Envato_Elements\Utils\Content_API::get_free_template_kits()
A
42 12 51
Envato_Elements\Backend\REST::ajax_handler()
A
46 13 36
Envato_Elements\API\Template_Kit_Import::import_elementor_template_image()
A
41 10 55
Envato_Elements\API\Template_Kit_Import::import_elementor_template_image()
A
41 10 55
Envato_Elements\API\Requirements::install_theme()
A
42 10 50
Envato_Elements\API\Requirements::install_theme()
A
42 10 50
Envato_Elements\API\Template_Kit_Search::fetch_premium_search_results()
A
46 11 34
Envato_Elements\API\Template_Kit_Search::fetch_premium_search_results()
A
46 11 34
Envato_Elements\Backend\Template_Kits::import_single_template()
A
48 11 33
Envato_Elements\Backend\Template_Kits::import_single_template()
A
48 11 33
Envato_Elements\Backend\Subscription::verify_token_and_cache_user_info()
A
49 10 31
Envato_Elements\Backend\Subscription::verify_token_and_cache_user_info()
A
49 10 31
Envato_Elements\Backend\Options::get()
A
54 9 20
Envato_Elements\Backend\Options::get()
A
54 9 20
Envato_Elements\API\Photos_Search::fetch_photos_search_results()
A
49 8 29
Envato_Elements\API\Photos_Search::fetch_photos_search_results()
A
49 8 29
Envato_Elements\API\Template_Kit_Install::upload_template_kit_zip_file()
A
49 7 34
Envato_Elements\API\Template_Kit_Install::upload_template_kit_zip_file()
A
49 7 34
Envato_Elements\Utils\Content_API::get_free_blocks()
A
48 7 32
Envato_Elements\Utils\Content_API::get_free_blocks()
A
48 7 32
Envato_Elements\API\Subscription_API::verify_extensions_token()
S
48 6 37
Envato_Elements\API\Subscription_API::verify_extensions_token()
S
48 6 37
Envato_Elements\API\Template_Kit_Import::import_single_template()
S
48 5 35
Envato_Elements\API\Template_Kit_Import::import_single_template()
S
48 5 35
Envato_Elements\API\Template_Kit_Search::fetch_free_block_search_results()
S
56 6 17
Envato_Elements\API\Template_Kit_Search::fetch_free_template_kit_search_results()
S
56 6 17
Envato_Elements\API\Template_Kit_Search::fetch_free_template_kit_search_results()
S
56 6 17
Envato_Elements\API\Template_Kit_Search::fetch_free_block_search_results()
S
56 6 17
Envato_Elements\API\Template_Kit_Import::get_single_template_for_import()
S
51 5 28
Envato_Elements\API\Template_Kit_Import::get_single_template_for_import()
S
51 5 28
Envato_Elements\Backend\Template_Kits::before_delete_post()
S
60 6 12
Envato_Elements\Backend\Template_Kits::before_delete_post()
S
60 6 12
Envato_Elements\Utils\Content_API::fetch_file_content()
S
51 5 26
Envato_Elements\Utils\Content_API::fetch_file_content()
S
51 5 26
Envato_Elements\API\Template_Kit_Install::install_free_template_kit()
S
49 4 34
Envato_Elements\API\Template_Kit_Install::install_free_template_kit()
S
49 4 34
Envato_Elements\Backend\Template_Kits::get_installed_template_kit()
S
51 4 26
Envato_Elements\API\Settings::get_elementor_global_style_templates()
S
52 4 26
Envato_Elements\Backend\Template_Kits::get_installed_template_kit()
S
51 4 26
Envato_Elements\API\Settings::get_elementor_global_style_templates()
S
52 4 26
Envato_Elements\Backend\Template_Kits::get_installed_template_kits()
S
52 4 24
Envato_Elements\Backend\Welcome::admin_menu()
S
42 1 69
Envato_Elements\Backend\Template_Kits::get_installed_template_kits()
S
52 4 24
Envato_Elements\Backend\Welcome::admin_menu()
S
42 1 69
Envato_Elements\Backend\Options::set()
S
60 4 14
Envato_Elements\Backend\Options::set()
S
60 4 14
Envato_Elements\API\Requirements::activate_plugin()
S
63 4 11
Envato_Elements\API\Requirements::activate_plugin()
S
63 4 11
Envato_Elements\Backend\Photos_Embed::delete_attachment()
S
65 4 9
Envato_Elements\Utils\Extensions_API::set_token()
S
65 4 9
Envato_Elements\Utils\Extensions_API::set_token()
S
65 4 9
Envato_Elements\Backend\Photos_Embed::delete_attachment()
S
65 4 9
Envato_Elements\API\Settings::save_preferred_start_page()
S
55 2 21
Envato_Elements\API\Settings::save_preferred_start_page()
S
55 2 21
Envato_Elements\API\Template_Kit_Install::delete_template_kit()
S
59 2 16
Envato_Elements\API\Template_Kit_Install::delete_template_kit()
S
59 2 16
Envato_Elements\Backend\Subscription::get_subscription_status()
S
68 3 7
Envato_Elements\Plugin::db_upgrade_check()
S
73 3 5
Envato_Elements\Plugin::db_upgrade_check()
S
73 3 5
Envato_Elements\Backend\Subscription::get_subscription_status()
S
68 3 7
Envato_Elements\Utils\Content_API::download_zip()
S
59 2 14
Envato_Elements\Utils\Content_API::download_zip()
S
59 2 14
Envato_Elements\API\Project_Name::set_project_name()
S
60 2 14
Envato_Elements\API\Project_Name::set_project_name()
S
60 2 14
Envato_Elements\Backend\Options::print_admin_env_vars()
S
57 1 17
Envato_Elements\Backend\Options::print_admin_env_vars()
S
57 1 17
Envato_Elements\Backend\Options::reset_user()
S
67 2 8
Envato_Elements\Utils\Base::get_instance()
S
68 2 7
Envato_Elements\Backend\Template_Kits::get_single_template_data()
S
66 2 8
Envato_Elements\Utils\Extensions_API::__construct()
S
74 2 5
Envato_Elements\Utils\Limits::raise_limits()
S
67 2 8
Envato_Elements\Plugin::activation()
S
70 2 6
Envato_Elements\Backend\Downloaded_Items::record_download_event()
S
65 2 9
Envato_Elements\Utils\Base::get_instance()
S
68 2 7
Envato_Elements\Backend\Options::reset_user()
S
67 2 8
Envato_Elements\Plugin::activation()
S
70 2 6
Envato_Elements\API\API::rest_permission_check()
S
79 2 3
Envato_Elements\Utils\Limits::raise_limits()
S
67 2 8
Envato_Elements\Backend\Template_Kits::install_custom_css_into_customizer()
S
66 2 8
Envato_Elements\API\API::rest_permission_check()
S
79 2 3
Envato_Elements\Backend\Downloaded_Items::record_download_event()
S
65 2 9
Envato_Elements\Utils\Extensions_API::get_extension_id()
S
69 2 7
Envato_Elements\Utils\Extensions_API::get_token_url()
S
62 2 10
Envato_Elements\Utils\Extensions_API::get_token_url()
S
62 2 10
Envato_Elements\Backend\Downloaded_Items::find_downloaded_id()
S
74 2 4
Envato_Elements\Backend\Template_Kits::install_custom_css_into_customizer()
S
66 2 8
Envato_Elements\Utils\Extensions_API::get_extension_id()
S
69 2 7
Envato_Elements\Utils\Extensions_API::__construct()
S
74 2 5
Envato_Elements\Backend\Template_Kits::get_single_template_data()
S
66 2 8
Envato_Elements\Backend\Downloaded_Items::find_downloaded_id()
S
74 2 4
Envato_Elements\API\API::register_endpoint()
S
61 1 14
Envato_Elements\API\API::register_endpoint()
S
61 1 14
envato_elements_fail_php_version()
S
61 1 13
envato_elements_fail_php_version()
S
61 1 13
Envato_Elements\Backend\Welcome::admin_page_open()
S
73 1 13
Envato_Elements\Backend\Welcome::admin_page_open()
S
73 1 13
Envato_Elements\Backend\REST::register_routes()
S
63 1 12
Envato_Elements\Backend\REST::register_routes()
S
63 1 12
Envato_Elements\Utils\Extensions_API::encode_url_parameter()
S
71 1 5
Envato_Elements\Utils\Limits::get_max_input_vars()
S
80 1 3
Envato_Elements\API\Template_Kit_Search::register_api_endpoints()
S
72 1 5
Envato_Elements\Utils\Base::__wakeup()
S
78 1 3
Envato_Elements\Backend\Photos_Embed::__construct()
S
70 1 6
Envato_Elements\API\Banners::register_api_endpoints()
S
79 1 3
Envato_Elements\API\Banners::register_api_endpoints()
S
79 1 3
Envato_Elements\API\Photos_Import::register_api_endpoints()
S
79 1 3
Envato_Elements\Backend\Template_Kits::__construct()
S
79 1 3
Envato_Elements\Backend\Downloaded_Items::remove_download_event()
S
72 1 5
Envato_Elements\Backend\Photos_Embed::__construct()
S
70 1 6
Envato_Elements\Plugin::admin_init()
S
78 1 4
Envato_Elements\API\API::format_error()
S
64 1 10
Envato_Elements\Utils\Limits::get_max_input_vars()
S
80 1 3
Envato_Elements\API\Photos_Import::register_api_endpoints()
S
79 1 3
Envato_Elements\API\Requirements::register_api_endpoints()
S
79 1 3
Envato_Elements\Backend\Template_Kits::load_template_kit_library()
S
80 1 3
Envato_Elements\API\Template_Kit_Import::fetch_all_installed_template_kits()
S
76 1 4
Envato_Elements\API\Photos_Search::register_api_endpoints()
S
79 1 3
Envato_Elements\API\Settings::reset_users_settings()
S
71 1 6
Envato_Elements\Backend\Elementor_Modal::enqueue_embedded_iframe_styles()
S
73 1 4
Envato_Elements\Utils\Base::__clone()
S
78 1 3
Envato_Elements\API\Settings::register_api_endpoints()
S
67 1 7
Envato_Elements\Backend\Elementor_Modal::__construct()
S
75 1 4
envato_elements_fail_wp_version()
S
71 1 5
Envato_Elements\Backend\Welcome::admin_page_assets()
S
73 1 4
Envato_Elements\API\API::format_error()
S
64 1 10
Envato_Elements\Backend\Template_Kits::load_template_kit_library()
S
80 1 3
envato_elements_fail_wp_version()
S
71 1 5
Envato_Elements\API\Settings::register_api_endpoints()
S
67 1 7
Envato_Elements\Backend\Template_Kits::process_zip_file()
S
76 1 4
Envato_Elements\API\Requirements::register_api_endpoints()
S
79 1 3
Envato_Elements\Backend\Template_Kits::delete_template_kit()
S
73 1 5
Envato_Elements\API\Banners::dismiss_banner()
S
65 1 9
Envato_Elements\Utils\Base::__clone()
S
78 1 3
Envato_Elements\API\Template_Kit_Install::register_api_endpoints()
S
69 1 6
Envato_Elements\Plugin::__construct()
S
72 1 5
Envato_Elements\API\Project_Name::register_api_endpoints()
S
79 1 3
envato_elements_load_plugin_textdomain()
S
82 1 3
Envato_Elements\Backend\Elementor_Modal::enqueue_editor_scripts()
S
75 1 4
Envato_Elements\API\API::__construct()
S
82 1 3
Envato_Elements\API\Project_Name::register_api_endpoints()
S
79 1 3
Envato_Elements\Backend\Template_Kits::delete_template_kit()
S
73 1 5
Envato_Elements\Backend\Photos_Embed::load_custom_wp_admin_scripts()
S
66 1 8
Envato_Elements\API\API::format_success()
S
79 1 3
Envato_Elements\Plugin::admin_init()
S
78 1 4
Envato_Elements\Backend\Downloaded_Items::get_downloaded_items()
S
79 1 3
Envato_Elements\API\Template_Kit_Import::register_api_endpoints()
S
66 1 8
Envato_Elements\Backend\Template_Kits::process_zip_file()
S
76 1 4
Envato_Elements\Backend\Welcome::admin_page_assets()
S
73 1 4
Envato_Elements\API\Banners::dismiss_banner()
S
65 1 9
Envato_Elements\Utils\Extensions_API::get_token()
S
82 1 3
Envato_Elements\Backend\Options::__construct()
S
72 1 5
Envato_Elements\Backend\Template_Kits::__construct()
S
79 1 3
Envato_Elements\API\Template_Kit_Import::fetch_all_installed_template_kits()
S
76 1 4
Envato_Elements\Plugin::__construct()
S
72 1 5
Envato_Elements\Utils\Extensions_API::get_token()
S
82 1 3
Envato_Elements\Utils\Limits::get_current_ini_bytes()
S
80 1 3
Envato_Elements\Backend\REST::__construct()
S
75 1 4
Envato_Elements\Backend\Downloaded_Items::get_downloaded_items()
S
79 1 3
Envato_Elements\Utils\Limits::get_max_execution_time()
S
80 1 3
Envato_Elements\Utils\Limits::get_max_execution_time()
S
80 1 3
Envato_Elements\Utils\Base::__wakeup()
S
78 1 3
Envato_Elements\API\API::format_success()
S
79 1 3
Envato_Elements\API\Template_Kit_Install::register_api_endpoints()
S
69 1 6
Envato_Elements\Backend\Elementor_Modal::enqueue_editor_scripts()
S
75 1 4
Envato_Elements\API\Settings::reset_users_settings()
S
71 1 6
envato_elements_load_plugin_textdomain()
S
82 1 3
Envato_Elements\Backend\REST::__construct()
S
75 1 4
Envato_Elements\API\Subscription_API::register_api_endpoints()
S
79 1 3
Envato_Elements\Plugin::admin_menu()
S
82 1 3
Envato_Elements\API\Settings::save_elementor_global_style_template()
S
68 1 7
Envato_Elements\Backend\Options::__construct()
S
72 1 5
Envato_Elements\Plugin::admin_menu()
S
82 1 3
Envato_Elements\API\API::__construct()
S
82 1 3
Envato_Elements\API\Photos_Search::register_api_endpoints()
S
79 1 3
Envato_Elements\Utils\Limits::get_current_ini_bytes()
S
80 1 3
Envato_Elements\Backend\Elementor_Modal::enqueue_embedded_iframe_styles()
S
73 1 4
Envato_Elements\API\Settings::save_elementor_global_style_template()
S
68 1 7
Envato_Elements\Backend\Photos_Embed::load_custom_wp_admin_scripts()
S
66 1 8
Envato_Elements\Utils\Extensions_API::encode_url_parameter()
S
71 1 5
Envato_Elements\API\Subscription_API::register_api_endpoints()
S
79 1 3
Envato_Elements\Backend\Downloaded_Items::remove_download_event()
S
72 1 5
Envato_Elements\API\Template_Kit_Search::register_api_endpoints()
S
72 1 5
Envato_Elements\Backend\Elementor_Modal::__construct()
S
75 1 4
Envato_Elements\API\Template_Kit_Import::register_api_endpoints()
S
66 1 8