Code Analysis: Perfect Brands for WooCommerce 2.2.3

Function Rating Maintainability Complexity Lines of code
Perfect_Woocommerce_Brands\Shortcodes\PWB_All_Brands_Shortcode::pagination()
B
37 16 72
Perfect_Woocommerce_Brands\Admin\Pwb_Admin_Tab::get_settings()
B
26
6 218
Perfect_Woocommerce_Brands\Widgets\PWB_List_Widget::widget()
B
44 17 41
Perfect_Woocommerce_Brands\Widgets\PWB_List_Widget::form()
A
37 13 85
Perfect_Woocommerce_Brands\Admin\Brands_Custom_Fields::add_brands_metafields_save()
A
47 16 31
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::vc_map_shortcodes()
A
26
2 239
PWB_Notices::add_notices()
A
35 10 117
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::brand_desc_position()
A
52 15 22
Perfect_Woocommerce_Brands\Widgets\PWB_Filter_By_Brand_Widget::widget()
A
49 14 27
Perfect_Woocommerce_Brands\Admin\Brands_Exporter::brands_import()
A
45 11 43
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::action_woocommerce_single_product_summary()
A
46 11 35
Perfect_Woocommerce_Brands\Widgets\PWB_Filter_By_Brand_Widget::render_widget()
A
43 9 51
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::brand_logo_position()
A
48 10 35
Perfect_Woocommerce_Brands\Widgets\PWB_Dropdown_Widget::widget()
A
49 9 31
Perfect_Woocommerce_Brands\Widgets\PWB_Dropdown_Widget::form()
A
46 7 47
Perfect_Woocommerce_Brands\Shortcodes\PWB_Product_Carousel_Shortcode::products_data()
A
45 7 44
PWB_Notices::get_cross_sell()
A
51 8 27
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::pwb_brand_filter()
A
51 8 26
Perfect_Woocommerce_Brands\Admin\PWB_Migrate::admin_migrate_brands()
A
53 8 24
Perfect_Woocommerce_Brands\Widgets\PWB_Filter_By_Brand_Widget::form()
A
48 7 35
QL_Widget::display_dashboard_widget()
A
43 6 50
Perfect_Woocommerce_Brands\PWB_Suggestions_List_Table::prepare_items()
A
47 7 34
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::get_brands()
A
48 7 34
Perfect_Woocommerce_Brands\Shortcodes\PWB_Carousel_Shortcode::brands_data()
S
49 7 29
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::register_brands_taxonomy()
S
44 6 44
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::show_brands_in_loop()
S
51 7 25
Perfect_Woocommerce_Brands\Admin\PWB_Coupon::coupon_restriction()
S
47 6 38
Perfect_Woocommerce_Brands\Shortcodes\PWB_All_Brands_Shortcode::all_brands_shortcode()
S
47 6 37
Perfect_Woocommerce_Brands\Admin\Edit_Brands_Page::admin_set_featured_brand()
S
48 6 37
Perfect_Woocommerce_Brands\Admin\PWB_Coupon::is_valid_coupon_for_brand()
S
53 7 21
Perfect_Woocommerce_Brands\Admin\PWB_Coupon::is_valid_coupon_for_exclude_brand()
S
53 7 21
Perfect_Woocommerce_Brands\Admin\PWB_Dummy_Data::admin_dummy_data()
S
53 7 21
Perfect_Woocommerce_Brands\Admin\PWB_System_Status::system_status()
S
47 6 34
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::extend_products_shortcode()
S
49 6 33
Perfect_Woocommerce_Brands\Admin\Edit_Brands_Page::brand_list_admin_filter()
S
56 7 18
Perfect_Woocommerce_Brands\Admin\Brands_Custom_Fields::add_brands_metafields_form_edit()
S
41 3 71
QL_Widget::get_feed()
S
52 6 24
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::dismiss_notice()
S
55 6 19
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::admin_enqueue_scripts()
S
47 5 34
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::breadcrumbs()
S
56 6 17
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::search_by_brand_name()
S
56 6 17
Perfect_Woocommerce_Brands\Admin\Edit_Brands_Page::admin_save_screen_settings()
S
58 6 15
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::print_brand_banner_and_desc()
S
58 6 13
Perfect_Woocommerce_Brands\Admin\Pwb_Admin_Tab::output_sections()
S
52 5 23
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::__construct()
S
46 4 37
Perfect_Woocommerce_Brands\PWB_Product_Tab::product_tab_content()
S
49 4 33
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::print_brand_banner()
S
55 5 17
Perfect_Woocommerce_Brands\Admin\Edit_Brands_Page::brand_taxonomy_columns()
S
56 5 17
Perfect_Woocommerce_Brands\PWB_Product_Tab::product_tab()
S
56 5 17
Perfect_Woocommerce_Brands\Admin\PWB_Suggestions::network_admin_url()
S
62 6 10
Perfect_Woocommerce_Brands\Shortcodes\PWB_AZ_Listing_Shortcode::shortcode()
S
50 4 29
Perfect_Woocommerce_Brands\Shortcodes\PWB_Brand_Shortcode::brand_shortcode()
S
50 4 28
Perfect_Woocommerce_Brands\Admin\Brands_Exporter::get_brands()
S
50 4 28
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::brand_name_in_url()
S
61 5 11
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::print_brand_desc()
S
61 5 11
Perfect_Woocommerce_Brands\Widgets\PWB_Filter_By_Brand_Widget::current_products_query()
S
48 3 36
Perfect_Woocommerce_Brands\Admin\PWB_Coupon::is_valid_for_brand()
S
56 4 18
Perfect_Woocommerce_Brands\Admin\PWB_Coupon::is_valid_for_exclude_brand()
S
56 4 18
Perfect_Woocommerce_Brands\Admin\PWB_Suggestions::add_page()
S
44 1 63
Perfect_Woocommerce_Brands\Shortcodes\PWB_Carousel_Shortcode::carousel_shortcode()
S
49 3 32
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::render_template()
S
58 4 16
Perfect_Woocommerce_Brands\Shortcodes\PWB_Product_Carousel_Shortcode::product_carousel_shortcode()
S
50 3 30
Perfect_Woocommerce_Brands\Widgets\PWB_Filter_By_Brand_Widget::update()
S
61 5 10
Perfect_Woocommerce_Brands\Admin\Brands_Exporter::brands_export()
S
61 4 14
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::brands_column_sortable_posts()
S
57 4 14
Perfect_Woocommerce_Brands\Widgets\PWB_Filter_By_Brand_Widget::exclude_child_brands()
S
60 4 13
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::review_notice()
S
56 3 19
Perfect_Woocommerce_Brands\Admin\PWB_Migrate::migrate_from_ultimate()
S
56 3 19
Perfect_Woocommerce_Brands\PWB_API_Support::register_endpoints()
S
51 2 33
Perfect_Woocommerce_Brands\Admin\PWB_Migrate::migrate_from_woobrands()
S
57 3 18
Perfect_Woocommerce_Brands\PWB_Suggestions_List_Table::get_plugins()
S
56 3 17
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::get_brands_array()
S
58 3 16
Perfect_Woocommerce_Brands\Admin\Edit_Brands_Page::is_edit_brands_page()
S
73 4 4
Perfect_Woocommerce_Brands\Admin\PWB_Suggestions::add_redirect()
S
66 4 8
Perfect_Woocommerce_Brands\Admin\Edit_Brands_Page::brand_taxonomy_columns_head()
S
60 3 13
Perfect_Woocommerce_Brands\Admin\PWB_Coupon::coupon_save()
S
62 3 12
Perfect_Woocommerce_Brands\Shortcodes\PWB_AZ_Listing_Shortcode::has_products()
S
52 2 26
Perfect_Woocommerce_Brands\Admin\PWB_Migrate::migrate_from_yith()
S
54 2 25
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::enqueue_scripts()
S
49 1 39
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::add_shortcodes()
S
51 1 37
Perfect_Woocommerce_Brands\PWB_API_Support::create_brand()
S
57 2 20
Perfect_Woocommerce_Brands\Admin\PWB_Dummy_Data::upload_image()
S
55 2 18
Perfect_Woocommerce_Brands\Admin\Brands_Custom_Fields::add_brands_metafields_form()
S
52 1 33
Perfect_Woocommerce_Brands\Admin\Brands_Exporter::upload_remote_image_and_attach()
S
56 2 17
Perfect_Woocommerce_Brands\Widgets\PWB_Filter_By_Brand_Widget::get_products_brands()
S
59 2 16
Perfect_Woocommerce_Brands\PWB_Importer_Support::process_import()
S
63 3 10
PWB_Notices::ajax_dismiss_notice()
S
64 3 9
Perfect_Woocommerce_Brands\Admin\PWB_Dummy_Data::retrieve_img_src()
S
69 3 6
Perfect_Woocommerce_Brands\Shortcodes\PWB_Product_Carousel_Shortcode::slick_settings()
S
63 3 9
Perfect_Woocommerce_Brands\Shortcodes\PWB_Carousel_Shortcode::slick_settings()
S
63 3 9
Perfect_Woocommerce_Brands\PWB_Suggestions_List_Table::remove_plugins()
S
64 3 9
Perfect_Woocommerce_Brands\PWB_API_Support::delete_brand()
S
65 3 9
Perfect_Woocommerce_Brands\Admin\PWB_Dummy_Data::set_brands_randomly()
S
60 2 14
Perfect_Woocommerce_Brands\Admin\Edit_Brands_Page::add_screen_options()
S
60 2 14
Perfect_Woocommerce_Brands\PWB_API_Support::get_callback()
S
62 2 12
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::product_microdata()
S
62 2 11
Perfect_Woocommerce_Brands\Admin\Edit_Brands_Page::add_brands_count()
S
53 1 26
Perfect_Woocommerce_Brands\Shortcodes\PWB_All_Brands_Shortcode::count_visible_products()
S
55 1 21
Perfect_Woocommerce_Brands\PWB_Suggestions_List_Table::network_admin_url()
S
70 2 6
QL_Widget::__construct()
S
70 2 6
Perfect_Woocommerce_Brands\PWB_Term::is_wp_term()
S
68 2 7
Perfect_Woocommerce_Brands\PWB_Term::get()
S
79 2 3
Perfect_Woocommerce_Brands\PWB_API_Support::remove_brands()
S
70 2 6
Perfect_Woocommerce_Brands\PWB_Exporter_Support::add_export_data()
S
66 2 8
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::clean_caches()
S
71 2 6
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::clean_caches_after_edit_brand()
S
71 2 6
QL_Widget::instance()
S
71 2 6
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::extend_products_shortcode_atts()
S
70 2 6
Perfect_Woocommerce_Brands\Admin\Edit_Brands_Page::__construct()
S
58 1 15
Perfect_Woocommerce_Brands\Admin\Pwb_Admin_Tab::save()
S
64 2 9
Perfect_Woocommerce_Brands\Admin\PWB_Admin_Links::instance()
S
72 2 6
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::plugin_row_meta()
S
64 2 9
PWB_Notices::instance()
S
72 2 6
Perfect_Woocommerce_Brands\PWB_Suggestions_List_Table::self_admin_url()
S
70 2 6
Perfect_Woocommerce_Brands\Admin\PWB_System_Status::pwb_options()
S
60 1 14
Perfect_Woocommerce_Brands\PWB_API_Support::register_fields()
S
64 1 11
Perfect_Woocommerce_Brands\Widgets\PWB_Filter_By_Brand_Widget::__construct()
S
68 1 7
QL_Widget::add_dashboard_widget()
S
70 1 7
Perfect_Woocommerce_Brands\Admin\PWB_Migrate::__construct()
S
79 1 3
Perfect_Woocommerce_Brands\Admin\PWB_Coupon::__construct()
S
66 1 8
Perfect_Woocommerce_Brands\Widgets\PWB_List_Widget::__construct()
S
68 1 7
Perfect_Woocommerce_Brands\PWB_Product_Tab::__construct()
S
79 1 3
PWB_Notices::add_transient()
S
80 1 3
Perfect_Woocommerce_Brands\PWB_API_Support::__construct()
S
76 1 4
Perfect_Woocommerce_Brands\PWB_Importer_Support::add_column_to_importer()
S
75 1 4
Perfect_Woocommerce_Brands\Admin\Pwb_Admin_Tab::output()
S
73 1 5
Perfect_Woocommerce_Brands\PWB_Suggestions_List_Table::is_connected()
S
66 1 8
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::register_widgets()
S
74 1 5
Perfect_Woocommerce_Brands\Admin\Pwb_Admin_Tab::add_tab()
S
76 1 4
Perfect_Woocommerce_Brands\PWB_Term::__construct()
S
77 1 4
Perfect_Woocommerce_Brands\PWB_Exporter_Support::__construct()
S
72 1 5
PWB_Notices::__construct()
S
72 1 5
Perfect_Woocommerce_Brands\PWB_Term::build_pwb_term()
S
62 1 10
Perfect_Woocommerce_Brands\PWB_API_Support::update_callback()
S
76 1 4
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::product_duplicate_save()
S
74 1 4
Perfect_Woocommerce_Brands\Admin\Brands_Exporter::exporter_button()
S
69 1 7
Perfect_Woocommerce_Brands\Admin\Pwb_Admin_Tab::__construct()
S
65 1 8
Perfect_Woocommerce_Brands\Admin\Brands_Custom_Fields::__construct()
S
70 1 6
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::add_brands_metafields_sanitize()
S
82 1 3
Perfect_Woocommerce_Brands\PWB_Suggestions_List_Table::display_rows()
S
72 1 5
Perfect_Woocommerce_Brands\Admin\PWB_System_Status::theme_info()
S
67 1 8
Perfect_Woocommerce_Brands\Admin\PWB_Suggestions::remove_menu()
S
70 1 9
Perfect_Woocommerce_Brands\Widgets\PWB_Dropdown_Widget::__construct()
S
68 1 7
Perfect_Woocommerce_Brands\Admin\PWB_Dummy_Data::get_attachment_id_from_src()
S
69 1 6
Perfect_Woocommerce_Brands\Admin\PWB_Admin_Links::add_action_links()
S
70 1 5
Perfect_Woocommerce_Brands\Admin\PWB_Suggestions::add_menu()
S
73 1 4
Perfect_Woocommerce_Brands\Admin\PWB_Suggestions::__construct()
S
69 1 6
Perfect_Woocommerce_Brands\PWB_API_Support::add_brands()
S
79 1 3
Perfect_Woocommerce_Brands\PWB_Importer_Support::__construct()
S
71 1 5
Perfect_Woocommerce_Brands\Admin\PWB_Dummy_Data::build_description()
S
65 1 9
Perfect_Woocommerce_Brands\PWB_Importer_Support::add_column_to_mapping_screen()
S
75 1 4
Perfect_Woocommerce_Brands\Admin\Edit_Brands_Page::is_featured_brand()
S
79 1 3
Perfect_Woocommerce_Brands\Admin\PWB_Admin_Links::__construct()
S
79 1 3
Perfect_Woocommerce_Brands\Admin\Brands_Exporter::__construct()
S
72 1 5
Perfect_Woocommerce_Brands\Admin\Pwb_Admin_Tab::get_sections()
S
64 1 9
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::brands_column_sortable()
S
77 1 4
Perfect_Woocommerce_Brands\Admin\PWB_Dummy_Data::__construct()
S
79 1 3
Perfect_Woocommerce_Brands\Admin\PWB_System_Status::__construct()
S
79 1 3
Perfect_Woocommerce_Brands\PWB_Exporter_Support::add_export_column()
S
75 1 4
Perfect_Woocommerce_Brands\PWB_API_Support::get_schema()
S
64 1 10
PWB_Notices::is_installed()
S
76 1 4
Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands::add_brands_metafields()
S
78 1 3