Code Snippets 3.6.6

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

Summary

Errors
The plugin could not be activated
1PHP fatal errors
2PHP warnings
No JavaScript exceptions
No resource errors
Performance

No data available.

Environment
WordPress version6.7.1
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 1

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin=code-snippets%2Fcode-snippets.php
Requested URL /wp-admin/plugins.php?action=activate&plugin=code-snippets%2Fcode-snippets.php&plugin_status=all&paged=1&s&_wpnonce=d2cd65cc2c
Aspect after-activation
HTTP status 200
Load time 0.237 s
Memory usage 3.49 MiB
JS errors None
Resource errors None

Benchmark

No benchmark data available.

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
Markdown
Language % Lines of code Comment lines Files
PHP53.4%5,9603,04945
TypeScript22.9%2,5577361
Sass14.5%1,620015
Markdown8.3%93101
SVG0.9%9702
Total 11,165 3,122 124

PHP Code Analysis | More results »

Lines of code 5,485
Total complexity 1,130
Median class complexity 26.0
Median method complexity 2.0
Most complex class Code_Snippets\List_Table
Most complex function Code_Snippets\Validator::validate()
Classes 27
Methods 283
Functions 46

Additions

No data available.

PHP Error Log 12 lines

[27-Nov-2024 16:39:39 UTC] PHP Warning:  include(/wp-content/plugins/code-snippets/vendor/composer/../../php/class-welcome-api.php): Failed to open stream: No such file or directory in /wp-content/plugins/code-snippets/vendor/composer/ClassLoader.php on line 576
[27-Nov-2024 16:39:39 UTC] PHP Warning:  include(): Failed opening '/wp-content/plugins/code-snippets/vendor/composer/../../php/class-welcome-api.php' for inclusion (include_path='.:/opt/bitnami/php/lib/php') in /wp-content/plugins/code-snippets/vendor/composer/ClassLoader.php on line 576
[27-Nov-2024 16:39:39 UTC] PHP Fatal error:  Uncaught Error: Class "Code_Snippets\Welcome_API" not found in /wp-content/plugins/code-snippets/php/class-admin.php:33
Stack trace:
#0 /wp-content/plugins/code-snippets/php/class-plugin.php(104): Code_Snippets\Admin->__construct()
#1 /wp-content/plugins/code-snippets/php/load.php(65): Code_Snippets\Plugin->load_plugin()
#2 /wp-content/plugins/code-snippets/code-snippets.php(61): require_once('...')
#3 /wp-admin/includes/plugin.php(2387): include_once('...')
#4 /wp-admin/includes/plugin.php(673): plugin_sandbox_scrape()
#5 /wp-admin/plugins.php(60): activate_plugin()
#6 {main}
  thrown in /wp-content/plugins/code-snippets/php/class-admin.php on line 33
See also: All tests for this plugin, How to Hide Code Snippets Admin Menus