Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▲0.49ms] Passed 4 tests
This is a short check of server-side resources used by WP MailScout
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 48.05 ▲8.66 |
Dashboard /wp-admin | 3.38 ▲0.07 | 52.52 ▲3.24 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 52.66 ▲0.26 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 96.41 ▼10.20 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 45.20 ▲10.05 |
About /wp-admin/admin.php?page=ms_about | 3.26 | 39.79 |
Campaigns /wp-admin/admin.php?page=ms_campaigns | 3.26 | 40.29 |
Installation /wp-admin/admin.php?page=ms_installation | 3.26 | 38.54 |
Mail Accounts /wp-admin/admin.php?page=ms_mail_accounts | 3.26 | 40.83 |
Help /wp-admin/admin.php?page=ms_help | 3.26 | 36.00 |
Subscribers /wp-admin/admin.php?page=ms_subscribers | 3.26 | 39.15 |
Dashboard /wp-admin/admin.php?page=mailscout_plugin | 3.26 | 39.44 |
Settings /wp-admin/admin.php?page=ms_settings | 3.26 | 38.31 |
New Campaign /wp-admin/admin.php?page=ms_campaign_form | 3.28 | 39.56 |
Server storage [IO: ▲5.53MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 601 new files
Database: 6 new tables, 7 new options
New tables |
---|
wp_ms_templates |
wp_ms_mail_accounts |
wp_ms_broadcasts |
wp_ms_subscriber_groups |
wp_ms_subscribers |
wp_ms_campaign_messages |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
mailscout_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP MailScout
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲218 | 14.77 ▲0.54 | 4.71 ▲2.88 | 40.47 ▼10.96 |
Dashboard /wp-admin | 2,270 ▲79 | 6.26 ▲1.37 | 122.34 ▲12.93 | 43.00 ▼1.64 |
Posts /wp-admin/edit.php | 2,159 ▲67 | 3.08 ▲1.04 | 45.79 ▲5.75 | 36.92 ▲1.85 |
Add New Post /wp-admin/post-new.php | 1,572 ▲52 | 23.96 ▲0.91 | 682.28 ▼8.69 | 36.23 ▼22.85 |
Media Library /wp-admin/upload.php | 1,455 ▲64 | 5.45 ▲1.24 | 106.44 ▲1.25 | 41.88 ▼2.70 |
About /wp-admin/admin.php?page=ms_about | 846 | 3.01 | 40.54 | 60.58 |
Campaigns /wp-admin/admin.php?page=ms_campaigns | 995 | 3.82 | 53.32 | 37.07 |
Installation /wp-admin/admin.php?page=ms_installation | 966 | 3.83 | 51.17 | 47.91 |
Mail Accounts /wp-admin/admin.php?page=ms_mail_accounts | 1,023 | 3.66 | 59.37 | 41.97 |
Help /wp-admin/admin.php?page=ms_help | 975 | 3.24 | 53.29 | 29.81 |
Subscribers /wp-admin/admin.php?page=ms_subscribers | 1,013 | 3.77 | 59.28 | 34.32 |
Dashboard /wp-admin/admin.php?page=mailscout_plugin | 975 | 3.82 | 54.13 | 30.65 |
Settings /wp-admin/admin.php?page=ms_settings | 943 | 3.90 | 48.32 | 35.70 |
New Campaign /wp-admin/admin.php?page=ms_campaign_form | 1,154 | 5.54 | 68.10 | 30.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 6 tables
- wp_ms_templates
- wp_ms_campaign_messages
- wp_ms_subscriber_groups
- wp_ms_subscribers
- wp_ms_mail_accounts
- wp_ms_broadcasts
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- mailscout_db_version
- widget_recent-posts
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=ms_help
- > Error in wp-content/plugins/wp-mailscout/app/Services/Router.php+44
Uncaught Exception: Invalid Request in wp-content/plugins/wp-mailscout/app/Services/Router.php:44
Stack trace:
#0 wp-content/plugins/wp-mailscout/app/MailScout.php(31): MS\Services\Router->callRoute()
#1 wp-content/plugins/wp-mailscout/admin/class-mailscout-admin.php(402): MS\MailScout->run()
#2 wp-includes/class-wp-hook.php(310): MailScout_Admin->request_handler()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin-ajax.php(188): do_action()
#6 {main}
thrown
SRP 0% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-mailscout/public/partials/plugin-mailscout-display.php
- > /wp-content/plugins/wp-mailscout/public/partials/auth-code.php
- 343× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-mailscout/vendor/monolog/monolog/tests/Monolog/Processor/PsrLogMessageProcessorTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'Google\\Auth\\CredentialsLoader' not found in wp-content/plugins/wp-mailscout/vendor/google/auth/src/Credentials/UserRefreshCredentials.php:34
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/wp-mailscout/vendor/monolog/monolog/tests/Monolog/Handler/SocketHandlerTest.php:20
- > PHP Fatal error
Uncaught Error: Class 'Raven_Client' not found in wp-content/plugins/wp-mailscout/vendor/monolog/monolog/tests/Monolog/Handler/MockRavenClient.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google\\Auth\\CredentialsLoader' not found in wp-content/plugins/wp-mailscout/vendor/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php:32
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/wp-mailscout/vendor/monolog/monolog/tests/Monolog/Handler/MailHandlerTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/wp-mailscout/vendor/google/apiclient-services/src/Google/Service/Oauth2/Jwk.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/wp-mailscout/vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php:27
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/wp-mailscout/vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php:19
- > PHP Fatal error
Uncaught Error: Class 'Google\\Auth\\Tests\\BaseTest' not found in wp-content/plugins/wp-mailscout/vendor/google/auth/tests/HttpHandler/Guzzle6HttpHandlerTest.php:24
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=ms_help
- > Network (severe)
wp-admin/admin-ajax.php?action=ms_request&_nonce=463e7cc481&route=help%2Fget-campaign-message-list - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=ms_help
- > Javascript (severe) in unknown
/wp-content/plugins/wp-mailscout/admin/js/ms-help.js?ver=0.1.1 0:707 Uncaught TypeError: Cannot read properties of undefined (reading 'errors')
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Requires php: The plugin version is formatted incorrectly
wp-mailscout/mailscout.php 85% from 13 tests
Analyzing the main PHP file in "WP MailScout" version 0.1.1
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-mailscout.php" instead of "mailscout.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin62,406 lines of code in 563 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 491 | 10,410 | 30,224 | 55,713 |
Markdown | 27 | 1,438 | 0 | 4,672 |
JSON | 18 | 0 | 0 | 1,210 |
CSS | 5 | 0 | 15 | 405 |
SVG | 1 | 0 | 0 | 288 |
YAML | 2 | 8 | 0 | 51 |
XML | 2 | 3 | 0 | 35 |
JavaScript | 16 | 2 | 42 | 23 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 12.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 627.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 103.00 |
Code structure | ||
---|---|---|
Namespaces | 46 | |
Interfaces | 27 | |
Traits | 8 | |
Classes | 477 | |
▷ Abstract classes | 11 | 2.31% |
▷ Concrete classes | 466 | 97.69% |
▷ Final classes | 9 | 1.93% |
Methods | 3,678 | |
▷ Static methods | 178 | 4.84% |
▷ Public methods | 3,190 | 86.73% |
▷ Protected methods | 212 | 5.76% |
▷ Private methods | 276 | 7.50% |
Functions | 273 | |
▷ Named functions | 76 | 27.84% |
▷ Anonymous functions | 197 | 72.16% |
Constants | 362 | |
▷ Global constants | 24 | 6.63% |
▷ Class constants | 338 | 93.37% |
▷ Public constants | 338 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.23MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/plugin-logo.png | 79.37KB | 26.24KB | ▼ 66.94% |
public/images/plugin-logo.png | 75.23KB | 28.26KB | ▼ 62.44% |
admin/images/upload.png | 4.09KB | 2.56KB | ▼ 37.31% |
admin/images/gmail-logo.png | 3.24KB | 3.24KB | 0.00% |
images/plugin-logo.png | 75.23KB | 28.26KB | ▼ 62.44% |