AMP 2.4.2

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

Summary

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

Memory usage: 554.12 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.3.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=a8210652f9
Aspect after-activation
HTTP status 200
Load time 0.672 s
Memory usage 8.45 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.164 s
Memory usage 5.12 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.349 s
Memory usage 6.56 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.323 s
Memory usage 7.99 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.264 s
Memory usage 4.7 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.225 s
Memory usage 3.51 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.337 s0.344 s+0.007 s2.83 MiB3.36 MiB+ 547.07 KiB
/wp-admin/edit.php0.199 s0.225 s+0.026 s2.85 MiB3.46 MiB+ 618.73 KiB
/wp-admin/post-new.php0.739 s1.121 s+0.382 s5.22 MiB5.88 MiB+ 677.2 KiB
/wp-admin/upload.php0.576 s0.472 s-0.104 s2.77 MiB3.28 MiB+ 526.23 KiB
/wp-admin/options-writing.php0.229 s0.198 s-0.031 s2.76 MiB3.27 MiB+ 520.78 KiB
/wp-admin/media-new.php0.286 s0.265 s-0.021 s2.74 MiB3.27 MiB+ 539.96 KiB
/wp-admin/edit-tags.php?taxonomy=category0.176 s0.219 s+0.043 s2.76 MiB3.29 MiB+ 547.39 KiB
/wp-admin/post-new.php?post_type=page0.594 s0.588 s-0.006 s5.21 MiB5.87 MiB+ 671.1 KiB
/wp-admin/options-discussion.php0.216 s0.344 s+0.128 s2.75 MiB3.27 MiB+ 529.41 KiB
/wp-admin/edit-comments.php0.457 s0.257 s-0.200 s2.78 MiB3.3 MiB+ 528.97 KiB
/0.288 s0.275 s-0.013 s3.13 MiB3.51 MiB+ 388.53 KiB
Average 0.372 s0.392 s+0.019 s3.25 MiB3.8 MiB+ 554.12 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,47922,899269
JavaScript0.2%1212129
SVG0.2%100017
CSS0.1%42040
Total 62,742 22,920 355

PHP Code Analysis | More results »

Lines of code 59,439
Total complexity 7,363
Median class complexity 14.5
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 186
Methods 1,524
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 5 lines

[12-Oct-2023 21:56:07 UTC] PHP Deprecated:  strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 1144
[12-Oct-2023 21:56:07 UTC] PHP Deprecated:  stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 1151
[12-Oct-2023 21:56:07 UTC] PHP Deprecated:  stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 1154
[12-Oct-2023 21:56:07 UTC] PHP Deprecated:  str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 1161
[12-Oct-2023 21:56:07 UTC] PHP Deprecated:  str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 1164
See also: All tests for this plugin, How to Hide AMP Admin Menus and Meta Boxes