Code Snippets 3.1.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: 167.42 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=b3a2774da4
Aspect after-activation
HTTP status 200
Load time 0.528 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.225 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.178 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.168 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.322 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.460 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.156 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.713 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.351 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.353 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.228 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.339 s0.394 s+0.055 s3.37 MiB3.52 MiB+ 149.79 KiB
/wp-admin/edit.php0.198 s0.214 s+0.016 s3.4 MiB3.55 MiB+ 149.08 KiB
/wp-admin/post-new.php0.844 s0.966 s+0.122 s5.68 MiB5.84 MiB+ 159.63 KiB
/wp-admin/upload.php0.407 s0.371 s-0.036 s3.25 MiB3.46 MiB+ 220.66 KiB
/wp-admin/options-writing.php0.259 s0.166 s-0.093 s3.24 MiB3.38 MiB+ 140.45 KiB
/wp-admin/media-new.php0.274 s0.199 s-0.075 s3.23 MiB3.44 MiB+ 220.83 KiB
/wp-admin/edit-tags.php?taxonomy=category0.193 s0.191 s-0.002 s3.27 MiB3.47 MiB+ 213.73 KiB
/wp-admin/post-new.php?post_type=page0.913 s0.769 s-0.144 s5.68 MiB5.83 MiB+ 155.22 KiB
/wp-admin/options-discussion.php0.220 s0.309 s+0.089 s3.22 MiB3.38 MiB+ 157.08 KiB
/wp-admin/edit-comments.php0.279 s0.215 s-0.064 s3.27 MiB3.48 MiB+ 212.68 KiB
/0.302 s0.217 s-0.085 s3.35 MiB3.41 MiB+ 62.53 KiB
Average 0.384 s0.365 s-0.020 s3.72 MiB3.89 MiB+ 167.42 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.2%8,5093,56916
PHP35.1%4,6522,33633
CSS0.5%72072
SVG0.1%1101
JavaScript0.1%727
Total 13,251 5,907 129

PHP Code Analysis | More results »

Lines of code 4,262
Total complexity 945
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 224
Functions 38

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