MB Rest API 1.4.0

Does MB Rest API work with WordPress 5.9.3 and PHP 7.4.8? 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: -5.26 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 version5.9.3
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
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=7a3f185cde
Aspect after-activation
HTTP status 200
Load time 0.240 s
Memory usage 3.27 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.181 s
Memory usage 3.35 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.351 s0.413 s+0.062 s3.37 MiB3.37 MiB+ 2.09 KiB
/wp-admin/edit.php0.175 s0.192 s+0.017 s3.4 MiB3.4 MiB+ 2.09 KiB
/wp-admin/upload.php0.337 s0.282 s-0.055 s3.25 MiB3.25 MiB+ 1.17 KiB
/wp-admin/options-writing.php0.292 s0.140 s-0.152 s3.24 MiB3.23 MiB- 14.98 KiB
/wp-admin/media-new.php0.236 s0.188 s-0.048 s3.23 MiB3.23 MiB+ 1.34 KiB
/wp-admin/edit-tags.php?taxonomy=category0.173 s0.175 s+0.002 s3.27 MiB3.27 MiB+ 2.25 KiB
/wp-admin/options-discussion.php0.231 s0.178 s-0.053 s3.22 MiB3.22 MiB+ 1.66 KiB
/wp-admin/edit-comments.php0.277 s0.178 s-0.099 s3.27 MiB3.27 MiB+ 1.16 KiB
/0.258 s0.227 s-0.031 s3.4 MiB3.35 MiB- 44.13 KiB
Average 0.259 s0.219 s-0.040 s3.29 MiB3.29 MiB- 5.26 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%1881442
Total 188 144 2

PHP Code Analysis | More results »

Lines of code 188
Total complexity 38
Median class complexity 37.0
Median method complexity 3.0
Most complex class MB_Rest_API
Most complex function MB_Rest_API::normalize_group_value()
Classes 1
Methods 15
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 18 lines

[08-Apr-2022 06:51:20 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function rwmb_get_registry() in /wp-content/plugins/mb-rest-api/class-mb-rest-api.php:94
Stack trace:
#0 /wp-includes/rest-api/endpoints/class-wp-rest-controller.php(433): MB_Rest_API->get_post_meta()
#1 /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1923): WP_REST_Controller->add_additional_fields_to_object()
#2 /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(560): WP_REST_Posts_Controller->prepare_item_for_response()
#3 /wp-includes/rest-api/class-wp-rest-server.php(1141): WP_REST_Posts_Controller->get_item()
#4 /wp-includes/rest-api/class-wp-rest-server.php(988): WP_REST_Server->respond_to_request()
#5 /wp-includes/rest-api.php(511): WP_REST_Server->dispatch()
#6 /wp- in /wp-content/plugins/mb-rest-api/class-mb-rest-api.php on line 94
[08-Apr-2022 06:51:21 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function rwmb_get_registry() in /wp-content/plugins/mb-rest-api/class-mb-rest-api.php:94
Stack trace:
#0 /wp-includes/rest-api/endpoints/class-wp-rest-controller.php(433): MB_Rest_API->get_post_meta()
#1 /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1923): WP_REST_Controller->add_additional_fields_to_object()
#2 /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(560): WP_REST_Posts_Controller->prepare_item_for_response()
#3 /wp-includes/rest-api/class-wp-rest-server.php(1141): WP_REST_Posts_Controller->get_item()
#4 /wp-includes/rest-api/class-wp-rest-server.php(988): WP_REST_Server->respond_to_request()
#5 /wp-includes/rest-api.php(511): WP_REST_Server->dispatch()
#6 /wp- in /wp-content/plugins/mb-rest-api/class-mb-rest-api.php on line 94
See also: All tests for this plugin