AMP 2.5.0

Does AMP work with WordPress 6.4.2 and PHP 8.1.12? 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: 597.68 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.4.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 400,000+
WordPress.org page https://wordpress.org/plugins/amp/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 6

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%2Famp.php&plugin_status=all&paged=1&s&_wpnonce=b6e05f86f2
Aspect after-activation
HTTP status 200
Load time 0.760 s
Memory usage 8.68 MiB
JS errors None
Resource errors None

AMP

Page screenshot: AMP
URL /wp-admin/admin.php?page=amp-options
Aspect menu-item
HTTP status 200
Load time 2.411 s
Memory usage 5.61 MiB
JS errors None
Resource errors None

AMP → Support

Page screenshot: AMP → Support
URL /wp-admin/admin.php?page=amp-support
Aspect menu-item
HTTP status 200
Load time 0.451 s
Memory usage 5.57 MiB
JS errors None
Resource errors None

AMP → Validated URLs

Page screenshot: AMP → Validated URLs
URL /wp-admin/edit.php?post_type=amp_validated_url
Aspect menu-item
HTTP status 200
Load time 0.390 s
Memory usage 8.62 MiB
JS errors None
Resource errors None

AMP → Error Index

Page screenshot: AMP → Error Index
URL /wp-admin/edit-tags.php?taxonomy=amp_validation_error&post_type=amp_validated_url
Aspect menu-item
HTTP status 200
Load time 0.266 s
Memory usage 5.16 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.524 s
Memory usage 3.71 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.509 s0.478 s-0.031 s3.38 MiB3.97 MiB+ 600.48 KiB
/wp-admin/edit.php0.249 s0.276 s+0.027 s3.41 MiB4.06 MiB+ 671.41 KiB
/wp-admin/post-new.php1.118 s1.162 s+0.044 s5.46 MiB6.16 MiB+ 714.55 KiB
/wp-admin/upload.php0.880 s0.558 s-0.322 s3.32 MiB3.89 MiB+ 582.43 KiB
/wp-admin/options-writing.php0.243 s0.275 s+0.032 s3.32 MiB3.88 MiB+ 574.09 KiB
/wp-admin/media-new.php0.337 s0.611 s+0.274 s3.29 MiB3.87 MiB+ 592.64 KiB
/wp-admin/edit-tags.php?taxonomy=category0.222 s0.249 s+0.027 s3.31 MiB3.9 MiB+ 600.8 KiB
/wp-admin/post-new.php?post_type=page1.051 s0.818 s-0.233 s5.45 MiB6.14 MiB+ 708.45 KiB
/wp-admin/options-discussion.php0.375 s0.399 s+0.024 s3.3 MiB3.87 MiB+ 582.08 KiB
/wp-admin/edit-comments.php0.299 s0.268 s-0.031 s3.34 MiB3.9 MiB+ 581.64 KiB
/0.294 s0.385 s+0.091 s3.36 MiB3.71 MiB+ 365.97 KiB
Average 0.507 s0.498 s-0.009 s3.72 MiB4.3 MiB+ 597.68 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
Language % Lines of code Comment lines Files
PHP99.6%62,47822,867268
JavaScript0.2%109629
SVG0.2%100017
CSS0.1%42040
Total 62,729 22,873 354

PHP Code Analysis | More results »

Lines of code 59,437
Total complexity 7,349
Median class complexity 15.0
Median method complexity 2.0
Most complex class AMP_Validation_Error_Taxonomy
Most complex function AMP_Validation_Error_Taxonomy::get_error_title_from_code()
Classes 185
Methods 1,521
Functions 92

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.

Options wp_options 1

Custom Post Types 1

ID Name
amp_validated_urlAMP Validated URLs

Meta Boxes

{
    "amp_validated_url": {
        "amp_validation_status": {
            "title": "Status",
            "context": "side"
        },
        "amp_stylesheets": {
            "title": "Stylesheets",
            "context": "normal"
        }
    }
}

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide AMP Admin Menus and Meta Boxes