Code Analysis: Perfect Brands WooCommerce 3.3.1

Function Rating Maintainability Complexity Lines of code
QuadLayers\PWB\Admin\Admin_Tab::__construct()
C
18
7 426
Automattic\Jetpack\Assets::register_script()
B
35 21 80
QuadLayers\PWB\Admin\Brands_Custom_Fields::add_brands_metafields_save()
B
45 20 38
Automattic\Jetpack\Assets::wp_default_scripts_hook()
B
40 18 53
QuadLayers\PWB\Shortcodes\All_Brands::pagination()
B
37 16 72
Automattic\Jetpack\Assets::normalize_path()
B
46 18 34
QuadLayers\PWB\Widgets\Brands_List::widget()
B
44 17 41
QuadLayers\PWB\Widgets\Brands_List::form()
A
37 13 85
QuadLayers\PWB\WooCommerce::vc_map_shortcodes()
A
26
2 239
Automattic\Jetpack\Assets\Semver::compare()
A
44 14 44
QuadLayers\PWB\WooCommerce::brand_desc_position()
A
52 15 22
QuadLayers\PWB\Widgets\Filter_By_Brand::widget()
A
49 14 27
QuadLayers\PWB\WooCommerce::action_woocommerce_single_product_summary()
A
44 13 41
QuadLayers\WP_Notice_Plugin_Promote\Load::admin_notices()
A
42 9 71
QuadLayers\PWB\Admin\Brands_Exporter::brands_import()
A
47 11 35
QuadLayers\PWB\Widgets\Filter_By_Brand::render_widget()
A
43 9 51
QuadLayers\PWB\WooCommerce::brand_logo_position()
A
48 10 35
QuadLayers\PWB\Widgets\Brands_Dropdown::widget()
A
49 9 31
Automattic\Jetpack\Assets\Semver::parse()
A
50 9 26
QuadLayers\WP_Plugin_Table_Links\Load::__construct()
A
48 8 37
QuadLayers\WP_Dashboard_Widget_News\Load::display_dashboard_widget()
A
41 6 66
QuadLayers\PWB\Widgets\Brands_Dropdown::form()
A
46 7 47
QuadLayers\PWB\Shortcodes\Product_Carousel::products_data()
A
45 7 44
QuadLayers\PWB\WooCommerce::show_brands_in_loop()
A
49 8 28
QuadLayers\PWB\WooCommerce::pwb_brand_filter()
A
51 8 27
QuadLayers\PWB\Widgets\Filter_By_Brand::form()
A
48 7 35
QuadLayers\WP_Plugin_Suggestions\Table::prepare_items()
A
47 7 34
QuadLayers\PWB\WooCommerce::get_brands()
A
48 7 34
QuadLayers\PWB\Admin\Migrate::admin_migrate_brands()
A
56 8 18
Automattic\Jetpack\Assets::filter_load_script_translation_file()
A
55 8 17
QuadLayers\PWB\WooCommerce::register_brands_taxonomy()
S
44 6 45
QuadLayers\PWB\Admin\System_Status::system_status()
S
48 7 29
QuadLayers\PWB\Shortcodes\Carousel::brands_data()
S
49 7 29
QuadLayers\PWB\Shortcodes\All_Brands::all_brands_shortcode()
S
46 6 38
QuadLayers\PWB\Admin\Coupon::coupon_restriction()
S
47 6 38
QuadLayers\PWB\Admin\Brands_Custom_Fields::add_brands_metafields_form_edit()
S
39 3 81
QuadLayers\PWB\Admin\Coupon::is_valid_coupon_for_brand()
S
53 7 21
QuadLayers\PWB\Admin\Coupon::is_valid_coupon_for_exclude_brand()
S
53 7 21
QuadLayers\PWB\Admin\Edit_Brands_Page::brand_list_admin_filter()
S
55 7 19
QuadLayers\PWB\Shortcodes\AZ_Listing::shortcode()
S
48 6 31
QuadLayers\WP_Notice_Plugin_Required\Load::admin_notices()
S
57 7 16
QuadLayers\PWB\Admin\Edit_Brands_Page::admin_set_featured_brand()
S
50 6 31
QuadLayers\PWB\WooCommerce::admin_enqueue_scripts()
S
44 5 45
QuadLayers\PWB\Admin\Dummy_Data::admin_dummy_data()
S
56 7 15
Automattic\Jetpack\Assets::alias_textdomain()
S
51 6 25
QuadLayers\WP_Dashboard_Widget_News\Load::get_feed()
S
52 6 24
QuadLayers\PWB\Rest_Api::register_endpoints()
S
39 2 84
QuadLayers\PWB\Admin\Admin_Tab::add_tabs()
S
52 6 21
QuadLayers\PWB\WooCommerce::breadcrumbs()
S
56 6 17
QuadLayers\WP_Notice_Plugin_Required\Load::add_notice()
S
51 5 31
QuadLayers\PWB\WooCommerce::print_brand_banner_and_desc()
S
58 6 13
QuadLayers\WP_Notice_Plugin_Promote\Load::__construct()
S
52 5 26
QuadLayers\PWB\WooCommerce::__construct()
S
47 4 34
QuadLayers\WP_Plugin_Suggestions\Page::add_menu()
S
50 4 33
QuadLayers\PWB\Product::product_tab()
S
56 5 17
QuadLayers\PWB\WooCommerce::print_brand_banner()
S
55 5 17
QuadLayers\PWB\Admin\Edit_Brands_Page::brand_taxonomy_columns()
S
56 5 17
QuadLayers\PWB\Product::product_tab_content()
S
49 4 31
QuadLayers\WP_Plugin_Suggestions\Page::network_admin_url()
S
62 6 10
QuadLayers\PWB\Shortcodes\Brand::brand_shortcode()
S
50 4 30
QuadLayers\PWB\Admin\Edit_Brands_Page::admin_save_screen_settings()
S
61 6 10
QuadLayers\PWB\Admin\Brands_Exporter::get_brands()
S
50 4 28
Automattic\Jetpack\Assets::get_file_url_for_environment()
S
59 5 13
QuadLayers\WP_Notice_Plugin_Promote\Load::ajax_notice_plugin_promote_dismiss()
S
59 5 13
QuadLayers\PWB\WooCommerce::brand_name_in_url()
S
61 5 11
QuadLayers\PWB\WooCommerce::print_brand_desc()
S
60 5 11
QuadLayers\PWB\Widgets\Filter_By_Brand::current_products_query()
S
48 3 36
Automattic\Jetpack\Assets::staticize_subdomain()
S
54 4 20
QuadLayers\PWB\WooCommerce::extend_products_shortcode()
S
55 4 18
QuadLayers\PWB\Admin\Coupon::is_valid_for_brand()
S
56 4 18
QuadLayers\PWB\Admin\Coupon::is_valid_for_exclude_brand()
S
56 4 18
QuadLayers\PWB\Shortcodes\Carousel::carousel_shortcode()
S
49 3 32
QuadLayers\PWB\WooCommerce::render_template()
S
58 4 16
QuadLayers\PWB\Shortcodes\Product_Carousel::product_carousel_shortcode()
S
50 3 30
QuadLayers\PWB\Widgets\Filter_By_Brand::update()
S
61 5 10
QuadLayers\PWB\WooCommerce::brands_column_sortable_posts()
S
57 4 14
QuadLayers\PWB\Shortcodes\All_Brands::replace_curly_quotes()
S
60 4 13
QuadLayers\PWB\Widgets\Filter_By_Brand::exclude_child_brands()
S
60 4 13
QuadLayers\WP_Plugin_Suggestions\Table::remove_excluded_plugins()
S
63 4 11
QuadLayers\WP_Plugin_Suggestions\Table::display_rows()
S
54 3 25
Automattic\Jetpack\Assets::init_domain_map_hooks()
S
54 3 20
QuadLayers\PWB\Admin\Migrate::migrate_from_ultimate()
S
56 3 19
QuadLayers\PWB\Admin\Migrate::migrate_from_woobrands()
S
56 3 19
QuadLayers\WP_Plugin_Suggestions\Table::get_plugins()
S
57 3 17
QuadLayers\PWB\WooCommerce::get_brands_array()
S
58 3 16
Automattic\Jetpack\Assets::add_resource_hint()
S
60 3 15
QuadLayers\WP_Plugin_Suggestions\Page::add_redirect()
S
66 4 8
QuadLayers\PWB\Admin\Brands_Exporter::brands_export()
S
66 4 8
QuadLayers\PWB\Admin\Edit_Brands_Page::is_edit_brands_page()
S
73 4 4
QuadLayers\PWB\Rest_Api::brand_query_args()
S
60 3 14
QuadLayers\PWB\Admin\Edit_Brands_Page::brand_taxonomy_columns_head()
S
60 3 13
QuadLayers\PWB\Admin\Coupon::coupon_save()
S
62 3 12
Automattic\Jetpack\Assets::alias_textdomains_from_file()
S
61 3 12
QuadLayers\PWB\Shortcodes\AZ_Listing::has_products()
S
52 2 26
QuadLayers\PWB\Admin\Migrate::migrate_from_yith()
S
54 2 25
QuadLayers\PWB\Plugin::__construct()
S
53 2 25
QuadLayers\PWB\WooCommerce::enqueue_scripts()
S
48 1 40
QuadLayers\PWB\Admin\Brands_Custom_Fields::add_brands_metafields_form()
S
49 1 39
QuadLayers\PWB\WooCommerce::add_shortcodes()
S
51 1 37
QuadLayers\PWB\Rest_Api::prepare_item_for_response()
S
54 2 19
QuadLayers\PWB\Admin\Dummy_Data::upload_image()
S
55 2 18
QuadLayers\PWB\Admin\Brands_Exporter::upload_remote_image_and_attach()
S
56 2 17
QuadLayers\WP_Notice_Plugin_Promote\Load::include_notice_template()
S
58 2 16
Automattic\Jetpack\Constants::get_constant()
S
65 3 9
QuadLayers\WP_Notice_Plugin_Promote\Load::is_valid_notice()
S
64 3 10
Automattic\Jetpack\Assets::filter_ngettext_with_context()
S
68 3 6
QuadLayers\WP_Plugin_Suggestions\Page::__construct()
S
59 2 15
Automattic\Jetpack\Assets::filter_gettext()
S
65 3 9
Automattic\Jetpack\Assets::filter_ngettext()
S
69 3 6
QuadLayers\PWB\Shortcodes\Carousel::slick_settings()
S
63 3 9
QuadLayers\PWB\Shortcodes\Product_Carousel::slick_settings()
S
63 3 9
Automattic\Jetpack\Assets::script_add_async()
S
65 3 9
QuadLayers\PWB\Admin\Dummy_Data::retrieve_img_src()
S
69 3 6
QuadLayers\WP_Notice_Plugin_Promote\PluginBySlugV2::__construct()
S
68 3 7
QuadLayers\PWB\Admin\Edit_Brands_Page::add_screen_options()
S
59 2 15
QuadLayers\PWB\Admin\Importer_Support::process_import()
S
63 3 10
QuadLayers\PWB\Admin\Dummy_Data::set_brands_randomly()
S
59 2 14
QuadLayers\PWB\Rest_Api::get_callback()
S
62 2 12
QuadLayers\PWB\WooCommerce::product_microdata()
S
62 2 11
QuadLayers\PWB\Admin\Edit_Brands_Page::add_brands_count()
S
53 1 26
QuadLayers\PWB\Shortcodes\All_Brands::count_visible_products()
S
54 1 22
QuadLayers\PWB\Rest_Api::modify_collection_params()
S
56 1 19
QuadLayers\PWB\Admin\Admin_Tab::add_premium_css()
S
67 1 19
Automattic\Jetpack\Assets::instance()
S
69 2 7
QuadLayers\PWB\Admin\Admin_Tab::add_settings()
S
65 2 9
QuadLayers\PWB\Admin\Exporter_Support::add_export_data()
S
66 2 8
Automattic\Jetpack\Assets::enqueue_script()
S
71 2 6
Automattic\Jetpack\Constants::is_defined()
S
72 2 5
QuadLayers\WP_Notice_Plugin_Promote\Load::is_notice_hidden_for_current_user()
S
71 2 6
Automattic\Jetpack\Constants::is_true()
S
78 2 3
QuadLayers\PWB\Term::is_wp_term()
S
68 2 7
QuadLayers\WP_Notice_Plugin_Required\Plugin::__construct()
S
68 2 7
QuadLayers\WP_Dashboard_Widget_News\Load::__construct()
S
70 2 6
Automattic\Jetpack\Constants::clear_single_constant()
S
68 2 7
QuadLayers\WP_Notice_Plugin_Required\Plugin::get_instance()
S
67 2 8
QuadLayers\PWB\Widgets\Filter_By_Brand::get_products_brands()
S
63 2 9
QuadLayers\PWB\Term::get()
S
79 2 3
QuadLayers\PWB\WooCommerce::clean_caches_after_edit_brand()
S
71 2 6
QuadLayers\PWB\Admin\Admin_Tab::save_settings()
S
67 2 7
Automattic\Jetpack\Assets::filter_gettext_with_context()
S
69 2 6
QuadLayers\WP_Dashboard_Widget_News\Load::instance()
S
71 2 6
QuadLayers\PWB\Rest_Api::remove_brands()
S
70 2 6
QuadLayers\PWB\Plugin::instance()
S
72 2 6
QuadLayers\PWB\WooCommerce::extend_products_shortcode_atts()
S
70 2 6
QuadLayers\WP_Notice_Plugin_Promote\Load::is_display_notices_delayed()
S
72 2 6
QuadLayers\WP_Notice_Plugin_Promote\Load::remove_all_data()
S
72 2 5
QuadLayers\PWB\WooCommerce::clean_caches()
S
71 2 6
QuadLayers\PWB\Admin\System_Status::pwb_options()
S
60 1 14
QuadLayers\PWB\Rest_Api::register_fields()
S
64 1 11
Automattic\Jetpack\Constants::set_constant()
S
79 1 3
QuadLayers\PWB\Term::build_pwb_term()
S
62 1 10
QuadLayers\WP_Dashboard_Widget_News\Load::add_dashboard_widget()
S
67 1 10
QuadLayers\PWB\WooCommerce::brands_column_sortable()
S
77 1 4
QuadLayers\WP_Notice_Plugin_Required\Load::__construct()
S
72 1 5
QuadLayers\PWB\Admin\Dummy_Data::get_attachment_id_from_src()
S
71 1 5
QuadLayers\PWB\Rest_Api::add_brands()
S
79 1 3
QuadLayers\PWB\Admin\Importer_Support::add_column_to_importer()
S
75 1 4
QuadLayers\PWB\Rest_Api::__construct()
S
69 1 6
QuadLayers\PWB\Admin\Coupon::__construct()
S
65 1 8
QuadLayers\PWB\Widgets\Brands_List::__construct()
S
68 1 7
QuadLayers\WP_Notice_Plugin_Required\Plugin::get_plugin_install_link()
S
78 1 3
Automattic\Jetpack\Assets::init_hooks()
S
78 1 3
QuadLayers\WP_Notice_Plugin_Promote\Load::set_current_user_notice_meta_hidden()
S
78 1 3
QuadLayers\PWB\Admin\Admin_Tab::get_settings()
S
76 1 4
QuadLayers\PWB\Admin\Importer_Support::__construct()
S
71 1 5
QuadLayers\PWB\Admin\Brands_Exporter::__construct()
S
72 1 5
QuadLayers\WP_Notice_Plugin_Required\Plugin::get_plugin_path()
S
79 1 3
QuadLayers\WP_Notice_Plugin_Required\Plugin::get_plugin_activate_link()
S
74 1 4
QuadLayers\PWB\Widgets\Filter_By_Brand::__construct()
S
68 1 7
QuadLayers\PWB\Admin\System_Status::theme_info()
S
67 1 8
QuadLayers\PWB\Term::__construct()
S
77 1 4
QuadLayers\PWB\Widgets\Brands_Dropdown::__construct()
S
68 1 7
QuadLayers\PWB\Rest_Api::add_additional_fields_to_object()
S
67 1 7
QuadLayers\WP_Notice_Plugin_Promote\Load::get_current_user_notice_meta_hidden()
S
78 1 3
Automattic\Jetpack\Assets::add_async_script()
S
75 1 4
QuadLayers\PWB\WooCommerce::product_duplicate_save()
S
74 1 4
QuadLayers\PWB\Rest_Api::get_schema()
S
64 1 10
QuadLayers\PWB\Admin\Migrate::__construct()
S
79 1 3
QuadLayers\WP_Plugin_Suggestions\Load::__construct()
S
70 1 7
QuadLayers\PWB\Admin\Exporter_Support::__construct()
S
72 1 5
INIT()
S
82 1 3
QuadLayers\WP_Notice_Plugin_Promote\Load::get_transient_key()
S
79 1 3
QuadLayers\WP_Notice_Plugin_Promote\Load::delete_current_user_notice_meta_hidden()
S
78 1 3
QuadLayers\PWB\Admin\Admin_Tab::add_tab()
S
75 1 4
QuadLayers\WP_Notice_Plugin_Promote\PluginBySlug::__construct()
S
81 1 3
QuadLayers\WP_Plugin_Suggestions\Page::get_parent_menu_slug()
S
80 1 3
QuadLayers\WP_Plugin_Suggestions\Table::__construct()
S
70 1 7
Automattic\Jetpack\Constants::clear_constants()
S
80 1 3
QuadLayers\PWB\Admin\Brands_Custom_Fields::__construct()
S
70 1 6
QuadLayers\WP_Plugin_Suggestions\Page::get_suggestions_menu_slug()
S
80 1 3
QuadLayers\WP_Notice_Plugin_Promote\Load::get_action_name()
S
79 1 3
QuadLayers\WP_Notice_Plugin_Required\Plugin::get_plugin_name()
S
82 1 3
QuadLayers\PWB\Admin\System_Status::__construct()
S
79 1 3
QuadLayers\WP_Notice_Plugin_Promote\Load::delay_display_notices()
S
79 1 3
QuadLayers\PWB\Product::__construct()
S
79 1 3
QuadLayers\WP_Notice_Plugin_Required\Plugin::is_plugin_activated()
S
76 1 4
QuadLayers\WP_Notice_Plugin_Promote\Load::get_user_notice_meta_hidden_key()
S
79 1 3
Automattic\Jetpack\Assets::enqueue_async_script()
S
71 1 5
QuadLayers\PWB\Admin\Importer_Support::add_column_to_mapping_screen()
S
75 1 4
QuadLayers\WP_Notice_Plugin_Required\Plugin::is_plugin_installed()
S
73 1 5
QuadLayers\WP_Notice_Plugin_Promote\PluginByFile::__construct()
S
81 1 3
Automattic\Jetpack\Assets::__construct()
S
98 1 1
QuadLayers\WP_Plugin_Suggestions\Table::get_transient_key()
S
75 1 4
QuadLayers\WP_Notice_Plugin_Promote\Load::get_notices_class()
S
81 1 3
QuadLayers\PWB\WooCommerce::add_brands_metafields()
S
78 1 3
QuadLayers\PWB\Admin\Exporter_Support::add_export_column()
S
75 1 4
QuadLayers\PWB\Admin\Edit_Brands_Page::is_featured_brand()
S
79 1 3
QuadLayers\PWB\Admin\Dummy_Data::build_description()
S
65 1 9
QuadLayers\PWB\WooCommerce::add_brands_metafields_sanitize()
S
82 1 3
QuadLayers\PWB\Admin\Edit_Brands_Page::__construct()
S
64 1 9
QuadLayers\PWB\WooCommerce::register_widgets()
S
74 1 5
QuadLayers\PWB\Admin\Dummy_Data::__construct()
S
79 1 3
QuadLayers\PWB\Rest_Api::update_callback()
S
76 1 4
QuadLayers\PWB\Admin\Brands_Exporter::exporter_button()
S
69 1 7