Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.42MB] [CPU: ▼14.49ms] Passed 4 tests
A check of server-side resources used by Better Rest Endpoints
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 38.46 ▼13.10 |
Dashboard /wp-admin | 3.56 ▲0.26 | 51.27 ▲1.34 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 45.51 ▲1.53 |
Add New Post /wp-admin/post-new.php | 3.44 ▼2.45 | 37.65 ▼47.72 |
Media Library /wp-admin/upload.php | 3.48 ▲0.26 | 34.57 ▲2.46 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Better Rest Endpoints: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.73 ▼0.64 | 1.77 ▼0.46 | 38.13 ▼15.27 |
Dashboard /wp-admin | 2,206 ▲21 | 4.87 ▼0.03 | 102.61 ▼13.30 | 42.02 ▼3.70 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▼0.03 | 38.73 ▲3.50 | 31.37 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.32 ▼0.01 | 639.54 ▼54.59 | 57.85 ▲2.95 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.03 | 99.92 ▼6.07 | 42.59 ▼2.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-rest-endpoints/includes/get_posts.php:188
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-rest-endpoints/includes/wp_nav_menus_by_location.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-rest-endpoints/includes/get_search.php:180
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-rest-endpoints/includes/create_cpt_endpoints.php:265
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-rest-endpoints/includes/get_pages.php:168
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-rest-endpoints/includes/get_cpt_by_slug.php:136
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-rest-endpoints/includes/wp_nav_menus.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-rest-endpoints/includes/get_post_by_slug.php:131
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-rest-endpoints/includes/get_posts_tax.php:287
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-rest-endpoints/includes/wp_nav_menus_by_name.php:65
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: endpoints, rest, json, acf, api
better-rest-endpoints/better-rest-endpoints.php 92% from 13 tests
The main PHP file in "Better Rest Endpoints" ver. 1.5.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,041 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 465 | 707 | 1,625 |
Markdown | 2 | 109 | 0 | 343 |
JSON | 2 | 0 | 0 | 73 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 1 | 33.33% |
▷ Public methods | 1 | 33.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 66.67% |
Functions | 87 | |
▷ Named functions | 22 | 25.29% |
▷ Anonymous functions | 65 | 74.71% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin