Code Analysis: ELEX WooCommerce Product Price Custom Text (Before & After Text) and Discount 2.1.0

Function Rating Maintainability Complexity Lines of code
elex_ppct_display_price()
D
34 35 79
elex_ppct_display_price_cart()
C
35 32 72
elex_ppct_add_custom_field_to_variations()
B
30 9 166
elex_ppct_custom_tab_data()
A
30 7 176
elex_ppct_discount_product()
A
43 12 46
elex_ppct_get_setting()
A
30 2 190
elex_ppct_page_type_field()
A
47 10 39
elex_ppct_save_custom_field_variations()
A
52 11 21
elex_ppct_save_fields()
A
52 11 21
elex_plugin_active()
A
41 8 55
Elex_Review_Components::update_get_options()
A
53 9 22
elex_ppct_get_price_to_display()
A
53 8 21
elex_ppct_update_settings()
S
52 7 26
Elex_Product_Price_Discount_Setting::output_sections()
S
55 7 16
render_cateogry()
S
53 5 27
elex_variation_price_format()
S
55 5 20
product_category_field()
S
49 4 33
elex_ppct_discount()
S
64 5 9
elex_ppct_custom_field_suffix()
S
52 2 31
Elex_Review_Components::admin_notice()
S
61 3 13
Elex_Review_Components::show_review()
S
64 3 10
get_price_after_text_html()
S
67 2 8
Elex_Review_Components::show_trubleshoot()
S
69 2 7
get_price_before_text_html()
S
67 2 8
elex_ppct_base_price()
S
62 1 12
elex_ppct_return_wpml_string()
S
62 1 11
Elex_Review_Components::on_activation()
S
79 1 3
Elex_Product_Price_Discount_Setting::__construct()
S
74 1 5
Elex_Review_Components::update_option()
S
78 1 3
elex_ppct_custom_product_tab()
S
65 1 9
Elex_Review_Components::get_option()
S
78 1 3
Elex_Review_Components::__construct()
S
67 1 7
elex_ppct_load_assets_admin()
S
78 1 3
elex_ppct_plugin_action_links()
S
64 1 10
Elex_Product_Price_Discount_Setting::elex_ppct_add_settings_tab()
S
75 1 4
elex_ppct_discount_price_settings_tab()
S
82 1 3
Elex_Product_Price_Discount_Setting::get_sections()
S
68 1 7
elex_ppct_discount_submenu_page()
S
79 1 3
Elex_Product_Price_Discount_Setting::init()
S
75 1 4
elex_ppct_load_plugin_textdomain()
S
78 1 3
Elex_Review_Components::delete_options()
S
72 1 5