Code Analysis: ProductX – Gutenberg WooCommerce Blocks 2.1.3

Function Rating Maintainability Complexity Lines of code
WOPB\blocks\Product_Grid_4::get_attributes()
D
0
4 2,887
WOPB\blocks\Product_Grid_2::get_attributes()
D
0
4 2,827
WOPB\blocks\Product_Grid_1::get_attributes()
D
0
4 2,819
WOPB\blocks\Product_Grid_3::get_attributes()
D
0
4 2,796
WOPB\blocks\Product_List_1::get_attributes()
D
0
4 2,132
WOPB\blocks\Product_Category_1::get_attributes()
D
2
4 1,793
WOPB\blocks\Product_Grid_4::content()
D
13
101 190
WOPB\blocks\Product_Grid_3::content()
D
14
96 190
WOPB\blocks\Product_Grid_2::content()
D
14
95 187
WOPB\blocks\Product_Grid_1::content()
D
16
93 160
WOPB\blocks\Product_Category_2::get_attributes()
D
6
4 1,328
WOPB\Functions::get_query()
D
18
69 205
WOPB\Quickview::wopb_quickview_callback()
D
20
49 191
WOPB\blocks\Product_Image::get_attributes()
D
12
4 806
WOPB\Functions::conditions()
D
29 50 108
WOPB\blocks\Product_Tab::get_attributes()
D
14
4 716
WOPB\blocks\Product_List_1::content()
D
27
44 113
WOPB\Options_Settings::get_settings_render()
D
29
44 109
WOPB\blocks\Heading::get_attributes()
D
14
4 687
WOPB\Functions::get_quick_query()
D
27
35 149
WOPB\blocks\Image::get_attributes()
D
16
4 548
WOPB\blocks\Product_Review::get_attributes()
D
17
4 545
WOPB\blocks\Archive_Title::get_attributes()
D
18
4 504
WOPB\blocks\Product_Cart::get_attributes()
C
18
4 479
WOPB\blocks\Product_Category_1::content()
C
35 25 74
WOPB\blocks\Product_Price::get_attributes()
B
22
4 357
WOPB\blocks\Product_Rating::get_attributes()
B
22
4 348
WOPB\blocks\Product_Category_2::content()
B
38 23 58
WOPB\blocks\Product_Image::content()
B
32 20 98
WOPB\blocks\Product_Meta::get_attributes()
B
22
4 336
WOPB\Functions::pagination()
B
42 23 43
WOPB\Wishlist::wopb_wishlist_callback()
B
39 22 57
WOPB\RequestAPI::wopb_new_post_callback()
B
37 20 78
WOPB\Functions::get_category_data()
B
36 17 92
WOPB\Functions::filter()
B
39 19 61
WOPB\blocks\Product_Additional_Info::get_attributes()
B
24
4 285
WOPB\REST_API::wopb_route_post_data()
B
37 18 62
WOPB\blocks\Archive_Title::get_data()
B
39 17 72
WOPB\blocks\Product_Description::get_attributes()
B
26
4 258
WOPB\blocks\Product_Breadcrumb::get_attributes()
B
26
4 247
WOPB\REST_API::wopb_route_preview_data()
B
39 16 60
WOPB\blocks\Product_Stock::get_attributes()
B
27
4 236
WOPB\Options::get_changelog_data()
B
41 16 54
WOPB\Options_Settings::get_changelog_data()
B
41 16 54
WOPB\RequestAPI::wopb_edit_callback()
A
43 16 42
WOPB\blocks\Archive_Title::content()
A
48 16 25
WOPB\Blocks::wopb_filter_callback()
A
44 15 39
WOPB\blocks\Product_Title::get_attributes()
A
29
4 198
WOPB\blocks\Product_Short::get_attributes()
A
29 4 194
WOPB\Wishlist::wishlist_shortcode_callback()
A
39 13 58
WOPB\blocks\Product_Meta::content()
A
42 12 49
WOPB\Functions::get_add_to_cart()
A
40 11 61
WOPB\RequestAPI::wopb_search_callback()
A
40 10 61
WOPB\Caches::download_source()
A
46 11 41
WOPB\Options_Settings::create_admin_page()
A
44 10 55
WOPB\Deactive::get_data()
A
45 11 36
WOPB\Condition::builder_footer_callback()
A
37 5 120
WOPB\Options_Overview::create_admin_page()
A
32 2 164
WOPB\Blocks::wopb_load_more_callback()
A
49 11 27
WOPB\blocks\Product_Tab::content()
A
42 9 53
WOPB\Caches::get_source_data()
A
48 10 31
WOPB\Compare::wopb_compare_callback()
A
48 10 30
WOPB\blocks\Image::content()
A
48 10 28
WOPB\Functions::get_filter_query()
A
42 8 57
WOPB\Deactive::deactive_css()
A
50 1 159
WOPB\Options_Addons::create_admin_page()
A
45 8 43
WOPB\Functions::get_image()
A
49 9 28
WOPB\Blocks::wopb_pagination_callback()
A
49 9 28
WOPB\blocks\Product_Rating::content()
A
49 9 27
WOPB\Functions::set_css_style()
A
48 8 33
WOPB\Initialization::check_theme_compatibility()
A
49 8 29
WOPB\Quickview::get_option_settings()
A
34 1 133
WOPB\blocks\Product_Additional_Info::content()
A
50 8 26
WOPB\Compare::compare_shortcode_callback()
A
45 7 39
WOPB\Deactive::get_plugins()
A
52 8 22
WOPB\Compatibility::plugin_upgrade_completed()
A
54 8 21
WOPB\Styles::save_block_content_css()
A
47 7 35
WOPB\Functions::get_flip_image()
A
54 8 20
WOPB\Functions::get_deals()
S
49 7 28
WOPB\Notice::wc_notice_css()
S
53 1 115
WOPB\blocks\Product_Price::content()
S
51 7 23
WOPB\Deactive::deactive_html()
S
49 6 34
WOPB\Options::remove_all_notices()
S
67 8 6
WOPB\Builder::builder_filter_callback()
S
62 8 10
WOPB\Styles::add_block_inline_css()
S
51 6 26
WOPB\Styles::set_top_css()
S
51 6 25
WOPB\Builder::filter_restrict_builder_callback()
S
53 6 24
WOPB\Caches::create_directory()
S
52 6 23
WOPB\Functions::get_quickview()
S
54 6 19
WOPB\Compare::add_compare_html()
S
56 6 16
WOPB\Wishlist::add_wishlist_html()
S
56 6 16
WOPB\Wishlist::get_option_settings()
S
38 1 90
WOPB\Styles::appened_css_call()
S
50 5 26
WOPB\Builder::custom_head_templates()
S
48 4 40
WOPB\FlipImage::feature_image_metabox()
S
51 5 24
WOPB\blocks\Product_Description::content()
S
52 5 24
WOPB\Deactive::send_plugin_data()
S
52 5 23
WOPB\Notice::wc_install_callback()
S
46 4 37
WOPB\Initialization::register_scripts_back_callback()
S
53 5 20
WOPB\Shortcode::shortcode_callback()
S
54 5 20
WOPB\Initialization::track_product_view()
S
56 5 18
WOPB\Caches::download_images()
S
57 5 17
WOPB\blocks\Product_Breadcrumb::content()
S
55 5 17
WOPB\blocks\Product_Stock::content()
S
56 5 16
WOPB\Functions::reusable_id()
S
59 5 15
WOPB\Functions::get_wishlist_html()
S
56 5 15
WOPB\Options_Settings::get_option_settings_keys()
S
60 5 14
WOPB\Functions::init_set_data()
S
50 4 29
WOPB\Initialization::addon_settings_callback()
S
59 5 13
WOPB\Functions::get_builder_attr()
S
61 5 12
WOPB\Functions::get_wishlist_id()
S
60 5 12
WOPB\Deactive::deactive_js()
S
50 1 71
WOPB\Notice::admin_init_callback()
S
61 5 11
WOPB\blocks\Product_Cart::content()
S
51 4 25
WOPB\Compare::get_option_settings()
S
40 1 70
WOPB\Notice::wc_notice_js()
S
58 1 69
WOPB\Blocks::blocks()
S
42 2 51
WOPB\blocks\Product_Title::content()
S
54 4 19
WOPB\Caches::get_design_callback()
S
55 4 18
WOPB\Caches::get_all_templates_callback()
S
55 4 18
WOPB\REST_API::wopb_route_taxonomy_info_data()
S
56 4 18
WOPB\Wishlist::initial_setup()
S
49 3 32
WOPB\blocks\Product_Review::content()
S
56 4 17
WOPB\blocks\Product_Short::content()
S
56 4 16
WOPB\Initialization::popular_posts_tracker_callback()
S
64 5 8
WOPB\Functions::get_compare()
S
56 4 15
WOPB\Compare::initial_setup()
S
50 3 30
WOPB\REST_API::get_images()
S
60 4 14
WOPB\RequestAPI::delete_option_meta_action()
S
60 4 13
WOPB\Builder::metabox_save_data()
S
61 4 13
wopb_quickview_init()
S
61 4 12
wopb_flipimage_init()
S
61 4 12
WOPB\Initialization::include_addons()
S
60 4 12
WOPB\Functions::isActive()
S
61 4 12
wopb_compare_init()
S
61 4 12
wopb_wishlist_init()
S
61 4 12
WOPB\Functions::is_builder()
S
63 4 11
WOPB\Options::sanitize()
S
62 4 11
WOPB\Options_Settings::sanitize()
S
62 4 11
WOPB\Notice::wopb_promotional_notice_callback()
S
56 3 21
WOPB\Functions::excerpt_word()
S
56 3 19
WOPB\Caches::fetch_all_design_callback()
S
57 3 16
WOPB\Caches::get_template_data()
S
48 1 46
WOPB\REST_API::wopb_register_route()
S
45 1 46
WOPB\Functions::get_taxonomy_list()
S
62 4 10
WOPB\Functions::is_lc_active()
S
65 4 9
WOPB\Initialization::register_scripts_front_callback()
S
65 4 9
WOPB\Saved_Templates::custom_head_templates()
S
64 4 9
WOPB\Saved_Templates::disable_new_post_templates()
S
64 4 9
WOPB\Deactive::get_themes()
S
59 3 15
WOPB\Builder::disable_new_post_templates()
S
64 4 9
WOPB\Options_Settings::get_option_settings()
S
46 1 45
WOPB\Functions::is_wc_ready()
S
65 4 8
WOPB\Blocks::wopb_addcart_callback()
S
63 4 10
WOPB\Functions::get_page_number()
S
64 4 9
WOPB\Functions::is_archive_builder()
S
65 4 8
WOPB\Wishlist::__construct()
S
58 3 14
WOPB\Compare::__construct()
S
58 3 14
WOPB\Styles::save_block_css_callback()
S
49 1 44
WOPB\REST_API::list_items()
S
60 3 13
WOPB\blocks\Product_Meta::list_items()
S
60 3 13
WOPB\Functions::taxonomy()
S
61 3 12
WOPB\Blocks::get_single_section_callback()
S
60 3 12
WOPB\Deactive::__construct()
S
61 3 11
WOPB\blocks\Heading::content()
S
61 3 11
wopb_templates_init()
S
62 3 11
WOPB\Quickview::initial_setup()
S
52 2 26
WOPB\Deactive::get_settings()
S
49 1 38
WOPB\Options::menu_page_callback()
S
53 2 23
WOPB\Initialization::register_scripts_common()
S
55 2 18
WOPB\Notice::wc_installation_notice_callback()
S
57 2 18
WOPB\Initialization::requires()
S
57 2 18
WOPB\Notice::wc_activation_notice_callback()
S
57 2 17
WOPB\Builder::builder_post_type_callback()
S
49 1 31
WOPB\Saved_Templates::templates_post_type_callback()
S
49 1 31
WOPB\Initialization::register_category_callback()
S
59 2 16
WOPB\Builder::edit_condition_link_callback()
S
62 3 10
WOPB\Deactive::get_user_ip()
S
65 3 9
WOPB\Condition::is_builder()
S
73 3 4
WOPB\Deactive::wopb_tracking_callback()
S
64 3 10
WOPB\Functions::all_pages()
S
65 3 8
WOPB\Functions::in_string_part()
S
64 3 10
WOPB\Functions::get_ID()
S
74 3 4
WOPB\REST_API::wopb_route_imagesize_data()
S
70 3 6
WOPB\Templates::__construct()
S
64 3 9
WOPB\Templates::set_template_callback()
S
66 3 8
WOPB\Functions::get_setting()
S
66 3 8
WOPB\Functions::get_terms_id()
S
64 3 10
WOPB\FlipImage::get_option_settings()
S
51 1 29
wopb_builder_init()
S
63 2 11
WOPB\Options::get_option_settings()
S
53 1 26
WOPB\Options::plugin_action_links_callback()
S
61 2 11
WOPB\Options::plugin_settings_meta()
S
61 2 11
WOPB\Condition::load_media()
S
61 2 11
WOPB\Functions::svg_icon()
S
52 1 24
WOPB\Functions::get_best_selling_products()
S
56 1 23
WOPB\Initialization::__construct()
S
56 1 17
WOPB\Blocks::__construct()
S
57 1 17
WOPB\Condition::register_scripts_back_callback()
S
69 2 6
WOPB\Functions::get_premium_link()
S
65 2 8
WOPB\REST_API::wopb_route_category_data()
S
67 2 7
WOPB\Functions::slider_responsive_split()
S
66 2 8
WOPB\Functions::set_setting()
S
67 2 8
WOPB\Builder::builder_table_content()
S
72 2 5
WOPB\Condition::include_builder_files()
S
75 2 4
WOPB\Functions::get_image_size()
S
66 2 8
WOPB\Deactive::get_source_data_callback()
S
68 2 8
WOPB\REST_API::wopb_route_taxonomy_data()
S
69 2 6
WOPB\Compare::add_quickview_html()
S
67 2 7
WOPB\Styles::get_posts_call()
S
65 2 8
WOPB\Notice::set_dismiss_notice_callback()
S
70 2 6
WOPB\Functions::__construct()
S
72 2 5
WOPB\FlipImage::feature_image_save()
S
70 2 6
WOPB\Styles::require_block_css()
S
66 2 8
WOPB\Initialization::install_hook()
S
74 2 5
WOPB\Functions::get_ids()
S
69 2 7
WOPB\Initialization::activation_redirect()
S
73 2 5
WOPB\FlipImage::initial_setup()
S
66 2 9
WOPB\Blocks::get_all_sections_callback()
S
65 2 8
WOPB\FlipImage::__construct()
S
67 2 7
WOPB\Blocks::get_all_layouts_callback()
S
65 2 8
WOPB\Functions::get_compare_id()
S
74 2 4
WOPB\Builder::container_width_callback()
S
66 2 8
WOPB\Notice::set_promotional_notice_callback()
S
70 2 6
WOPB\Options_Contact::create_admin_page()
S
65 1 13
WOPB\Builder::__construct()
S
60 1 12
WOPB\Initialization::register_scripts_option_panel_callback()
S
61 1 11
WOPB\blocks\Product_Grid_1::register()
S
67 1 8
wopb_compare_config()
S
63 1 10
WOPB\blocks\Product_Additional_Info::__construct()
S
79 1 3
WOPB\FlipImage::feature_image_add_metabox()
S
77 1 3
WOPB\blocks\Product_Short::register()
S
67 1 8
WOPB\blocks\Product_Breadcrumb::register()
S
67 1 8
WOPB\Options_Addons::all_addons()
S
73 1 5
WOPB\blocks\Product_Cart::__construct()
S
79 1 3
WOPB\Wishlist::add_wishlist_scripts()
S
65 1 8
WOPB\Deactive::send_frequency_plugin_data()
S
81 1 3
WOPB\Caches::__construct()
S
74 1 4
WOPB\Functions::excerpt()
S
78 1 3
WOPB\blocks\Product_Stock::__construct()
S
79 1 3
WOPB\blocks\Product_Description::__construct()
S
79 1 3
WOPB\blocks\Product_Category_2::register()
S
67 1 8
wopb_templates_config()
S
63 1 10
WOPB\blocks\Product_Grid_2::__construct()
S
79 1 3
WOPB\blocks\Product_Breadcrumb::__construct()
S
79 1 3
WOPB\blocks\Archive_Title::__construct()
S
79 1 3
WOPB\blocks\Product_Image::__construct()
S
79 1 3
WOPB\blocks\Product_Category_1::register()
S
67 1 8
WOPB\blocks\Product_Meta::__construct()
S
79 1 3
WOPB\Deactive::data_collect_notice()
S
64 1 9
WOPB\Compatibility::__construct()
S
78 1 3
WOPB\Options::__construct()
S
67 1 7
WOPB\Options_Settings::__construct()
S
73 1 4
WOPB\blocks\Product_Grid_2::register()
S
67 1 8
WOPB\Functions::isPro()
S
80 1 3
wopb_language_load()
S
78 1 3
WOPB\Options_Addons::__construct()
S
77 1 3
WOPB\Quickview::__construct()
S
71 1 5
WOPB\Notice::wc_activate_callback()
S
73 1 5
WOPB\blocks\Product_Review::register()
S
67 1 8
WOPB\blocks\Product_List_1::__construct()
S
79 1 3
wopb_gallery_image_support()
S
75 1 5
WOPB\Notice::__construct()
S
72 1 5
wopb_function()
S
75 1 4
WOPB\blocks\Product_Grid_4::register()
S
67 1 8
WOPB\blocks\Product_Description::register()
S
67 1 8
WOPB\blocks\Product_Meta::register()
S
66 1 9
WOPB\blocks\Heading::register()
S
66 1 9
WOPB\blocks\Product_Grid_3::__construct()
S
79 1 3
WOPB\blocks\Product_Title::__construct()
S
79 1 3
WOPB\Initialization::footer_modal_callback()
S
67 1 9
WOPB\Saved_Templates::templates_table_content()
S
80 1 3
WOPB\blocks\Heading::__construct()
S
79 1 3
WOPB\Compare::add_compare_scripts()
S
65 1 8
WOPB\Styles::add_block_css_file()
S
76 1 4
WOPB\Deactive::is_local()
S
78 1 3
WOPB\blocks\Product_Rating::__construct()
S
79 1 3
WOPB\blocks\Product_Additional_Info::register()
S
67 1 8
WOPB\Saved_Templates::templates_table_head()
S
71 1 5
WOPB\Functions::content()
S
68 1 7
WOPB\blocks\Image::register()
S
66 1 9
WOPB\blocks\Product_Cart::register()
S
67 1 8
WOPB\blocks\Product_Title::register()
S
67 1 8
WOPB\blocks\Product_Category_2::__construct()
S
79 1 3
WOPB\Options::register_settings()
S
78 1 3
WOPB\Options_Overview::__construct()
S
77 1 3
WOPB\Shortcode::__construct()
S
79 1 3
WOPB\RequestAPI::__construct()
S
70 1 6
WOPB\blocks\Product_Grid_1::__construct()
S
79 1 3
wopb_flipimage_config()
S
63 1 10
WOPB\blocks\Product_Rating::register()
S
67 1 8
wopb_builder_config()
S
63 1 10
WOPB\REST_API::__construct()
S
79 1 3
WOPB\Templates::add_template_callback()
S
75 1 4
WOPB\blocks\Product_Tab::__construct()
S
79 1 3
WOPB\blocks\Product_Price::register()
S
67 1 8
WOPB\Builder::init_metabox_callback()
S
77 1 3
WOPB\blocks\Product_Short::__construct()
S
79 1 3
WOPB\Caches::get_source_data_callback()
S
81 1 3
WOPB\Saved_Templates::__construct()
S
67 1 7
WOPB\blocks\Product_Price::__construct()
S
79 1 3
WOPB\blocks\Product_Grid_4::__construct()
S
79 1 3
wopb_wishlist_config()
S
63 1 10
WOPB\blocks\Product_Grid_3::register()
S
67 1 8
WOPB\blocks\Product_List_1::register()
S
67 1 8
WOPB\blocks\Product_Image::register()
S
67 1 8
WOPB\blocks\Product_Stock::register()
S
67 1 8
WOPB\Styles::__construct()
S
76 1 4
WOPB\Initialization::swithch_thememe()
S
82 1 3
WOPB\blocks\Product_Tab::register()
S
67 1 8
WOPB\blocks\Product_Review::__construct()
S
79 1 3
WOPB\blocks\Product_Category_1::__construct()
S
79 1 3
WOPB\blocks\Image::__construct()
S
79 1 3
WOPB\Options_Settings::register_settings()
S
79 1 3
WOPB\Builder::builder_table_head()
S
71 1 5
wopb_quickview_config()
S
63 1 10
WOPB\Condition::__construct()
S
69 1 6
WOPB\Initialization::compatibility_check()
S
75 1 4
WOPB\Options_Contact::__construct()
S
77 1 3
WOPB\blocks\Archive_Title::register()
S
66 1 9