AMP 2.5.1

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: 602.47 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=fa04078ca5
Aspect after-activation
HTTP status 200
Load time 0.825 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 1.975 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.335 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.324 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.197 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.352 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.317 s0.334 s+0.017 s3.38 MiB3.97 MiB+ 600.48 KiB
/wp-admin/edit.php0.201 s0.205 s+0.004 s3.41 MiB4.06 MiB+ 671.41 KiB
/wp-admin/post-new.php0.904 s0.973 s+0.069 s5.46 MiB6.16 MiB+ 714.55 KiB
/wp-admin/upload.php0.661 s0.503 s-0.158 s3.32 MiB3.89 MiB+ 582.43 KiB
/wp-admin/options-writing.php0.209 s0.188 s-0.021 s3.32 MiB3.88 MiB+ 574.09 KiB
/wp-admin/media-new.php0.286 s0.290 s+0.004 s3.29 MiB3.87 MiB+ 592.64 KiB
/wp-admin/edit-tags.php?taxonomy=category0.195 s0.197 s+0.002 s3.31 MiB3.9 MiB+ 600.8 KiB
/wp-admin/post-new.php?post_type=page0.566 s0.571 s+0.005 s5.45 MiB6.14 MiB+ 708.45 KiB
/wp-admin/options-discussion.php0.210 s0.259 s+0.049 s3.3 MiB3.87 MiB+ 582.09 KiB
/wp-admin/edit-comments.php0.227 s0.502 s+0.275 s3.34 MiB3.9 MiB+ 581.64 KiB
/0.261 s0.232 s-0.029 s3.31 MiB3.71 MiB+ 418.59 KiB
Average 0.367 s0.387 s+0.020 s3.72 MiB4.3 MiB+ 602.47 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,48522,869268
JavaScript0.2%109629
SVG0.2%100017
CSS0.1%42040
Total 62,736 22,875 354

PHP Code Analysis | More results »

Lines of code 59,444
Total complexity 7,350
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