Code Analysis: Pattern Manager 0.3.1

Function Rating Maintainability Complexity Lines of code
format_pattern_data()
A
38 11 76
save_metadata_to_pattern_file()
A
44 12 46
register_pattern_post_type()
A
34 1 151
move_block_images_to_theme()
A
44 7 45
tree_shake_theme_images()
A
48 7 32
get_theme_patterns_with_editor_links()
A
45 6 47
redirect_pattern_actions()
S
58 5 16
get_duplicate_pattern_ids()
S
59 5 14
save_pattern_to_file()
S
52 4 27
get_metadata_from_pattern_file()
S
62 5 11
enqueue_meta_fields_in_editor()
S
47 3 35
register_routes()
S
43 1 61
populate_pattern_from_file()
S
61 4 14
get_wp_filesystem_api()
S
59 4 14
get_new_pattern_number()
S
61 4 12
display_block_pattern_preview()
S
52 3 26
mock_pattern_preview_post_object()
S
42 1 56
create_formatted_category_registrations()
S
57 3 17
update_pattern_slugs()
S
61 3 13
include_custom_modules()
S
62 3 11
get_theme_patterns()
S
63 3 11
duplicate_pattern()
S
54 2 24
pattern_manager_app()
S
54 2 22
before_pattern_preview()
S
57 2 22
after_pattern_preview()
S
57 2 22
construct_pattern_php_file_contents()
S
53 2 21
get_pattern_by_path()
S
55 2 19
delete_pattern()
S
71 3 5
delete_pattern_posts()
S
66 3 9
get_default_title()
S
72 3 5
update_pattern()
S
58 2 15
delete_pattern()
S
61 2 12
update_dismissed_sites()
S
61 2 12
update_dismissed_themes()
S
61 2 12
get_pattern_names()
S
64 2 11
get_app_state()
S
56 1 17
check_version_control_notice_should_show()
S
78 2 3
get_dismissed_sites()
S
74 2 4
check_environment_notice_should_show()
S
78 2 3
hide_admin_notices()
S
73 2 5
add_active_theme_to_heartbeat()
S
67 2 8
short_circuit_unique_slug()
S
74 2 5
get_pattern_by_name()
S
71 2 6
disable_autosave()
S
72 2 6
get_new_pattern_title()
S
74 2 4
get_dismissed_themes()
S
74 2 4
get_pattern_defaults()
S
60 1 15
maybe_add_custom_category_header()
S
77 2 3
edit_pattern()
S
62 1 14
pattern_manager_admin_menu_page()
S
64 1 11
get_pattern_post_type()
S
83 1 3
get_patterns_directory()
S
80 1 3
module_dir_path()
S
74 1 4
permission_check()
S
81 1 3
get_pattern_names()
S
69 1 8
get_version_control_meta_key()
S
83 1 3
module_data()
S
71 1 6
check_theme_name_dismissed()
S
79 1 3
update_slug()
S
69 1 7
get_pattern_file_paths()
S
80 1 3
before_pattern_preview_wp_head()
S
82 1 3
remove_theme_name_from_template_parts()
S
77 1 3
module_dir_url()
S
75 1 4
get_pattern_path()
S
80 1 3
get_environment_meta_key()
S
83 1 3
check_site_dismissed()
S
79 1 3
check_for_version_control_in_theme()
S
80 1 3
check_environment()
S
80 1 3
prepend_textdomain()
S
71 1 6
has_pattern_block()
S
72 1 6
get_pm_post_ids()
S
65 1 10