AMP 2.4.1

Does AMP work with WordPress 6.2.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: 542.34 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.2.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=edf1516a9a
Aspect after-activation
HTTP status 200
Load time 1.048 s
Memory usage 8.2 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 3.744 s
Memory usage 5.29 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.368 s
Memory usage 7.36 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.314 s
Memory usage 8.77 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.215 s
Memory usage 4.91 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.319 s
Memory usage 3.41 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.287 s0.289 s+0.002 s3.07 MiB3.59 MiB+ 532 KiB
/wp-admin/edit.php0.193 s0.193 s+0.000 s3.1 MiB3.69 MiB+ 603.66 KiB
/wp-admin/post-new.php0.760 s0.997 s+0.237 s5.02 MiB5.65 MiB+ 640.89 KiB
/wp-admin/upload.php0.559 s0.494 s-0.065 s3.02 MiB3.52 MiB+ 513.07 KiB
/wp-admin/options-writing.php0.177 s0.157 s-0.020 s3.01 MiB3.5 MiB+ 502.07 KiB
/wp-admin/media-new.php0.360 s0.252 s-0.108 s2.99 MiB3.5 MiB+ 525.2 KiB
/wp-admin/edit-tags.php?taxonomy=category0.191 s0.191 s+0.000 s3.01 MiB3.53 MiB+ 532.63 KiB
/wp-admin/post-new.php?post_type=page0.603 s0.663 s+0.060 s5.01 MiB5.63 MiB+ 634.79 KiB
/wp-admin/options-discussion.php0.242 s0.297 s+0.055 s3 MiB3.5 MiB+ 514.34 KiB
/wp-admin/edit-comments.php0.221 s0.207 s-0.014 s3.03 MiB3.53 MiB+ 514.21 KiB
/0.319 s0.382 s+0.063 s2.97 MiB3.41 MiB+ 452.87 KiB
Average 0.356 s0.375 s+0.019 s3.38 MiB3.91 MiB+ 542.34 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,45622,884269
JavaScript0.2%1212129
SVG0.2%100017
CSS0.1%42040
Total 62,719 22,905 355

PHP Code Analysis | More results »

Lines of code 59,406
Total complexity 7,352
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

[20-May-2023 07:56:45 UTC] PHP Deprecated:  strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 1143
[20-May-2023 07:56:45 UTC] PHP Deprecated:  stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 1150
[20-May-2023 07:56:45 UTC] PHP Deprecated:  stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 1153
[20-May-2023 07:56:45 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 1160
[20-May-2023 07:56:45 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 1163
See also: All tests for this plugin, How to Hide AMP Admin Menus and Meta Boxes