Code Snippets 2.14.5

Does Code Snippets work with WordPress 5.9.3 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: 102.23 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.033 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version5.9.3
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=9ab188fd58
Aspect after-activation
HTTP status 200
Load time 0.719 s
Memory usage 3.44 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.365 s
Memory usage 3.72 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.876 s
Memory usage 3.41 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.237 s
Memory usage 3.37 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 1.001 s
Memory usage 3.41 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.432 s
Memory usage 3.38 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.544 s0.530 s-0.014 s3.37 MiB3.46 MiB+ 96.85 KiB
/wp-admin/edit.php0.226 s0.393 s+0.167 s3.4 MiB3.49 MiB+ 96.14 KiB
/wp-admin/post-new.php1.517 s2.253 s+0.736 s5.68 MiB5.78 MiB+ 97.05 KiB
/wp-admin/upload.php0.668 s0.783 s+0.115 s3.25 MiB3.41 MiB+ 164.35 KiB
/wp-admin/options-writing.php0.357 s0.257 s-0.100 s3.24 MiB3.32 MiB+ 84.14 KiB
/wp-admin/media-new.php0.426 s0.375 s-0.051 s3.23 MiB3.32 MiB+ 100.52 KiB
/wp-admin/edit-tags.php?taxonomy=category0.296 s0.305 s+0.009 s3.27 MiB3.42 MiB+ 157.43 KiB
/wp-admin/post-new.php?post_type=page1.745 s1.493 s-0.252 s5.68 MiB5.77 MiB+ 92.63 KiB
/wp-admin/options-discussion.php0.358 s0.348 s-0.010 s3.22 MiB3.32 MiB+ 100.77 KiB
/wp-admin/edit-comments.php0.401 s0.391 s-0.010 s3.27 MiB3.42 MiB+ 156.38 KiB
/0.626 s0.404 s-0.222 s3.4 MiB3.38 MiB- 21.76 KiB
Average 0.651 s0.685 s+0.033 s3.73 MiB3.83 MiB+ 102.23 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 File68.7%8,5093,56916
PHP30.6%3,7841,80627
CSS0.6%73073
SVG0.1%1101
JavaScript0.1%8196
Total 12,385 5,394 123

PHP Code Analysis | More results »

Lines of code 3,551
Total complexity 798
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 165
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