MB Rest API 2.0.0

Does MB Rest API work with WordPress 6.3.1 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: -2.05 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.1
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=c7fba11929
Aspect after-activation
HTTP status 200
Load time 0.247 s
Memory usage 2.77 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.187 s
Memory usage 3.13 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.367 s0.302 s-0.065 s2.82 MiB2.83 MiB+ 7.43 KiB
/wp-admin/edit.php0.229 s0.190 s-0.039 s2.85 MiB2.86 MiB+ 7.43 KiB
/wp-admin/upload.php0.583 s0.335 s-0.248 s2.77 MiB2.76 MiB- 9.77 KiB
/wp-admin/options-writing.php0.233 s0.181 s-0.052 s2.76 MiB2.74 MiB- 17.8 KiB
/wp-admin/media-new.php0.284 s0.237 s-0.047 s2.74 MiB2.74 MiB+ 2.43 KiB
/wp-admin/edit-tags.php?taxonomy=category0.196 s0.188 s-0.008 s2.76 MiB2.76 MiB+ 7.6 KiB
/wp-admin/options-discussion.php0.235 s0.203 s-0.032 s2.75 MiB2.74 MiB- 9.27 KiB
/wp-admin/edit-comments.php0.262 s0.203 s-0.059 s2.78 MiB2.77 MiB- 9.77 KiB
/0.272 s0.170 s-0.102 s3.13 MiB3.13 MiB+ 3.27 KiB
Average 0.296 s0.223 s-0.072 s2.82 MiB2.81 MiB- 2.05 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%233287
Total 233 28 7

PHP Code Analysis | More results »

Lines of code 233
Total complexity 48
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-Oct-2023 09:44:39 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(1976): 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(1188): WP_REST_Posts_Controller->get_item()
#6 /wp-includes/rest-api/class-wp-rest-server.php(1035): WP_REST_Server->respond_to_request()
#7 /wp-includes/rest-api.php(545): WP_REST_Server->dispatch()
#8 /wp-includes/rest-api.php(2911): rest_do_request()
#9 [internal function]: rest_preload_api_request()
#10 /wp-includes/block-editor.php(743): 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-Oct-2023 09:44:40 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(1976): 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(1188): WP_REST_Posts_Controller->get_item()
#6 /wp-includes/rest-api/class-wp-rest-server.php(1035): WP_REST_Server->respond_to_request()
#7 /wp-includes/rest-api.php(545): WP_REST_Server->dispatch()
#8 /wp-includes/rest-api.php(2911): rest_do_request()
#9 [internal function]: rest_preload_api_request()
#10 /wp-includes/block-editor.php(743): 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