Rest Routes – Custom Endpoints for WP REST API 4.8.0

Does "Rest Routes – Custom Endpoints for WP REST API" work with WordPress 5.7 and PHP 7.4.8? A smoke test was performed on .

Summary

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

Memory usage: 528.13 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.7
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 100+
WordPress.org page https://wordpress.org/plugins/rest-routes/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 8

Rest Routes ‹ Test site — WordPress

Page screenshot: Rest Routes ‹ Test site — WordPress
URL /wp-admin/admin.php?page=rest-routes-main
Requested URL /wp-admin/plugins.php?action=activate&plugin=rest-routes%2Frest-routes.php&plugin_status=all&paged=1&s&_wpnonce=a93a1d10d7
Aspect after-activation
HTTP status 200
Load time 1.008 s
Memory usage 3.52 MiB
JS errors None
Resource errors None

Rest Routes

Page screenshot: Rest Routes
URL /wp-admin/admin.php?page=rest-routes-main
Aspect menu-item
HTTP status 200
Load time 2.053 s
Memory usage 3.12 MiB
JS errors None
Resource errors None

Rest Routes → Routes

Page screenshot: Rest Routes → Routes
URL /wp-admin/edit.php?post_type=rest-route
Aspect menu-item
HTTP status 200
Load time 0.462 s
Memory usage 3.36 MiB
JS errors None
Resource errors None

Rest Routes → Add New Route

Page screenshot: Rest Routes → Add New Route
URL /wp-admin/admin.php?page=rest-routes-add-new
Aspect menu-item
HTTP status 200
Load time 0.396 s
Memory usage 3.12 MiB
JS errors None
Resource errors None

Rest Routes → Contact Us

Page screenshot: Rest Routes → Contact Us
URL /wp-admin/admin.php?page=rest-routes-main-contact
Aspect menu-item
HTTP status 200
Load time 0.172 s
Memory usage 3.2 MiB
JS errors None
Resource errors None

Rest Routes → Support Forum

Page screenshot: Rest Routes → Support Forum
URL https://wordpress.org/support/plugin/rest-routes/
Requested URL /wp-admin/admin.php?page=rest-routes-main-wp-support-forum
Aspect menu-item
HTTP status 200
Load time 1.315 s
Memory usage N/A
JS errors None
Resource errors None

Rest Routes → Upgrade  ➤

Page screenshot: Rest Routes → Upgrade  ➤
URL /wp-admin/admin.php?page=rest-routes-main-pricing
Aspect menu-item
HTTP status 200
Load time 1.282 s
Memory usage 3.49 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.265 s
Memory usage 3.15 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.308 s0.479 s+0.171 s2.82 MiB3.36 MiB+ 558.16 KiB
/wp-admin/edit.php0.208 s0.254 s+0.046 s2.86 MiB3.41 MiB+ 564.09 KiB
/wp-admin/post-new.php1.639 s1.032 s-0.607 s5.02 MiB5.63 MiB+ 625.14 KiB
/wp-admin/upload.php0.625 s0.278 s-0.347 s2.7 MiB3.14 MiB+ 459.98 KiB
/wp-admin/options-writing.php0.205 s0.164 s-0.041 s2.71 MiB3.13 MiB+ 427.96 KiB
/wp-admin/media-new.php0.231 s0.511 s+0.280 s2.67 MiB3.12 MiB+ 460.78 KiB
/wp-admin/edit-tags.php?taxonomy=category0.210 s0.262 s+0.052 s2.77 MiB3.31 MiB+ 557.06 KiB
/wp-admin/post-new.php?post_type=page0.640 s1.054 s+0.414 s5.01 MiB5.62 MiB+ 624.1 KiB
/wp-admin/options-discussion.php0.221 s0.283 s+0.062 s2.67 MiB3.12 MiB+ 461.09 KiB
/wp-admin/edit-comments.php0.241 s0.235 s-0.006 s2.78 MiB3.32 MiB+ 556.74 KiB
/0.271 s0.270 s-0.001 s2.65 MiB3.15 MiB+ 514.31 KiB
Average 0.436 s0.438 s+0.002 s3.15 MiB3.67 MiB+ 528.13 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
PO File
Language % Lines of code Comment lines Files
PHP72.2%33,54216,162154
PO File26.9%12,5027,01710
JavaScript0.4%199813
Markdown0.4%19402
JSON0.1%2701
CSS0.0%14111
Total 46,478 23,261 181

PHP Code Analysis | More results »

Lines of code 24,845
Total complexity 5,896
Median class complexity 10.0
Median method complexity 2.0
Most complex class Freemius
Most complex function FS_Plugin_Info_Dialog::install_plugin_information()
Classes 77
Methods 1,290
Functions 161

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 5

Custom Post Types 1

ID Name
rest-routeRoutes

PHP Error Log 24 lines

[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[14-Mar-2021 01:38:23 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
See also: All tests for this plugin, How to Hide Rest Routes – Custom Endpoints for WP REST API Admin Menus