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

Function Rating Maintainability Complexity Lines of code
elex_ppct_display_price()
C
36 30 69
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_save_fields()
A
52 11 21
elex_ppct_save_custom_field_variations()
A
52 11 21
elex_ppct_get_setting()
A
34 2 133
Elex_Review_Components::update_get_options()
A
53 9 22
elex_plugin_active()
A
43 7 48
Elex_Product_Price_Discount_Setting::output_sections()
S
58 6 13
render_cateogry()
S
53 5 27
elex_variation_price_format()
S
55 5 20
product_category_field()
S
49 4 33
elex_ppct_update_settings()
S
57 5 16
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
elex_ppct_get_price_to_display()
S
63 3 10
get_price_before_text_html()
S
67 2 8
get_price_after_text_html()
S
67 2 8
Elex_Review_Components::show_trubleshoot()
S
69 2 7
elex_ppct_base_price()
S
62 1 12
elex_ppct_return_wpml_string()
S
62 1 11
Elex_Product_Price_Discount_Setting::elex_ppct_add_settings_tab()
S
75 1 4
Elex_Review_Components::__construct()
S
67 1 7
Elex_Product_Price_Discount_Setting::init()
S
75 1 4
elex_ppct_discount_price_settings_tab()
S
82 1 3
Elex_Review_Components::on_activation()
S
79 1 3
Elex_Review_Components::delete_options()
S
72 1 5
elex_ppct_custom_product_tab()
S
65 1 9
elex_ppct_discount_submenu_page()
S
79 1 3
Elex_Review_Components::update_option()
S
78 1 3
Elex_Review_Components::get_option()
S
78 1 3
elex_ppct_plugin_action_links()
S
64 1 10
Elex_Product_Price_Discount_Setting::get_sections()
S
68 1 7
Elex_Product_Price_Discount_Setting::__construct()
S
77 1 4
elex_ppct_load_plugin_textdomain()
S
78 1 3
elex_ppct_load_assets_admin()
S
78 1 3