Code Snippets 3.0.1

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: 162.44 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 11

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=83b6f3f1e3
Aspect after-activation
HTTP status 200
Load time 0.662 s
Memory usage 3.5 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.347 s
Memory usage 3.82 MiB
JS errors None
Resource errors None

Snippets → Functions php

Page screenshot: Snippets → Functions php
URL /wp-admin/admin.php?page=snippets&type=php
Aspect menu-item-tab
HTTP status 200
Load time 0.284 s
Memory usage 3.48 MiB
JS errors None
Resource errors None

Snippets → Content html

Page screenshot: Snippets → Content html
URL /wp-admin/admin.php?page=snippets&type=html
Aspect menu-item-tab
HTTP status 200
Load time 0.269 s
Memory usage 3.48 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.669 s
Memory usage 3.5 MiB
JS errors None
Resource errors None

Snippets → Add New → Content html

Page screenshot: Snippets → Add New → Content html
URL /wp-admin/admin.php?page=add-snippet&type=html
Aspect menu-item-tab
HTTP status 200
Load time 0.688 s
Memory usage 3.5 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.271 s
Memory usage 3.43 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.997 s
Memory usage 3.45 MiB
JS errors None
Resource errors None

Snippets → Settings → Description Editor

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

Snippets → Settings → Code Editor

Page screenshot: Snippets → Settings → Code Editor
URL /wp-admin/admin.php?page=snippets-settings
Aspect menu-item-tab
HTTP status 200
Load time 0.550 s
Memory usage 3.45 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.372 s
Memory usage 3.41 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.462 s0.482 s+0.020 s3.37 MiB3.52 MiB+ 149.12 KiB
/wp-admin/edit.php0.251 s0.233 s-0.018 s3.4 MiB3.55 MiB+ 148.41 KiB
/wp-admin/post-new.php1.825 s1.916 s+0.091 s5.68 MiB5.84 MiB+ 158.96 KiB
/wp-admin/upload.php0.788 s0.486 s-0.302 s3.25 MiB3.46 MiB+ 219.98 KiB
/wp-admin/options-writing.php0.372 s0.247 s-0.125 s3.24 MiB3.38 MiB+ 139.77 KiB
/wp-admin/media-new.php0.388 s0.321 s-0.067 s3.23 MiB3.44 MiB+ 220.16 KiB
/wp-admin/edit-tags.php?taxonomy=category0.298 s0.283 s-0.015 s3.27 MiB3.47 MiB+ 213.06 KiB
/wp-admin/post-new.php?post_type=page1.558 s1.352 s-0.206 s5.68 MiB5.83 MiB+ 154.55 KiB
/wp-admin/options-discussion.php0.275 s0.601 s+0.326 s3.22 MiB3.37 MiB+ 156.41 KiB
/wp-admin/edit-comments.php0.291 s0.362 s+0.071 s3.27 MiB3.48 MiB+ 212.01 KiB
/0.506 s0.376 s-0.130 s3.4 MiB3.41 MiB+ 14.41 KiB
Average 0.638 s0.605 s-0.032 s3.73 MiB3.89 MiB+ 162.44 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 File64.4%8,5093,56916
PHP34.9%4,6142,33033
CSS0.5%72072
SVG0.1%1101
JavaScript0.1%727
Total 13,213 5,901 129

PHP Code Analysis | More results »

Lines of code 4,233
Total complexity 950
Median class complexity 28.0
Median method complexity 2.0
Most complex class Code_Snippets\List_Table
Most complex function Code_Snippets\Validator::validate()
Classes 19
Methods 221
Functions 36

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