Code Snippets 2.14.2

Does Code Snippets work with WordPress 5.8.2 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.2
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=41be63da95
Aspect after-activation
HTTP status 200
Load time 0.463 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.209 s
Memory usage 3.49 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 1.126 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.169 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.718 s
Memory usage 3.18 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.208 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.331 s0.313 s-0.018 s3.08 MiB3.17 MiB+ 90.41 KiB
/wp-admin/edit.php0.191 s0.187 s-0.004 s3.11 MiB3.26 MiB+ 154.41 KiB
/wp-admin/post-new.php0.816 s0.932 s+0.116 s5.27 MiB5.36 MiB+ 96.73 KiB
/wp-admin/upload.php0.379 s0.532 s+0.153 s3.03 MiB3.11 MiB+ 85.91 KiB
/wp-admin/options-writing.php0.249 s0.145 s-0.104 s3.02 MiB3.09 MiB+ 69.83 KiB
/wp-admin/media-new.php0.352 s0.203 s-0.149 s3.01 MiB3.09 MiB+ 86.09 KiB
/wp-admin/edit-tags.php?taxonomy=category0.189 s0.184 s-0.005 s3.04 MiB3.12 MiB+ 86.99 KiB
/wp-admin/post-new.php?post_type=page0.628 s0.688 s+0.060 s5.26 MiB5.35 MiB+ 92.32 KiB
/wp-admin/options-discussion.php0.265 s0.240 s-0.025 s3 MiB3.09 MiB+ 86.34 KiB
/wp-admin/edit-comments.php0.210 s0.197 s-0.013 s3.04 MiB3.13 MiB+ 85.94 KiB
/0.256 s0.191 s-0.065 s2.96 MiB2.93 MiB- 27.16 KiB
Average 0.351 s0.347 s-0.005 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 File69.5%8,5093,56916
PHP29.7%3,6391,79227
CSS0.6%73073
SVG0.1%1101
JavaScript0.1%8196
Total 12,240 5,380 123

PHP Code Analysis | More results »

Lines of code 3,386
Total complexity 784
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 43

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 1

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