Coding Blocks 1.0.5

Does Coding Blocks work with WordPress 6.0.1 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
56PHP notices
2Database errors
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 26.16 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

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

Environment
WordPress version6.0.1
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs <10
WordPress.org page https://wordpress.org/plugins/coding-blocks/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 7

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=coding-blocks%2Fcoding-blocks.php&plugin_status=all&paged=1&s&_wpnonce=ad5ce4259d
Aspect after-activation
HTTP status 200
Load time 0.691 s
Memory usage 3.72 MiB
JS errors None
Resource errors None

Coding Blocks

Page screenshot: Coding Blocks
URL /wp-admin/admin.php?page=coding-blocks
Aspect menu-item
HTTP status 200
Load time 0.449 s
Memory usage 3.66 MiB
JS errors None
Resource errors None

Coding Blocks → New Snippet

Page screenshot: Coding Blocks → New Snippet
URL /wp-admin/admin.php?page=coding-blocks-new-snippet
Aspect menu-item
HTTP status 200
Load time 0.332 s
Memory usage 3.68 MiB
JS errors None
Resource errors None

Coding Blocks → All Snippets

Page screenshot: Coding Blocks → All Snippets
URL /wp-admin/admin.php?page=coding-blocks-snippets
Aspect menu-item
HTTP status 200
Load time 0.208 s
Memory usage 3.71 MiB
JS errors None
Resource errors None

Coding Blocks → Theme Preview

Page screenshot: Coding Blocks → Theme Preview
URL /wp-admin/admin.php?page=coding-blocks-preview
Aspect menu-item
HTTP status 200
Load time 0.249 s
Memory usage 3.68 MiB
JS errors None
Resource errors None

Coding Blocks → Plugin Options

Page screenshot: Coding Blocks → Plugin Options
URL /wp-admin/admin.php?page=coding-blocks-settings
Aspect menu-item
HTTP status 200
Load time 0.290 s
Memory usage 3.68 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.395 s
Memory usage 3.57 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.353 s0.331 s-0.022 s3.72 MiB3.75 MiB+ 32.09 KiB
/wp-admin/edit.php0.197 s0.254 s+0.057 s3.75 MiB3.78 MiB+ 30.76 KiB
/wp-admin/post-new.php0.978 s1.277 s+0.299 s5.55 MiB5.58 MiB+ 34.64 KiB
/wp-admin/upload.php0.463 s0.500 s+0.037 s3.68 MiB3.71 MiB+ 30.94 KiB
/wp-admin/options-writing.php0.149 s0.352 s+0.203 s3.62 MiB3.65 MiB+ 39.45 KiB
/wp-admin/media-new.php0.440 s0.245 s-0.195 s3.66 MiB3.69 MiB+ 31.42 KiB
/wp-admin/edit-tags.php?taxonomy=category0.180 s0.233 s+0.053 s3.69 MiB3.72 MiB+ 32.64 KiB
/wp-admin/post-new.php?post_type=page1.029 s1.269 s+0.240 s5.54 MiB5.57 MiB+ 26.23 KiB
/wp-admin/options-discussion.php0.212 s0.370 s+0.158 s3.6 MiB3.63 MiB+ 32.36 KiB
/wp-admin/edit-comments.php0.221 s0.270 s+0.049 s3.69 MiB3.72 MiB+ 30.78 KiB
/0.307 s0.268 s-0.039 s3.6 MiB3.57 MiB- 33.5 KiB
Average 0.412 s0.488 s+0.076 s4.01 MiB4.03 MiB+ 26.16 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.

CSS
PHP
Language % Lines of code Comment lines Files
CSS56.7%2,64157539
PHP35.6%1,65869422
JavaScript7.7%36055038
Total 4,659 1,819 99

PHP Code Analysis | More results »

Lines of code 366
Total complexity 64
Median class complexity 5.0
Median method complexity 1.0
Most complex class Coding_Blocks_Admin
Most complex function coding_blocks_display_content()
Classes 7
Methods 29
Functions 7

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 2

Options wp_options 1

PHP Error Log 58 lines

[06-Aug-2022 18:20:36 UTC] PHP Notice:  Function wpdb::prepare was called <strong>incorrectly</strong>. The query argument of wpdb::prepare() must have a placeholder. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.9.0.) in /wp-includes/functions.php on line 5831
[06-Aug-2022 18:20:36 UTC] WordPress database error Table 'wordpress.wp_coding_blocks' doesn't exist for query SELECT * FROM wp_coding_blocks made by activate_plugin, do_action('activate_coding-blocks/coding-blocks.php'), WP_Hook->do_action, WP_Hook->apply_filters, activate_coding_blocks, Coding_Blocks_Activator::activate
[06-Aug-2022 18:20:36 UTC] PHP Notice:  Function wpdb::prepare was called <strong>incorrectly</strong>. The query argument of wpdb::prepare() must have a placeholder. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.9.0.) in /wp-includes/functions.php on line 5831
[06-Aug-2022 18:20:36 UTC] WordPress database error Table 'wordpress.wp_coding_blocks' doesn't exist for query SELECT loader FROM wp_coding_blocks made by activate_plugin, do_action('activate_coding-blocks/coding-blocks.php'), WP_Hook->do_action, WP_Hook->apply_filters, activate_coding_blocks, Coding_Blocks_Activator::activate
[06-Aug-2022 18:20:36 UTC] PHP Notice:  Undefined variable: db_error in /wp-content/plugins/coding-blocks/includes/class-coding-blocks-activator.php on line 89
[06-Aug-2022 18:20:36 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:36 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:37 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:37 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:38 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:38 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:39 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:39 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:39 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/pages/new-snippet.php on line 9
[06-Aug-2022 18:20:39 UTC] PHP Notice:  Trying to get property 'line_numbers' of non-object in /wp-content/plugins/coding-blocks/admin/pages/new-snippet.php on line 9
[06-Aug-2022 18:20:39 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/pages/new-snippet.php on line 15
[06-Aug-2022 18:20:39 UTC] PHP Notice:  Trying to get property 'copy_btn' of non-object in /wp-content/plugins/coding-blocks/admin/pages/new-snippet.php on line 15
[06-Aug-2022 18:20:40 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:40 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:40 UTC] PHP Notice:  Undefined index: search in /wp-content/plugins/coding-blocks/admin/pages/snippets.php on line 226
[06-Aug-2022 18:20:41 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:41 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:42 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:42 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:42 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/pages/settings.php on line 12
[06-Aug-2022 18:20:42 UTC] PHP Notice:  Trying to get property 'copy_btn' of non-object in /wp-content/plugins/coding-blocks/admin/pages/settings.php on line 12
[06-Aug-2022 18:20:42 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/pages/settings.php on line 13
[06-Aug-2022 18:20:42 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/pages/settings.php on line 13
[06-Aug-2022 18:20:42 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/pages/settings.php on line 14
[06-Aug-2022 18:20:42 UTC] PHP Notice:  Trying to get property 'line_numbers' of non-object in /wp-content/plugins/coding-blocks/admin/pages/settings.php on line 14
[06-Aug-2022 18:20:43 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/public/class-coding-blocks-public.php on line 83
[06-Aug-2022 18:20:43 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/public/class-coding-blocks-public.php on line 83
[06-Aug-2022 18:20:44 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:44 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:45 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:45 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:45 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:45 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:47 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:47 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:48 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:48 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:48 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:48 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:48 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:48 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:49 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:49 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:51 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:51 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:52 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:52 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:52 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/public/class-coding-blocks-public.php on line 83
[06-Aug-2022 18:20:52 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/public/class-coding-blocks-public.php on line 83
[06-Aug-2022 18:20:52 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:52 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:53 UTC] PHP Notice:  Undefined offset: 0 in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
[06-Aug-2022 18:20:53 UTC] PHP Notice:  Trying to get property 'theme' of non-object in /wp-content/plugins/coding-blocks/admin/class-coding-blocks-admin.php on line 84
See also: All tests for this plugin, How to Hide Coding Blocks Admin Menus