Code Snippets 3.2.2

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

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

Environment
WordPress version6.1.1
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 800,000+
WordPress.org page https://wordpress.org/plugins/code-snippets/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 12

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=1d7ef58be2
Aspect after-activation
HTTP status 200
Load time 0.545 s
Memory usage 3.72 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.222 s
Memory usage 4.03 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.172 s
Memory usage 3.64 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.155 s
Memory usage 3.64 MiB
JS errors None
Resource errors None

Snippets → Styles css

Page screenshot: Snippets → Styles css
URL https://codesnippets.pro/pricing/
Aspect menu-item-tab
HTTP status 200
Load time 2.588 s
Memory usage N/A
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.744 s
Memory usage 3.67 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.456 s
Memory usage 3.65 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.183 s
Memory usage 3.65 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.711 s
Memory usage 3.67 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&section=description_editor
Aspect menu-item-tab
HTTP status 200
Load time 0.257 s
Memory usage 3.67 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&section=editor
Aspect menu-item-tab
HTTP status 200
Load time 0.318 s
Memory usage 3.67 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.237 s
Memory usage 3.47 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.314 s0.394 s+0.080 s3.54 MiB3.69 MiB+ 154.84 KiB
/wp-admin/edit.php0.177 s0.208 s+0.031 s3.57 MiB3.72 MiB+ 154.13 KiB
/wp-admin/post-new.php1.015 s1.378 s+0.363 s5.46 MiB5.62 MiB+ 164.69 KiB
/wp-admin/upload.php0.590 s0.497 s-0.093 s3.41 MiB3.62 MiB+ 217.72 KiB
/wp-admin/options-writing.php0.240 s0.149 s-0.091 s3.4 MiB3.6 MiB+ 200.13 KiB
/wp-admin/media-new.php0.245 s0.214 s-0.031 s3.38 MiB3.6 MiB+ 217.89 KiB
/wp-admin/edit-tags.php?taxonomy=category0.176 s0.205 s+0.029 s3.48 MiB3.63 MiB+ 154.8 KiB
/wp-admin/post-new.php?post_type=page0.905 s0.969 s+0.064 s5.46 MiB5.61 MiB+ 160.24 KiB
/wp-admin/options-discussion.php0.206 s0.437 s+0.231 s3.38 MiB3.6 MiB+ 218.14 KiB
/wp-admin/edit-comments.php0.188 s0.196 s+0.008 s3.48 MiB3.63 MiB+ 153.74 KiB
/0.263 s0.212 s-0.051 s3.46 MiB3.48 MiB+ 10.7 KiB
Average 0.393 s0.442 s+0.049 s3.82 MiB3.98 MiB+ 164.27 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.

PHP
Sass
TypeScript
Language % Lines of code Comment lines Files
PHP77.3%4,8652,39536
Sass11.3%709010
TypeScript10.0%6276322
SVG1.5%9402
Total 6,295 2,458 70

PHP Code Analysis | More results »

Lines of code 4,419
Total complexity 978
Median class complexity 27.5
Median method complexity 2.0
Most complex class Code_Snippets\List_Table
Most complex function Code_Snippets\Validator::validate()
Classes 20
Methods 228
Functions 39

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

User Metadata wp_usermeta 1

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide Code Snippets Admin Menus