Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.58ms] Passed 4 tests
This is a short check of server-side resources used by Rest API Widgets
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 38.39 ▲2.36 |
Dashboard /wp-admin | 3.36 ▲0.01 | 51.83 ▼7.76 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.34 ▲0.84 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 103.12 ▼1.77 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 38.39 ▲4.20 |
Server storage [IO: ▲0.01MB] [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: 6 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_rest_post_list_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_rest_comment_form_widget |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_rest_comment_list_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Rest API Widgets
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.26 ▼1.18 | 4.80 ▲3.15 | 37.47 ▲1.47 |
Dashboard /wp-admin | 2,206 ▲17 | 4.85 ▼0.09 | 110.06 ▼1.53 | 43.24 ▲0.34 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.04 | 39.68 ▼1.34 | 35.45 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.28 ▲5.04 | 652.29 ▲44.65 | 51.61 ▼4.16 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.27 ▲0.07 | 101.81 ▲1.31 | 41.93 ▼1.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_rest_comment_list_widget
- theysaidso_admin_options
- widget_rest_post_list_widget
- db_upgraded
- widget_rest_comment_form_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rest-api-widgets/includes/class/class.commentlist.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rest-api-widgets/includes/class/class.postlist.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rest-api-widgets/includes/class/class.commentform.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rest-api-widgets/includes/class/class.commentform.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: widget, wp-api
rest-api-widgets/rest-api-widgets.php 92% from 13 tests
The main PHP script in "Rest API Widgets" version 0.1 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin224 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 26 | 10 | 155 |
JavaScript | 1 | 2 | 3 | 69 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 5.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin