Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.73ms] Passed 4 tests
Server-side resources used by WP Mail REST-API
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 36.06 ▼6.08 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.43 ▼8.32 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 44.42 ▼0.85 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 88.77 ▼7.67 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.62 ▲3.34 |
WP Mail REST-API Target Webhooks /wp-admin/options-general.php?page=wp-mail-rest-api | 3.29 | 31.42 |
WP Mail REST-API Webhooks Log /wp-admin/options-general.php?page=wp-mail-rest-api-log | 3.28 | 33.85 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wp_mail_rest_api_log |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Mail REST-API
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.24 ▼0.48 | 1.56 ▼0.37 | 44.61 ▼0.01 |
Dashboard /wp-admin | 2,203 ▲29 | 5.63 ▲0.06 | 82.75 ▼20.97 | 40.75 ▼1.76 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.03 ▼0.01 | 42.64 ▲1.02 | 36.49 ▼2.07 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.39 ▲0.38 | 624.77 ▼17.85 | 89.35 ▲23.46 |
Media Library /wp-admin/upload.php | 1,405 ▲2 | 4.17 ▼0.06 | 99.10 ▼1.13 | 44.50 ▲2.03 |
WP Mail REST-API Target Webhooks /wp-admin/options-general.php?page=wp-mail-rest-api | 902 | 2.00 | 23.20 | 27.20 |
WP Mail REST-API Webhooks Log /wp-admin/options-general.php?page=wp-mail-rest-api-log | 824 | 2.02 | 25.54 | 25.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-mail-rest-api/log-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-mail-rest-api/webhooks-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mail-rest-api/wp-mail-rest-api.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: rest api, wp mail
wp-mail-rest-api/wp-mail-rest-api.php Passed 13 tests
Analyzing the main PHP file in "WP Mail REST-API" version 1.0.0
44 characters long description:
Send wordpess emails through Zaiper and IFTT
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 detected716 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 222 | 413 | 716 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 46.50 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 1 | 3.12% |
▷ Public methods | 21 | 65.62% |
▷ Protected methods | 10 | 31.25% |
▷ Private methods | 1 | 3.12% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin