Envira_Gallery_Shortcode D

Total Complexity 257
Dependencies 3
Dependents 1
Total lines 2,049
Lines of code 1,150
Logical lines of code 669
Comment lines 517
Methods 26
Properties 11

Methods 26

Method Rating Maintainability Complexity Lines of code
gallery_init()
D
12
49 496
generate_gallery_item_markup()
D
24
57 120
shortcode()
D
30 31 98
get_image_src()
C
33 31 90
maybe_sort_gallery()
B
40 19 62
add_image_srcset_attributes()
A
51 8 26
find_clostest_size()
S
52 7 23
get_image_sizes()
S
51 6 26
maybe_change_link()
S
58 5 15
do_feed_output()
S
58 5 13
load_lightbox_theme()
S
58 4 14
load_gallery_theme()
S
58 4 14
description()
S
55 3 19
get_gallery_classes()
S
58 3 14
get_indexable_images()
S
60 3 12
is_image()
S
61 3 12
get_gallery_item_classes()
S
61 3 11
get_toolbar_template()
S
55 2 19
get_instance()
S
70 3 6
minify()
S
61 2 11
get_lightbox_template()
S
55 1 19
get_config()
S
77 2 3
plugin_humility()
S
72 2 5
add_stylesheet_property_attribute()
S
70 2 6
__construct()
S
58 1 13
usort_callback()
S
78 1 3