Code Snippets 2.14.1

Does Code Snippets work with WordPress 5.8.1 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: 82.53 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.8.1
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=d07b342413
Aspect after-activation
HTTP status 200
Load time 0.599 s
Memory usage 3.21 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.319 s
Memory usage 3.5 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.741 s
Memory usage 3.19 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.156 s
Memory usage 3.14 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.680 s
Memory usage 3.17 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.217 s
Memory usage 2.93 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.334 s0.323 s-0.011 s3.08 MiB3.17 MiB+ 90.41 KiB
/wp-admin/edit.php0.185 s0.195 s+0.010 s3.11 MiB3.26 MiB+ 154.41 KiB
/wp-admin/post-new.php1.128 s1.064 s-0.064 s5.27 MiB5.36 MiB+ 96.73 KiB
/wp-admin/upload.php0.584 s0.490 s-0.094 s3.03 MiB3.11 MiB+ 85.91 KiB
/wp-admin/options-writing.php0.186 s0.152 s-0.034 s3.02 MiB3.09 MiB+ 69.83 KiB
/wp-admin/media-new.php0.259 s0.216 s-0.043 s3.01 MiB3.09 MiB+ 86.09 KiB
/wp-admin/edit-tags.php?taxonomy=category0.232 s0.188 s-0.044 s3.04 MiB3.12 MiB+ 86.99 KiB
/wp-admin/post-new.php?post_type=page1.103 s1.178 s+0.075 s5.26 MiB5.35 MiB+ 92.32 KiB
/wp-admin/options-discussion.php0.437 s0.289 s-0.148 s3 MiB3.09 MiB+ 86.34 KiB
/wp-admin/edit-comments.php0.238 s0.213 s-0.025 s3.04 MiB3.13 MiB+ 85.94 KiB
/0.314 s0.335 s+0.021 s2.96 MiB2.93 MiB- 27.16 KiB
Average 0.455 s0.422 s-0.032 s3.44 MiB3.52 MiB+ 82.53 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 File65.6%7,0962,94214
PHP33.4%3,6141,78827
CSS0.7%71071
JavaScript0.2%19196
SVG0.1%1101
Total 10,811 4,749 119

PHP Code Analysis | More results »

Lines of code 3,361
Total complexity 780
Median class complexity 23.5
Median method complexity 2.0
Most complex class Code_Snippets_List_Table
Most complex function Code_Snippets_Validator::validate()
Classes 14
Methods 164
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

PHP Error Log

The log file is empty.

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