Code Snippets 2.14.3

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: 101.4 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.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=24e587d138
Aspect after-activation
HTTP status 200
Load time 0.464 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.209 s
Memory usage 3.71 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.801 s
Memory usage 3.42 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.167 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 0.673 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.225 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.364 s0.295 s-0.069 s3.37 MiB3.46 MiB+ 95.91 KiB
/wp-admin/edit.php0.178 s0.200 s+0.022 s3.4 MiB3.49 MiB+ 95.2 KiB
/wp-admin/post-new.php1.034 s1.252 s+0.218 s5.65 MiB5.75 MiB+ 96.11 KiB
/wp-admin/upload.php0.401 s0.545 s+0.144 s3.25 MiB3.41 MiB+ 163.41 KiB
/wp-admin/options-writing.php0.340 s0.146 s-0.194 s3.24 MiB3.32 MiB+ 83.2 KiB
/wp-admin/media-new.php0.278 s0.210 s-0.068 s3.23 MiB3.32 MiB+ 99.59 KiB
/wp-admin/edit-tags.php?taxonomy=category0.193 s0.187 s-0.006 s3.27 MiB3.42 MiB+ 156.49 KiB
/wp-admin/post-new.php?post_type=page0.973 s0.990 s+0.017 s5.65 MiB5.74 MiB+ 91.7 KiB
/wp-admin/options-discussion.php0.236 s0.243 s+0.007 s3.22 MiB3.32 MiB+ 99.84 KiB
/wp-admin/edit-comments.php0.218 s0.192 s-0.026 s3.27 MiB3.42 MiB+ 155.44 KiB
/0.306 s0.213 s-0.093 s3.4 MiB3.38 MiB- 21.45 KiB
Average 0.411 s0.407 s-0.004 s3.72 MiB3.82 MiB+ 101.4 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