Code Analysis: Variation Swatches for WooCommerce 1.1.17

Function Rating Maintainability Complexity Lines of code
Woo_Variation_Swatches::feed()
D
31 40 93
wvs_variation_attribute_options_html()
D
27
35 138
wvs_default_variable_item()
D
32 34 88
WVS_Term_Meta::generate_form_fields()
C
31 26 110
WVS_Customizer::add_section()
B
37 22 71
wvs_default_image_variation_attribute_options()
B
38 21 60
wvs_button_variation_attribute_options()
B
39 20 54
wvs_color_variation_attribute_options()
B
39 20 54
wvs_image_variation_attribute_options()
B
39 20 54
wvs_radio_variation_attribute_options()
B
39 20 54
wvs_default_button_variation_attribute_options()
B
40 19 53
wvs_settings()
B
25
5 239
wvs_variable_item()
A
41 15 49
WVS_Term_Meta::save()
A
46 14 40
Woo_Variation_Swatches::deactivate_feedback()
A
36 11 74
WVS_Settings_API::settings_init()
A
45 12 37
Woo_Variation_Swatches_Export_Import::get_attachment_id_from_url()
A
40 10 65
Woo_Variation_Swatches_Export_Import::export_column_data()
A
46 11 34
Woo_Variation_Swatches_Export_Import::process_wc_import()
A
47 11 32
WVS_Settings_API::number_field_callback()
A
57 12 12
Woo_Variation_Swatches::internal_feed()
A
43 9 47
WVS_Settings_API::do_settings_fields()
A
47 10 32
wp_get_registered_image_subsizes()
A
48 9 34
WVS_Settings_API::array2html_attr()
A
54 10 19
Woo_Variation_Swatches::enqueue_scripts()
A
44 8 45
storepress_hook_info()
A
45 8 41
WVS_Settings_API::field_callback()
A
51 8 29
Woo_Variation_Swatches::body_class()
A
51 8 26
WVS_Settings_API::do_settings_sections()
A
54 8 20
wvs_product_option_terms_old()
A
46 7 35
WVS_Settings_API::get_option()
A
55 8 18
WVS_Settings_API::get_last_active_tab()
A
56 8 18
WVS_Settings_API::settings_form()
A
45 6 46
WVS_Settings_API::add_admin_bar()
S
48 6 34
WVS_Settings_API::set_defaults()
S
56 7 17
dokan_support_wvs_product_option_terms()
S
48 6 31
wvs_product_option_terms()
S
48 6 31
wvs_install_woo_variation_gallery()
S
57 7 16
WVS_Term_Meta::field_start()
S
54 6 21
Woo_Variation_Swatches::admin_enqueue_scripts()
S
46 5 35
wvs_locate_template()
S
56 6 20
Woo_Variation_Swatches::after_plugin_active()
S
56 6 17
wvs_add_product_taxonomy_meta()
S
56 5 17
Woo_Variation_Swatches::get_theme_file_path()
S
57 5 16
Woo_Variation_Swatches::get_theme_file_uri()
S
57 5 16
wvs_wc_product_has_attribute_type()
S
54 4 21
Woo_Variation_Swatches::locate_template()
S
56 4 18
wvs_defer_script_load()
S
62 5 10
WVS_Settings_API::save_reserved()
S
61 4 13
WVS_Settings_API::select_field_callback()
S
58 4 12
wvs_install_woo_variation_gallery_notice()
S
61 4 12
WVS_Settings_API::__construct()
S
50 3 26
Woo_Variation_Swatches_Cache::delete_all_transient_from_db()
S
61 4 11
wvs_taxonomy_meta_fields()
S
54 3 24
wvs_available_attributes_types()
S
54 3 23
Woo_Variation_Swatches::hooks()
S
55 3 18
WVS_Customize_Alpha_Color_Control::render_content()
S
60 3 17
Woo_Variation_Swatches::deactivate_feedback_reasons()
S
46 1 46
wvs_woo_layout_injector_script_override()
S
66 4 7
WVS_Settings_API::text_field_callback()
S
64 4 8
Woo_Variation_Swatches_Cache::get_transient()
S
64 4 9
Woo_Variation_Swatches::feed_css_uri()
S
66 4 7
WVS_Settings_API::sanitize_callback()
S
66 4 8
wvs_get_product_attribute_dual_color()
S
59 3 15
wvs_clear_transient()
S
61 3 14
wvs_get_wc_attribute_taxonomy()
S
58 3 14
WVS_Settings_API::pro_field_callback()
S
60 3 13
Woo_Variation_Swatches::includes()
S
62 3 12
WVS_Settings_API::post_select_field_callback()
S
60 3 11
WVS_Term_Meta::taxonomy_columns()
S
63 3 11
Woo_Variation_Swatches::deactivate_feedback_dialog()
S
62 3 11
wvs_is_plugin_installed()
S
63 3 11
Woo_Variation_Swatches::wc_requirement_notice()
S
55 2 19
Woo_Variation_Swatches::wc_version_requirement_notice()
S
67 3 7
WVS_Settings_API::color_field_callback()
S
66 3 7
WVS_Settings_API::get_options_tab_pro_attr()
S
72 3 4
WVS_Term_Meta::taxonomy_column()
S
64 3 9
WVS_Term_Meta::delete_term()
S
67 3 7
WVS_Settings_API::get_reserved()
S
66 3 8
WVS_Term_Meta::generate_fields()
S
69 3 6
WVS_Term_Meta::field_end()
S
61 2 15
WVS_Customize_Alpha_Color_Control::enqueue()
S
72 3 4
WVS_Customize_Heading_Control::enqueue()
S
73 3 4
WVS_Settings_API::is_reset_all()
S
77 3 3
WVS_Settings_API::is_show_pro()
S
77 3 3
WVS_Settings_API::make_implode_html_attributes()
S
63 3 10
WVS_Settings_API::get_field_description()
S
63 3 10
wvs_is_ie11()
S
64 3 9
Woo_Variation_Swatches::add_inline_style()
S
59 2 14
Woo_Variation_Swatches::get_template()
S
60 2 12
WVS_Settings_API::radio_field_callback()
S
59 2 12
WVS_Settings_API::add_menu()
S
62 2 11
Woo_Variation_Swatches::add_setting()
S
58 1 17
Woo_Variation_Swatches_Cache::delete_transient()
S
75 2 4
wvs_is_select_attribute()
S
71 2 6
WVS_Settings_API::show_pro_label_tag()
S
75 2 5
Woo_Variation_Swatches_Cache::get_cache_key()
S
78 2 3
wvs_is_radio_attribute()
S
71 2 6
Woo_Variation_Swatches_Cache::delete_all_transient()
S
75 2 4
WVS_Settings_API::options_tabs()
S
66 2 9
WVS_Settings_API::show_pro_label_tag_content()
S
75 2 5
Woo_Variation_Swatches::get_option()
S
71 2 6
wvs_product_attributes_types()
S
70 2 6
WVS_Settings_API::plugin_action_links()
S
65 2 8
WVS_Settings_API::get_default()
S
78 2 3
Woo_Variation_Swatches::add_product_attribute_dialog()
S
60 1 15
WVS_Term_Meta::get_img_src()
S
67 2 8
WVS_Customizer::sanitize_checkbox()
S
74 2 4
wvs_get_product_attribute_image()
S
70 2 6
Woo_Variation_Swatches_Cache::__construct()
S
64 2 10
Woo_Variation_Swatches::define()
S
75 2 5
wvs_get_product_attribute_color()
S
70 2 6
Woo_Variation_Swatches::settings_api()
S
72 2 6
Woo_Variation_Swatches_Cache::delete_cache()
S
75 2 4
wvs_variable_items_wrapper()
S
62 2 9
Woo_Variation_Swatches::plugin_action_links()
S
65 2 8
wvs_is_color_attribute()
S
71 2 6
wvs_image_variation_attribute_preview()
S
65 2 8
wvs_is_image_attribute()
S
71 2 6
Woo_Variation_Swatches_Cache::delete_all_cache()
S
76 2 4
WVS_Settings_API::checkbox_field_callback()
S
67 2 6
Woo_Variation_Swatches_Cache::get_cache()
S
75 2 4
Woo_Variation_Swatches::instance()
S
72 2 6
WVS_Settings_API::admin_inline_js()
S
68 1 15
WVS_Settings_API::build_dependency()
S
67 2 7
Woo_Variation_Swatches::get_pro_link()
S
65 2 9
Woo_Variation_Swatches::php_requirement_notice()
S
64 2 9
WVS_Customize_Heading_Control::render_content()
S
71 2 6
Woo_Variation_Swatches::plugin_row_meta()
S
61 2 10
wvs_is_button_attribute()
S
71 2 6
WVS_Settings_API::get_options_tab_css_classes()
S
70 2 5
wvs_get_all_image_sizes()
S
59 1 14
Woo_Variation_Swatches::constants()
S
60 1 13
WVS_Term_Meta::__construct()
S
59 1 13
Woo_Variation_Swatches::plugin_activated()
S
75 1 4
Woo_Variation_Swatches_Cache::get_transients()
S
80 1 3
WVS_Settings_API::reset_url()
S
77 1 3
WVS_Term_Meta::add()
S
82 1 3
Woo_Variation_Swatches::get_theme_dir()
S
79 1 3
WVS_Customize_Heading::add_controls()
S
68 1 7
Woo_Variation_Swatches::get_wc_asset_url()
S
78 1 3
WVS_Customizer::add_panel()
S
68 1 7
wvs_wpml_object_id()
S
74 1 4
Woo_Variation_Swatches::get_parent_theme_dir()
S
79 1 3
WVS_Settings_API::get_options()
S
80 1 3
wvs_tutorial_tab_contents()
S
74 1 5
WVS_Settings_API::get_defaults()
S
82 1 3
Woo_Variation_Swatches_Export_Import::__construct()
S
66 1 7
Woo_Variation_Swatches_Cache::get_transient_name()
S
82 1 3
WVS_Settings_API::update_option()
S
72 1 5
Woo_Variation_Swatches::language()
S
78 1 3
wvs_color_variation_attribute_preview()
S
71 1 5
WVS_Settings_API::settings_url()
S
78 1 3
Woo_Variation_Swatches::add_term_meta()
S
79 1 3
Woo_Variation_Swatches_Cache::set_transient()
S
67 1 8
Woo_Variation_Swatches::get_parent_theme_name()
S
79 1 3
Woo_Variation_Swatches::assets_uri()
S
75 1 4
Woo_Variation_Swatches_Export_Import::default_import_column_name()
S
75 1 4
Woo_Variation_Swatches::plugin_deactivated()
S
80 1 3
Woo_Variation_Swatches::plugin_path()
S
80 1 3
Woo_Variation_Swatches_Cache::set_cache()
S
75 1 4
Woo_Variation_Swatches::get_theme_version()
S
80 1 3
woo_variation_swatches()
S
82 1 3
wvs_install_plugin()
S
69 1 7
Woo_Variation_Swatches::template_uri()
S
78 1 3
Woo_Variation_Swatches::include_path()
S
75 1 4
Woo_Variation_Swatches::is_gallery_active()
S
81 1 3
WVS_Term_Meta::edit()
S
81 1 3
Woo_Variation_Swatches::images_uri()
S
75 1 4
WVS_Settings_API::before_update()
S
72 1 5
WVS_Customize_Heading::__construct()
S
70 1 6
WVS_Term_Meta::placeholder_img_src()
S
80 1 3
Woo_Variation_Swatches::plugin_uri()
S
79 1 3
Woo_Variation_Swatches::feed_close()
S
73 1 4
WVS_Settings_API::delete_settings()
S
75 1 4
woodmart_has_swatches()
S
83 1 3
Woo_Variation_Swatches::is_required_wc_version()
S
79 1 3
Woo_Variation_Swatches::basename()
S
82 1 3
wvs_upgrade_plugin()
S
69 1 7
add_wvs_pro_preview_tab()
S
65 1 9
Woo_Variation_Swatches_Export_Import::import_column_name()
S
76 1 4
WVS_Customize_Heading::add_settings()
S
73 1 5
Woo_Variation_Swatches::is_wc_active()
S
80 1 3
WVS_Customizer::__construct()
S
65 1 9
wvs_ajax_variation_threshold()
S
80 1 3
Woo_Variation_Swatches::wp_images_uri()
S
75 1 4
add_wvs_pro_preview_tab_panel()
S
75 1 5
WVS_Customize_Alpha_Color_Control::__construct()
S
79 1 3
WVS_Term_Meta::enqueue_scripts()
S
74 1 5
Woo_Variation_Swatches::is_required_php_version()
S
79 1 3
Woo_Variation_Swatches::__construct()
S
69 1 7
Woo_Variation_Swatches::version()
S
80 1 3
WVS_Customizer::includes()
S
77 1 4
Woo_Variation_Swatches_Export_Import::export_column_name()
S
76 1 4
Woo_Variation_Swatches::get_theme_name()
S
80 1 3
Woo_Variation_Swatches::template_override_dir()
S
79 1 3
Woo_Variation_Swatches::is_pro_active()
S
80 1 3
Woo_Variation_Swatches::dirname()
S
82 1 3
WVS_Settings_API::set_default()
S
77 1 3
Woo_Variation_Swatches_Cache::get_transient_group()
S
80 1 3
WVS_Settings_API::after_update()
S
82 1 3
Woo_Variation_Swatches_Export_Import::prepare_attributes_for_export()
S
82 1 3
WVS_Settings_API::last_tab_input()
S
79 1 3
Woo_Variation_Swatches::template_path()
S
78 1 3
Woo_Variation_Swatches::clean_css()
S
69 1 6
WVS_Customize_Heading_Control::__construct()
S
79 1 3
Woo_Variation_Swatches::get_options()
S
80 1 3