Code Analysis: Portfolio & Image Gallery for Elementor | PowerFolio 3.2.0

Function Rating Maintainability Complexity Lines of code
Powerfolio\Widgets\PWGD_Post_Grid_Widget::register_controls()
D
16
1 594
Powerfolio\Widgets\PWGD_Product_Grid_Widget::register_controls()
C
17
1 514
Powerfolio_Product_Grid::get_product_grid_template()
C
26
24 153
Powerfolio_Post_Grid::get_post_grid_template()
C
27
22 149
Powerfolio\Widgets\ELPT_Portfolio_Widget::register_controls()
B
21
3 367
Powerfolio_Portfolio::get_grid_filter()
B
38 23 62
Powerfolio\Widgets\ELPT_Image_Gallery_Widget::register_controls()
B
21
3 336
Powerfolio_Portfolio::get_portfolio_link_data()
B
41 16 57
Powerfolio_Gutenberg::generate_css_for_block()
B
40 16 55
Powerfolio_Carousel::get_carousel_shortcode_content()
A
34 12 93
Powerfolio_Portfolio::get_portfolio_styles()
A
45 12 42
Powerfolio_Gutenberg::portfolio_block_render()
A
49 13 22
Powerfolio\Widgets\ELPT_Portfolio_Widget::render()
A
48 12 32
Powerfolio_Shortcode_Generator::enqueue_shortcode_generator_scripts()
A
44 10 45
Powerfolio_Portfolio::get_single_item_data()
A
45 10 40
Powerfolio\Widgets\ELPT_Portfolio_Carousel::_register_controls()
A
29 1 168
Powerfolio_Portfolio::get_widget_settings()
A
39 7 71
Powerfolio_Portfolio::get_portfolio_shortcode_output()
A
48 8 32
Powerfolio_Image_Gallery::process_settings_from_gutenberg_block()
A
46 7 39
Powerfolio_Portfolio::get_single_item_output()
S
48 7 29
ElementorPortfolioWidgetTest::test_elementor_essential_controls_presence()
S
42 5 57
Powerfolio_Portfolio::get_items_for_grid()
S
48 6 35
Powerfolio_Portfolio::get_portfolio_terms()
S
56 7 17
ELPT_Admin_Page::elpt_options_page()
S
39 2 80
Powerfolio_Feedback_Notice::elpt_admin_notice_for_reviews()
S
55 6 18
PostTypeTest::test_register_portfolio_taxonomy()
S
50 5 29
Powerfolio_Feedback_Notice::elpt_load_script()
S
47 3 56
PowerfolioPortfolioCompleteTest::test_get_items_for_grid()
S
43 3 54
Powerfolio\Register_Powerfolio_Elementor_Widgets::add_actions()
S
46 4 38
Powerfolio_Portfolio::get_columns_css_classes()
S
58 5 16
PowerfolioPortfolioCompleteTest::setUp()
S
43 2 51
Powerfolio_Portfolio::get_columns_class_for_mobile()
S
62 4 12
PowerfolioPortfolioTest::setUp()
S
47 2 38
Powerfolio_Common_Settings::get_image_url()
S
59 3 16
Powerfolio_Portfolio::get_shortcode_settings()
S
58 3 16
Powerfolio_Portfolio::get_margin_css_class()
S
68 4 7
Powerfolio_Shortcode_Generator::create_shortcode_button()
S
64 4 9
Powerfolio_Feedback_Notice::elpt_create_notice_content()
S
47 1 42
powerfolio_elementor_load()
S
62 3 11
Powerfolio_Portfolio::add_cpt_support_for_elementor()
S
63 3 11
Powerfolio\Register_Powerfolio_Elementor_Widgets::includes()
S
63 3 11
Powerfolio\Register_Powerfolio_Elementor_Widgets::register_widget()
S
63 3 11
pe_fs()
S
53 2 23
ElementorPortfolioWidgetTest::test_shortcode_generation_with_basic_parameters()
S
52 2 23
PowerfolioPortfolioCompleteTest::test_get_portfolio_shortcode_output()
S
48 1 36
PowerfolioPortfolioCompleteTest::test_get_grid_filter()
S
48 1 36
Powerfolio_Portfolio::register_portfolio_post_type()
S
48 1 34
PowerfolioPortfolioCompleteTest::test_get_portfolio_link_data()
S
48 1 33
PowerfolioPortfolioCompleteTest::test_get_columns_css_classes()
S
56 2 17
Powerfolio\Widgets\ELPT_Image_Gallery_Widget::render()
S
59 2 17
PowerfolioPortfolioTest::test_shortcode_default_attributes()
S
57 2 16
ElementorPortfolioWidgetTest::setUp()
S
59 2 15
Powerfolio_Gutenberg::portfolio_elementor_update_block_registration()
S
65 3 9
PowerfolioPortfolioCompleteTest::test_get_single_item_data_for_portfolio()
S
50 1 29
Powerfolio_Common_Settings::get_upgrade_message()
S
58 2 14
Powerfolio_Gutenberg::powerfolio_enqueue_block_editor_assets()
S
50 1 29
ElementorPortfolioWidgetTest::test_pagination_input_field_presence()
S
60 2 13
Powerfolio_Gutenberg::get_portfolio_taxonomy_terms()
S
61 2 12
PowerfolioPortfolioCompleteTest::test_get_columns_class_for_mobile()
S
62 2 12
Powerfolio_Portfolio::enqueue_scripts()
S
59 2 12
PowerfolioPortfolioCompleteTest::test_get_shortcode_settings()
S
51 1 27
Powerfolio_Gutenberg::get_post_types_callback()
S
63 2 11
Powerfolio_Portfolio::create_portfolio_taxonomies()
S
51 1 26
PowerfolioPortfolioCompleteTest::test_get_single_item_output()
S
51 1 26
ElementorPortfolioWidgetTest::test_free_version_shortcode_parameters()
S
53 1 25
ELPT_Admin_Page::elpt_setup_menu()
S
55 1 18
ElementorPortfolioWidgetTest::test_premium_parameters_in_shortcode()
S
57 1 17
PowerfolioPortfolioCompleteTest::test_get_margin_css_class()
S
57 1 17
PowerfolioPortfolioCompleteTest::test_get_portfolio_terms()
S
57 1 17
PowerfolioPortfolioTest::test_shortcode_custom_attributes()
S
57 1 16
powerfolio_elementor_fail_load_out_of_date()
S
62 2 10
Powerfolio_Feedback_Notice::__construct()
S
68 2 7
Powerfolio_Carousel::__construct()
S
74 2 5
Powerfolio_Portfolio::flush_rewrite_rules_maybe()
S
72 2 6
Powerfolio_Common_Settings::get_lightbox_options()
S
63 2 10
PostTypeTest::setUp()
S
70 2 6
Powerfolio_Post_Grid::pwgd_get_the_content()
S
64 2 9
Powerfolio_Common_Settings::get_post_types()
S
67 2 8
Powerfolio_Shortcode_Generator::__construct()
S
67 2 7
elpt_activate()
S
74 2 5
PowerfolioPortfolioCompleteTest::test_get_portfolio_styles()
S
59 1 14
Powerfolio_Gutenberg::register_rest_routes()
S
60 1 14
PowerfolioPortfolioCompleteTest::test_shortcode_specific_default_values()
S
59 1 14
PowerFolio_TestCase::setUp()
S
61 1 12
Powerfolio_Common_Settings::get_hover_options()
S
62 1 11
Powerfolio_Shortcode_Generator::register_powerfolio_shortcode_button()
S
76 1 4
Powerfolio\Widgets\PWGD_Product_Grid_Widget::render()
S
68 1 8
Powerfolio\Widgets\PWGD_Product_Grid_Widget::get_categories()
S
81 1 3
PowerfolioPortfolioTest::test_register_portfolio_taxonomy()
S
65 1 9
Powerfolio_Portfolio::register_portfolio_shortcodes()
S
75 1 4
Powerfolio_Image_Gallery::get_image_gallery_template()
S
78 1 3
Powerfolio_Common_Settings::get_grid_options()
S
66 1 8
Powerfolio_Common_Settings::generate_element_id()
S
78 1 3
ElementorPortfolioWidgetTest::test_shortcode_parameter_sanitization()
S
64 1 10
Powerfolio\Widgets\ELPT_Image_Gallery_Widget::get_name()
S
82 1 3
Powerfolio\Widgets\ELPT_Image_Gallery_Widget::get_script_depends()
S
81 1 3
Powerfolio_Carousel::is_carousel_enabled()
S
81 1 3
PowerfolioPortfolioTest::tearDown()
S
76 1 4
PowerfolioPortfolioTest::test_register_portfolio_shortcodes()
S
67 1 8
PowerfolioPortfolioTest::test_non_numeric_columns_attribute()
S
64 1 9
Powerfolio\Widgets\ELPT_Portfolio_Carousel::get_icon()
S
82 1 3
Powerfolio\Widgets\PWGD_Post_Grid_Widget::get_title()
S
79 1 3
Powerfolio\Widgets\ELPT_Portfolio_Widget::get_icon()
S
82 1 3
Powerfolio_Common_Settings::__construct()
S
91 1 2
ElementorPortfolioWidgetTest::tearDown()
S
76 1 4
PowerFolio_TestCase::tearDown()
S
76 1 4
Powerfolio_Common_Settings::get_column_mobile_options()
S
66 1 8
Powerfolio\Widgets\PWGD_Product_Grid_Widget::get_name()
S
82 1 3
Powerfolio\Widgets\PWGD_Post_Grid_Widget::get_icon()
S
82 1 3
powerfolio_load_textdomain()
S
78 1 3
PostTypeTest::test_register_portfolio_post_type()
S
64 1 10
Powerfolio\Widgets\PWGD_Product_Grid_Widget::get_title()
S
79 1 3
Powerfolio\Widgets\ELPT_Portfolio_Carousel::render()
S
63 1 10
Powerfolio_Common_Settings::get_column_options()
S
63 1 10
ElementorPortfolioWidgetTest::test_handles_missing_settings()
S
68 1 7
Powerfolio_Feedback_Notice::elpt_dismiss_review_notice()
S
72 1 5
Powerfolio\Widgets\PWGD_Product_Grid_Widget::get_script_depends()
S
81 1 3
Powerfolio_Gutenberg::create_block_my_first_block_block_init()
S
76 1 4
Powerfolio\Widgets\ELPT_Portfolio_Widget::get_name()
S
82 1 3
Powerfolio_Common_Settings::get_yes_no_options()
S
70 1 6
Powerfolio\Widgets\ELPT_Portfolio_Widget::get_categories()
S
81 1 3
Powerfolio_Gutenberg::pv_validation()
S
80 1 3
Powerfolio\Widgets\ELPT_Portfolio_Carousel::get_name()
S
82 1 3
ELPT_Admin_Page::elpt_shortcode_callback()
S
89 1 2
Powerfolio_Gutenberg::image_gallery_block_render()
S
71 1 5
PostTypeTest::test_register_portfolio_shortcodes()
S
67 1 8
Powerfolio\Widgets\PWGD_Post_Grid_Widget::get_categories()
S
81 1 3
elpt_get_text_slug()
S
73 1 5
PowerfolioPortfolioTest::test_register_portfolio_post_type()
S
65 1 9
Powerfolio\Widgets\PWGD_Product_Grid_Widget::get_icon()
S
82 1 3
ELPT_Admin_Page::elpt_color_callback()
S
78 1 3
elpt_fix_packery_layout_themes()
S
67 1 9
Powerfolio\Widgets\ELPT_Image_Gallery_Widget::get_icon()
S
82 1 3
Powerfolio_Gutenberg::__construct()
S
69 1 6
Powerfolio\Widgets\ELPT_Image_Gallery_Widget::get_categories()
S
81 1 3
Powerfolio_Image_Gallery::get_image_gallery_template_for_gutenberg()
S
75 1 4
Powerfolio_Common_Settings::get_image_url()
S
81 1 3
Powerfolio_Common_Settings::generate_element_id()
S
81 1 3
Powerfolio\Widgets\ELPT_Portfolio_Carousel::get_categories()
S
81 1 3
Powerfolio\Widgets\ELPT_Image_Gallery_Widget::get_title()
S
79 1 3
Powerfolio\Widgets\ELPT_Portfolio_Carousel::get_script_depends()
S
81 1 3
Powerfolio\Register_Powerfolio_Elementor_Widgets::__construct()
S
82 1 3
Powerfolio\Widgets\ELPT_Portfolio_Carousel::get_title()
S
79 1 3
Powerfolio\Widgets\PWGD_Post_Grid_Widget::get_script_depends()
S
81 1 3
Powerfolio_Shortcode_Generator::add_powerfolio_tinymce_plugin()
S
75 1 4
Powerfolio\Widgets\ELPT_Portfolio_Widget::get_title()
S
79 1 3
Powerfolio\Register_Powerfolio_Elementor_Widgets::on_widgets_registered()
S
78 1 4
Powerfolio\Widgets\ELPT_Portfolio_Widget::get_script_depends()
S
81 1 3
Powerfolio_Portfolio::__construct()
S
68 1 7
Powerfolio\Widgets\PWGD_Post_Grid_Widget::get_name()
S
82 1 3
ELPT_Admin_Page::__construct()
S
79 1 3
Powerfolio\Widgets\PWGD_Post_Grid_Widget::render()
S
68 1 8
Powerfolio_Common_Settings::get_portfolio_taxonomy_terms()
S
67 1 8
elpug_powerups_cat()
S
70 1 6
Powerfolio_Carousel::register_shortcodes()
S
79 1 3