AMP Blocks 1.6.3

Does AMP Blocks work with WordPress 6.5.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
6PHP deprecation warnings
1JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 80.69 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.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 400+
WordPress.org page https://wordpress.org/plugins/amp-blocks/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 3

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=amp-blocks%2Famp-blocks.php&plugin_status=all&paged=1&s&_wpnonce=a04f7b9453
Aspect after-activation
HTTP status 200
Load time 0.467 s
Memory usage 7.35 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.239 s
Memory usage 3.43 MiB
JS errors None
Resource errors None

Add New Post ‹ Test site — WordPress

Page screenshot: Add New Post ‹ Test site — WordPress
URL /wp-admin/post-new.php
Aspect new-meta-boxes
HTTP status 200
Load time 0.701 s
Memory usage 5.79 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'appendChild')\n    at HTMLDocument.a (/wp-content/plugins/amp-blocks/dist/blocks.build.js?ver=1.6.3:1:1625414)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.381 s0.349 s-0.032 s3.44 MiB3.5 MiB+ 61.88 KiB
/wp-admin/edit.php0.217 s0.210 s-0.007 s3.46 MiB3.52 MiB+ 61.52 KiB
/wp-admin/post-new.php1.047 s1.020 s-0.027 s5.59 MiB5.79 MiB+ 208.51 KiB
/wp-admin/upload.php0.634 s0.586 s-0.048 s3.38 MiB3.42 MiB+ 44.16 KiB
/wp-admin/options-writing.php0.232 s0.260 s+0.028 s3.37 MiB3.41 MiB+ 36.13 KiB
/wp-admin/media-new.php0.312 s0.243 s-0.069 s3.35 MiB3.41 MiB+ 56.35 KiB
/wp-admin/edit-tags.php?taxonomy=category0.200 s0.200 s+0.000 s3.37 MiB3.43 MiB+ 61.52 KiB
/wp-admin/post-new.php?post_type=page0.560 s0.720 s+0.160 s5.59 MiB5.78 MiB+ 203.72 KiB
/wp-admin/options-discussion.php0.370 s0.249 s-0.121 s3.36 MiB3.4 MiB+ 44.66 KiB
/wp-admin/edit-comments.php0.264 s0.470 s+0.206 s3.39 MiB3.43 MiB+ 44.16 KiB
/0.315 s0.328 s+0.013 s3.37 MiB3.43 MiB+ 65 KiB
Average 0.412 s0.421 s+0.009 s3.79 MiB3.87 MiB+ 80.69 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.

JavaScript
CSS
PHP
Language % Lines of code Comment lines Files
JavaScript56.7%2,3321397
CSS25.2%1,0381712
PHP18.0%7421734
Total 4,112 329 23

PHP Code Analysis | More results »

Lines of code 742
Total complexity 139
Median class complexity 40.0
Median method complexity 2.0
Most complex class AMPBLOCKS_Gutenberg
Most complex function Aq_Resize::process()
Classes 3
Methods 15
Functions 6

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.

Meta Boxes

{
    "post": {
        "pageparentdiv": {
            "title": "Post Attributes",
            "context": "side"
        }
    }
}

PHP Error Log 6 lines

[14-Apr-2024 04:28:49 UTC] PHP Deprecated:  Hook block_categories is deprecated since version 5.8.0! Use block_categories_all instead. in /wp-includes/functions.php on line 6078
[14-Apr-2024 04:28:49 UTC] PHP Deprecated:  Hook block_categories is deprecated since version 5.8.0! Use block_categories_all instead. in /wp-includes/functions.php on line 6078
[14-Apr-2024 04:28:54 UTC] PHP Deprecated:  Hook block_categories is deprecated since version 5.8.0! Use block_categories_all instead. in /wp-includes/functions.php on line 6078
[14-Apr-2024 04:28:54 UTC] PHP Deprecated:  Hook block_categories is deprecated since version 5.8.0! Use block_categories_all instead. in /wp-includes/functions.php on line 6078
[14-Apr-2024 04:28:59 UTC] PHP Deprecated:  Hook block_categories is deprecated since version 5.8.0! Use block_categories_all instead. in /wp-includes/functions.php on line 6078
[14-Apr-2024 04:28:59 UTC] PHP Deprecated:  Hook block_categories is deprecated since version 5.8.0! Use block_categories_all instead. in /wp-includes/functions.php on line 6078
See also: All tests for this plugin, How to Hide the "Post Attributes" Meta Box