Code Snippets 3.0.0

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: 166.75 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=a473bfeeda
Aspect after-activation
HTTP status 200
Load time 0.427 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.324 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.196 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.164 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.271 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.510 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.179 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.739 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.368 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.349 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.348 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.611 s0.408 s-0.203 s3.37 MiB3.52 MiB+ 149.12 KiB
/wp-admin/edit.php0.193 s0.247 s+0.054 s3.4 MiB3.55 MiB+ 148.41 KiB
/wp-admin/post-new.php0.866 s1.261 s+0.395 s5.68 MiB5.84 MiB+ 158.96 KiB
/wp-admin/upload.php0.530 s0.330 s-0.200 s3.25 MiB3.46 MiB+ 219.98 KiB
/wp-admin/options-writing.php0.312 s0.166 s-0.146 s3.24 MiB3.38 MiB+ 139.77 KiB
/wp-admin/media-new.php0.245 s0.214 s-0.031 s3.23 MiB3.44 MiB+ 220.16 KiB
/wp-admin/edit-tags.php?taxonomy=category0.185 s0.224 s+0.039 s3.27 MiB3.47 MiB+ 213.06 KiB
/wp-admin/post-new.php?post_type=page1.172 s0.800 s-0.372 s5.68 MiB5.83 MiB+ 154.55 KiB
/wp-admin/options-discussion.php0.243 s0.333 s+0.090 s3.22 MiB3.37 MiB+ 156.41 KiB
/wp-admin/edit-comments.php0.223 s0.224 s+0.001 s3.27 MiB3.48 MiB+ 212.01 KiB
/0.322 s0.250 s-0.072 s3.35 MiB3.41 MiB+ 61.86 KiB
Average 0.446 s0.405 s-0.040 s3.72 MiB3.89 MiB+ 166.75 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