WPGraphQL 1.13.0

Does WP GraphQL work with WordPress 6.1.1 and PHP 8.1.12? A smoke test was performed on .

Summary

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

Memory usage: 138.3 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.1.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 30,000+
WordPress.org page https://wordpress.org/plugins/wp-graphql/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 4

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=wp-graphql%2Fwp-graphql.php&plugin_status=all&paged=1&s&_wpnonce=684bfc4098
Aspect after-activation
HTTP status 200
Load time 0.251 s
Memory usage 3.16 MiB
JS errors None
Resource errors None

GraphQL

Page screenshot: GraphQL
URL /wp-admin/admin.php?page=graphiql-ide
Aspect menu-item
HTTP status 200
Load time 0.929 s
Memory usage 3.1 MiB
JS errors None
Resource errors None

GraphQL → Settings

Page screenshot: GraphQL → Settings
URL /wp-admin/admin.php?page=graphql-settings
Aspect menu-item
HTTP status 200
Load time 0.393 s
Memory usage 3.11 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.223 s
Memory usage 3.1 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.283 s0.259 s-0.024 s3.05 MiB3.19 MiB+ 143.61 KiB
/wp-admin/edit.php0.187 s0.208 s+0.021 s3.07 MiB3.22 MiB+ 146.16 KiB
/wp-admin/post-new.php0.782 s1.026 s+0.244 s4.97 MiB5.11 MiB+ 151.8 KiB
/wp-admin/upload.php0.563 s0.445 s-0.118 s2.99 MiB3.11 MiB+ 126.17 KiB
/wp-admin/options-writing.php0.175 s0.165 s-0.010 s2.99 MiB3.1 MiB+ 113.49 KiB
/wp-admin/media-new.php0.275 s0.246 s-0.029 s2.97 MiB3.1 MiB+ 138.36 KiB
/wp-admin/edit-tags.php?taxonomy=category0.196 s0.192 s-0.004 s2.98 MiB3.12 MiB+ 142.13 KiB
/wp-admin/post-new.php?post_type=page0.628 s0.653 s+0.025 s4.96 MiB5.1 MiB+ 142.66 KiB
/wp-admin/options-discussion.php0.206 s0.187 s-0.019 s2.97 MiB3.1 MiB+ 126.6 KiB
/wp-admin/edit-comments.php0.206 s0.191 s-0.015 s3 MiB3.12 MiB+ 124.07 KiB
/0.284 s0.204 s-0.080 s2.94 MiB3.11 MiB+ 166.25 KiB
Average 0.344 s0.343 s-0.001 s3.35 MiB3.49 MiB+ 138.3 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
PHP92.1%19,03012,101220
CSS7.1%1,474404
JavaScript0.5%9607
XML0.3%52251
YAML0.0%501
JSON0.0%101
Total 20,658 12,166 234

PHP Code Analysis | More results »

Lines of code 19,042
Total complexity 3,499
Median class complexity 8.0
Median method complexity 2.0
Most complex class WPGraphQL\Model\Post
Most complex function WPGraphQL\Model\Post::init()
Classes 210
Methods 794
Functions 42

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 2

PHP Error Log 8 lines

[28-Nov-2022 23:33:33 UTC] PHP Deprecated:  Return type of GraphQL\Type\Definition\Type::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Type/Definition/Type.php on line 311
[28-Nov-2022 23:33:33 UTC] PHP Deprecated:  Return type of GraphQL\Language\SourceLocation::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Language/SourceLocation.php on line 49
[28-Nov-2022 23:33:33 UTC] PHP Deprecated:  Return type of GraphQL\Language\AST\NodeList::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Language/AST/NodeList.php on line 72
[28-Nov-2022 23:33:33 UTC] PHP Deprecated:  Return type of GraphQL\Utils\MixedStore::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Utils/MixedStore.php on line 93
[28-Nov-2022 23:33:33 UTC] PHP Deprecated:  Return type of GraphQL\Utils\MixedStore::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Utils/MixedStore.php on line 138
[28-Nov-2022 23:33:33 UTC] PHP Deprecated:  Return type of GraphQL\Utils\MixedStore::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Utils/MixedStore.php on line 187
[28-Nov-2022 23:33:33 UTC] PHP Deprecated:  Return type of GraphQL\Utils\MixedStore::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Utils/MixedStore.php on line 223
[28-Nov-2022 23:33:34 UTC] PHP Deprecated:  Return type of GraphQL\Executor\ExecutionResult::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ExecutionResult.php on line 118
See also: All tests for this plugin, How to Hide WPGraphQL Admin Menus