Rest Routes – Custom Endpoints for WP REST API 4.14.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=2e2af12012
Aspect after-activation
HTTP status 200
Load time 1.106 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 1.893 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.414 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.365 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.171 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.661 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.033 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.271 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.260 s0.432 s+0.172 s2.82 MiB3.36 MiB+ 558.16 KiB
/wp-admin/edit.php0.199 s0.220 s+0.021 s2.86 MiB3.41 MiB+ 564.09 KiB
/wp-admin/post-new.php0.909 s0.960 s+0.051 s5.02 MiB5.63 MiB+ 625.14 KiB
/wp-admin/upload.php0.488 s0.264 s-0.224 s2.7 MiB3.14 MiB+ 459.98 KiB
/wp-admin/options-writing.php0.158 s0.156 s-0.002 s2.71 MiB3.13 MiB+ 427.96 KiB
/wp-admin/media-new.php0.193 s0.199 s+0.006 s2.67 MiB3.12 MiB+ 460.78 KiB
/wp-admin/edit-tags.php?taxonomy=category0.217 s0.207 s-0.010 s2.77 MiB3.31 MiB+ 557.06 KiB
/wp-admin/post-new.php?post_type=page0.967 s0.731 s-0.236 s5.01 MiB5.62 MiB+ 624.1 KiB
/wp-admin/options-discussion.php0.319 s0.307 s-0.012 s2.67 MiB3.12 MiB+ 461.09 KiB
/wp-admin/edit-comments.php0.238 s0.224 s-0.014 s2.78 MiB3.32 MiB+ 556.74 KiB
/0.318 s0.244 s-0.074 s2.65 MiB3.15 MiB+ 514.31 KiB
Average 0.388 s0.359 s-0.029 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,61816,174155
PO File26.9%12,5027,01710
JavaScript0.4%199813
Markdown0.4%19402
JSON0.1%2701
CSS0.0%14111
Total 46,554 23,273 182

PHP Code Analysis | More results »

Lines of code 49,756
Total complexity 11,802
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 154
Methods 2,582
Functions 322

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

[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 78
[03-Apr-2021 14:03:27 UTC] PHP Warning:  Illegal string offset 'table_name' in /wp-content/plugins/rest-routes/includes/Repository/CustomTable.php on line 77
[03-Apr-2021 14:03:27 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