MB Rest API 2.0.1

Does MB Rest API work with WordPress 6.5.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
2PHP fatal errors
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: -7.41 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.5.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 1,000+
WordPress.org page https://wordpress.org/plugins/mb-rest-api/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 2

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=mb-rest-api%2Fmb-rest-api.php&plugin_status=all&paged=1&s&_wpnonce=b83e4015c1
Aspect after-activation
HTTP status 200
Load time 0.293 s
Memory usage 3.38 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.229 s
Memory usage 3.37 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.405 s0.368 s-0.037 s3.44 MiB3.44 MiB+ 7.43 KiB
/wp-admin/edit.php0.238 s0.278 s+0.040 s3.46 MiB3.47 MiB+ 7.43 KiB
/wp-admin/upload.php0.657 s0.430 s-0.227 s3.38 MiB3.37 MiB- 9.76 KiB
/wp-admin/options-writing.php0.240 s0.248 s+0.008 s3.37 MiB3.36 MiB- 17.8 KiB
/wp-admin/media-new.php0.332 s0.314 s-0.018 s3.35 MiB3.35 MiB+ 2.43 KiB
/wp-admin/edit-tags.php?taxonomy=category0.213 s0.228 s+0.015 s3.37 MiB3.38 MiB+ 7.6 KiB
/wp-admin/options-discussion.php0.285 s0.247 s-0.038 s3.36 MiB3.35 MiB- 9.27 KiB
/wp-admin/edit-comments.php0.525 s0.425 s-0.100 s3.39 MiB3.38 MiB- 9.77 KiB
/0.388 s0.329 s-0.059 s3.42 MiB3.37 MiB- 44.99 KiB
Average 0.365 s0.319 s-0.046 s3.39 MiB3.39 MiB- 7.41 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
PHP100.0%236257
Total 236 25 7

PHP Code Analysis | More results »

Lines of code 236
Total complexity 49
Median class complexity 4.5
Median method complexity 1.0
Most complex class MetaBox\RestApi\Base
Most complex function MetaBox\RestApi\Base::normalize_group_value()
Classes 6
Methods 24
Functions 1

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.

No new entries found.

PHP Error Log 34 lines

[12-Apr-2024 10:57:10 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function MetaBox\RestApi\rwmb_get_object_fields() in /wp-content/plugins/mb-rest-api/src/Base.php:74
Stack trace:
#0 /wp-content/plugins/mb-rest-api/src/Base.php(59): MetaBox\RestApi\Base->get_fields()
#1 /wp-content/plugins/mb-rest-api/src/Base.php(49): MetaBox\RestApi\Base->get_values()
#2 /wp-includes/rest-api/endpoints/class-wp-rest-controller.php(439): MetaBox\RestApi\Base->get()
#3 /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1977): WP_REST_Controller->add_additional_fields_to_object()
#4 /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(569): WP_REST_Posts_Controller->prepare_item_for_response()
#5 /wp-includes/rest-api/class-wp-rest-server.php(1230): WP_REST_Posts_Controller->get_item()
#6 /wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request()
#7 /wp-includes/rest-api.php(555): WP_REST_Server->dispatch()
#8 /wp-includes/rest-api.php(2922): rest_do_request()
#9 [internal function]: rest_preload_api_request()
#10 /wp-includes/block-editor.php(753): array_reduce()
#11 /wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload()
#12 /wp-admin/post-new.php(72): require('...')
#13 {main}
  thrown in /wp-content/plugins/mb-rest-api/src/Base.php on line 74
[12-Apr-2024 10:57:12 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function MetaBox\RestApi\rwmb_get_object_fields() in /wp-content/plugins/mb-rest-api/src/Base.php:74
Stack trace:
#0 /wp-content/plugins/mb-rest-api/src/Base.php(59): MetaBox\RestApi\Base->get_fields()
#1 /wp-content/plugins/mb-rest-api/src/Base.php(49): MetaBox\RestApi\Base->get_values()
#2 /wp-includes/rest-api/endpoints/class-wp-rest-controller.php(439): MetaBox\RestApi\Base->get()
#3 /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1977): WP_REST_Controller->add_additional_fields_to_object()
#4 /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(569): WP_REST_Posts_Controller->prepare_item_for_response()
#5 /wp-includes/rest-api/class-wp-rest-server.php(1230): WP_REST_Posts_Controller->get_item()
#6 /wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request()
#7 /wp-includes/rest-api.php(555): WP_REST_Server->dispatch()
#8 /wp-includes/rest-api.php(2922): rest_do_request()
#9 [internal function]: rest_preload_api_request()
#10 /wp-includes/block-editor.php(753): array_reduce()
#11 /wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload()
#12 /wp-admin/post-new.php(72): require('...')
#13 {main}
  thrown in /wp-content/plugins/mb-rest-api/src/Base.php on line 74
See also: All tests for this plugin