Code Analysis: Pattern Manager 0.1.7

Function Rating Maintainability Complexity Lines of code
format_pattern_data()
A
38 12 79
save_metadata_to_pattern_file()
A
47 8 37
move_block_images_to_theme()
A
44 7 45
register_pattern_post_type()
A
35 1 134
tree_shake_theme_images()
A
48 7 32
get_theme_patterns_with_editor_links()
S
51 6 28
get_duplicate_pattern_ids()
S
59 5 14
redirect_pattern_actions()
S
60 5 14
get_metadata_from_pattern_file()
S
62 5 11
save_pattern_to_file()
S
53 4 25
enqueue_meta_fields_in_editor()
S
48 3 34
render_pm_pattern_block()
S
66 5 7
get_wp_filesystem_api()
S
59 4 14
populate_pattern_from_file()
S
61 4 14
get_new_pattern_number()
S
61 4 12
add_post_id_to_block_context()
S
61 4 11
register_routes()
S
47 1 43
get_theme_patterns()
S
63 3 11
include_custom_modules()
S
62 3 11
duplicate_pattern()
S
54 2 24
construct_pattern_php_file_contents()
S
53 2 22
pattern_manager_app()
S
54 2 22
get_pattern_by_path()
S
56 2 18
get_default_title()
S
72 3 5
delete_pattern_posts()
S
66 3 9
delete_pattern()
S
67 3 7
update_pattern()
S
58 2 15
display_block_pattern_preview()
S
61 2 12
delete_pattern()
S
62 2 11
get_pattern_names()
S
64 2 11
add_active_theme_to_heartbeat()
S
67 2 8
get_new_pattern_title()
S
74 2 4
hide_admin_notices()
S
73 2 5
get_pattern_by_name()
S
71 2 6
disable_autosave()
S
72 2 6
short_circuit_unique_slug()
S
74 2 5
edit_pattern()
S
62 1 14
get_pattern_defaults()
S
61 1 14
get_app_state()
S
61 1 12
get_post_id_with_comment()
S
63 1 12
do_the_content_things()
S
64 1 11
pattern_manager_admin_menu_page()
S
64 1 11
remove_theme_name_from_template_parts()
S
77 1 3
get_patterns_directory()
S
80 1 3
get_pattern_path()
S
80 1 3
get_pattern_names()
S
69 1 8
module_dir_path()
S
74 1 4
module_data()
S
71 1 6
get_pm_post_ids()
S
65 1 10
permission_check()
S
81 1 3
get_pattern_post_type()
S
83 1 3
get_pattern_file_paths()
S
80 1 3
module_dir_url()
S
75 1 4