Code Analysis: Photo Portfolio Gallery 1.0.5

Function Rating Maintainability Complexity Lines of code
Photo_Gallery_Template_Loader::load_front_end()
D
27
30 148
Photo_Gallery_Portfolios::show_portfolios_page()
C
30 25 121
photo_gallery_get_default_general_options()
C
15
1 464
Photo_Gallery_Portfolios::save_portfolio_data()
B
30 16 128
Photo_Gallery_Ajax::callback()
B
35 19 82
photo_gallery_get_image_by_sizes_and_src()
A
42 15 52
Photo_Gallery_Frontend_Scripts::localize_scripts()
A
30 9 126
photo_gallery_print_html_nav()
A
38 9 98
Photo_Gallery_Admin::duplicate_portfolio()
A
40 11 55
Photo_Gallery_Admin::add_video()
A
40 10 57
Photo_Gallery_Portfolios::load_portfolio_page()
A
48 11 32
photo_gallery_get_view_slag_by_id()
A
48 10 35
Photo_Gallery_Admin::add_thumb_video()
A
48 10 29
Photo_Gallery_Admin::wp_loaded()
A
51 10 27
Photo_Gallery_Frontend_Scripts::frontend_scripts()
A
43 7 49
Photo_Gallery_Admin::edit_video()
A
49 8 28
Photo_Gallery_Install::install_options()
A
46 7 38
Photo_Gallery_Install::create_tables()
A
37 4 82
photo_gallery_youtube_or_vimeo_portfolio()
S
58 8 14
Photo_Gallery_Admin::remove_portfolio()
S
54 7 19
photo_gallery_autoload()
S
56 6 17
Photo_Gallery_Portfolios::edit_portfolio()
S
49 5 28
Photo_Gallery::is_request()
S
62 6 12
Photo_Gallery_Widget::form()
S
50 4 32
Photo_Gallery_Lightbox_Options::save_options()
S
58 5 15
Photo_Gallery_Lightbox_Options::load_page()
S
63 5 11
photo_gallery_open_cat_in_tree()
S
52 4 24
Photo_Gallery_Frontend_Scripts::frontend_styles()
S
53 4 23
gutenberg_photo_portfolio_gallery_block()
S
48 3 36
Photo_Gallery_Admin::add_portfolio()
S
48 3 32
photo_gallery_get_image_from_video()
S
57 4 15
photo_gallery_get_video_id_from_url()
S
61 4 12
Photo_Gallery_Admin_Assets::admin_scripts()
S
56 3 17
photo_gallery_adjust_brightness()
S
57 3 15
Photo_Gallery_Widget::widget()
S
61 3 12
Photo_Gallery_Install::install()
S
63 3 11
Photo_Gallery_General_Options::load_page()
S
72 3 5
Photo_Gallery_Shortcode::init_frontend()
S
58 2 15
Photo_Gallery_Install::isset_table_column()
S
63 3 10
photo_portfolio_gallery_block_categories()
S
60 2 15
Photo_Gallery::includes()
S
65 3 10
photo_gallery_isset_table_column()
S
64 3 9
Photo_Gallery::init()
S
61 2 13
Photo_Gallery_Admin::admin_menu()
S
54 1 22
Photo_Gallery_Admin_Assets::admin_styles()
S
65 2 8
Photo_Gallery_Install::check_version()
S
70 2 6
Photo_Gallery::instance()
S
72 2 6
Photo_Gallery::define()
S
75 2 5
photo_gallery_get_portfolio_task()
S
78 2 3
photo_gallery_get_portfolio_id()
S
78 2 3
Photo_Gallery_Shortcode::run_shortcode()
S
62 1 11
Photo_Gallery::__construct()
S
65 1 9
photo_gallery_get_image_description()
S
72 1 5
Photo_Gallery::define_constants()
S
64 1 9
Photo_Gallery_Widgets::init()
S
80 1 3
Photo_Gallery_Frontend_Scripts::__construct()
S
71 1 5
photo_gallery_get_image_title()
S
72 1 5
Photo_Gallery::__wakeup()
S
78 1 3
Photo_Gallery()
S
82 1 3
Photo_Gallery_Admin::__construct()
S
73 1 5
Photo_Gallery_Admin_Assets::__construct()
S
75 1 4
Photo_Gallery::init_hooks()
S
69 1 6
Photo_Gallery_Admin_Assets::localize_scripts()
S
91 1 2
Photo_Gallery_Widget::__construct()
S
69 1 7
Photo_Gallery_General_Options::show_page()
S
78 1 3
Photo_Gallery_Shortcode::__construct()
S
72 1 5
Photo_Gallery::__clone()
S
78 1 3
photo_gallery_get_image_id()
S
72 1 5
Photo_Gallery::plugin_path()
S
80 1 3
Photo_Gallery::frontend_includes()
S
81 1 3
Photo_Gallery::load_plugin_textdomain()
S
78 1 3
Photo_Gallery_Lightbox_Options::show_page()
S
78 1 3
Photo_Gallery_Widget::update()
S
71 1 6
Photo_Gallery::plugin_url()
S
79 1 3
Photo_Gallery_Install::init()
S
78 1 3
Photo_Gallery_Lightbox_Options::__construct()
S
79 1 3
Photo_Gallery::ajax_url()
S
79 1 3
Photo_Gallery_Ajax::__construct()
S
75 1 4
Photo_Gallery_Licensing::show_page()
S
78 1 3
Photo_Gallery_Shortcode::photo_inline_popup_content()
S
79 1 3
Photo_Gallery_Admin::init()
S
71 1 6
Photo_Gallery_Shortcode::add_editor_media_button()
S
64 1 9
Photo_Gallery_General_Options::__construct()
S
79 1 3