Code Snippets 3.6.4

Does Code Snippets work with WordPress 6.5.3 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
No PHP errors, warnings or notices
No JavaScript exceptions
1Page failed to load
  • 1 404 Not Found
4Resource errors (CSS, JS, images, fonts and so on.)
  • 4
Performance

Memory usage: 147.62 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 version6.5.3
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 1,000,000+
WordPress.org page https://wordpress.org/plugins/code-snippets/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 14

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=29aeb0c47e
Aspect after-activation
HTTP status 200
Load time 0.356 s
Memory usage 3.62 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.271 s
Memory usage 3.59 MiB
JS errors None
Resource errors None

Snippets → Functionsphp

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

Snippets → Contenthtml

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

Snippets → Cloud Search

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

Snippets → Stylescss

Page screenshot: Snippets → Stylescss
URL https://codesnippets.pro/pricing/
Aspect menu-item-tab
HTTP status 404
Load time 2.676 s
Memory usage N/A
JS errors None
Resource errors
[
    {
        "status": null,
        "statusText": null,
        "url": "https://cdn.jsdelivr.net/gh/jdecked/twemoji@15.0.3/assets/1f525.svg",
        "errorString": ""
    },
    {
        "status": null,
        "statusText": null,
        "url": "https://cdn.jsdelivr.net/gh/jdecked/twemoji@15.0.3/assets/1f525.svg",
        "errorString": ""
    }
]

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.677 s
Memory usage 3.55 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.655 s
Memory usage 3.55 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.192 s
Memory usage 3.55 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.971 s
Memory usage 3.57 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.334 s
Memory usage 3.57 MiB
JS errors None
Resource errors None

Snippets → Settings → Debug

Page screenshot: Snippets → Settings → Debug
URL /wp-admin/admin.php?page=snippets-settings&section=debug
Aspect menu-item-tab
HTTP status 200
Load time 0.320 s
Memory usage 3.57 MiB
JS errors None
Resource errors None

Snippets → Go Pro

Page screenshot: Snippets → Go Pro
URL https://snipco.de/JE2f
Requested URL /wp-admin/admin.php?page=code_snippets_upgrade
Aspect menu-item
HTTP status 200
Load time 0.646 s
Memory usage N/A
JS errors None
Resource errors
[
    {
        "status": null,
        "statusText": null,
        "url": "https://cdn.jsdelivr.net/gh/jdecked/twemoji@15.0.3/assets/1f525.svg",
        "errorString": ""
    },
    {
        "status": null,
        "statusText": null,
        "url": "https://cdn.jsdelivr.net/gh/jdecked/twemoji@15.0.3/assets/1f525.svg",
        "errorString": ""
    }
]

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.457 s
Memory usage 3.43 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.372 s0.531 s+0.159 s3.44 MiB3.59 MiB+ 160.34 KiB
/wp-admin/edit.php0.220 s0.262 s+0.042 s3.46 MiB3.62 MiB+ 159.63 KiB
/wp-admin/post-new.php0.949 s0.973 s+0.024 s5.59 MiB5.79 MiB+ 209.36 KiB
/wp-admin/upload.php0.590 s0.443 s-0.147 s3.38 MiB3.52 MiB+ 142.98 KiB
/wp-admin/options-writing.php0.230 s0.224 s-0.006 s3.37 MiB3.5 MiB+ 134.88 KiB
/wp-admin/media-new.php0.306 s0.294 s-0.012 s3.35 MiB3.5 MiB+ 155.16 KiB
/wp-admin/edit-tags.php?taxonomy=category0.199 s0.390 s+0.191 s3.37 MiB3.52 MiB+ 160.34 KiB
/wp-admin/post-new.php?post_type=page0.561 s0.636 s+0.075 s5.58 MiB5.79 MiB+ 204.95 KiB
/wp-admin/options-discussion.php0.252 s0.362 s+0.110 s3.36 MiB3.5 MiB+ 143.41 KiB
/wp-admin/edit-comments.php0.481 s0.274 s-0.207 s3.39 MiB3.53 MiB+ 143.01 KiB
/0.330 s0.209 s-0.121 s3.42 MiB3.43 MiB+ 9.8 KiB
Average 0.408 s0.418 s+0.010 s3.79 MiB3.94 MiB+ 147.62 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
TypeScript
Sass
Language % Lines of code Comment lines Files
PHP59.5%5,7143,00243
TypeScript26.6%2,5517461
Sass12.9%1,235014
SVG1.0%9702
Total 9,597 3,076 120

PHP Code Analysis | More results »

Lines of code 5,408
Total complexity 1,119
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 26
Methods 279
Functions 46

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