Code Snippets 2.14.0

Does Code Snippets work with WordPress 5.7 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
No PHP errors, warnings or notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Looks good! No problems were detected.
Performance

Memory usage: 107.27 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version5.7
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 600,000+
WordPress.org page https://wordpress.org/plugins/code-snippets/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 6

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=code-snippets%2Fcode-snippets.php&plugin_status=all&paged=1&s&_wpnonce=63c2971e44
Aspect after-activation
HTTP status 200
Load time 0.788 s
Memory usage 2.98 MiB
JS errors None
Resource errors None

Snippets

Page screenshot: Snippets
URL /wp-admin/admin.php?page=snippets
Aspect menu-item
HTTP status 200
Load time 0.379 s
Memory usage 3.19 MiB
JS errors None
Resource errors None

Snippets → Add New

Page screenshot: Snippets → Add New
URL /wp-admin/admin.php?page=add-snippet
Aspect menu-item
HTTP status 200
Load time 0.779 s
Memory usage 2.95 MiB
JS errors None
Resource errors None

Snippets → Import

Page screenshot: Snippets → Import
URL /wp-admin/admin.php?page=import-code-snippets
Aspect menu-item
HTTP status 200
Load time 0.194 s
Memory usage 2.83 MiB
JS errors None
Resource errors None

Snippets → Settings

Page screenshot: Snippets → Settings
URL /wp-admin/admin.php?page=snippets-settings
Aspect menu-item
HTTP status 200
Load time 0.703 s
Memory usage 2.9 MiB
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.213 s
Memory usage 2.67 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.311 s0.338 s+0.027 s2.82 MiB2.91 MiB+ 94.83 KiB
/wp-admin/edit.php0.317 s0.212 s-0.105 s2.86 MiB2.96 MiB+ 94.83 KiB
/wp-admin/post-new.php1.679 s1.383 s-0.296 s5.02 MiB5.19 MiB+ 167.02 KiB
/wp-admin/upload.php0.668 s0.503 s-0.165 s2.7 MiB2.85 MiB+ 154.37 KiB
/wp-admin/options-writing.php0.213 s0.179 s-0.034 s2.71 MiB2.83 MiB+ 122.28 KiB
/wp-admin/media-new.php0.220 s0.218 s-0.002 s2.67 MiB2.76 MiB+ 90.54 KiB
/wp-admin/edit-tags.php?taxonomy=category0.222 s0.208 s-0.014 s2.77 MiB2.86 MiB+ 91.45 KiB
/wp-admin/post-new.php?post_type=page1.031 s1.265 s+0.234 s5.01 MiB5.17 MiB+ 162.61 KiB
/wp-admin/options-discussion.php0.230 s0.375 s+0.145 s2.67 MiB2.76 MiB+ 90.79 KiB
/wp-admin/edit-comments.php0.240 s0.238 s-0.002 s2.78 MiB2.86 MiB+ 90.39 KiB
/0.271 s0.230 s-0.041 s2.65 MiB2.67 MiB+ 20.91 KiB
Average 0.491 s0.468 s-0.023 s3.15 MiB3.26 MiB+ 107.27 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

PO File
PHP
Language % Lines of code Comment lines Files
PO File63.4%6,3072,62713
PHP35.7%3,5571,75827
CSS0.7%71071
SVG0.1%1101
JavaScript0.1%606
Total 9,952 4,385 118

PHP Code Analysis | More results »

Lines of code 3,274
Total complexity 748
Median class complexity 23.5
Median method complexity 2.0
Most complex class Code_Snippets_List_Table
Most complex function Code_Snippets_List_Table::process_requested_actions()
Classes 14
Methods 160
Functions 42

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

Database Tables 2

Options wp_options 3

User Metadata wp_usermeta 1

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide Code Snippets Admin Menus