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.26MB] [CPU: ▼3.75ms] Passed 4 tests
An overview of server-side resources used by Change Mail Sender
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.49 ▲0.86 |
Dashboard /wp-admin | 3.67 ▲0.37 | 47.99 ▲3.74 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 46.45 ▲1.57 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 82.31 ▼21.17 |
Media Library /wp-admin/upload.php | 3.53 ▲0.31 | 35.58 ▲4.50 |
SMTP /wp-admin/admin.php?page=cb_mail_sender&tab=smtp | 3.51 | 32.82 |
Settings /wp-admin/admin.php?page=cb_mail_sender | 3.53 | 35.28 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Change Mail Sender
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 14.74 ▲0.31 | 1.87 ▼0.05 | 43.04 ▲0.86 |
Dashboard /wp-admin | 2,236 ▲44 | 5.85 ▲0.94 | 101.14 ▼7.01 | 39.56 ▼3.90 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.01 ▲0.01 | 35.44 ▼1.01 | 34.98 ▲2.17 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 23.12 ▼0.10 | 653.24 ▲34.98 | 48.99 ▼9.39 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.24 ▼0.08 | 96.13 ▼2.91 | 44.10 ▲0.37 |
SMTP /wp-admin/admin.php?page=cb_mail_sender&tab=smtp | 976 | 1.69 | 24.58 | 42.27 |
Settings /wp-admin/admin.php?page=cb_mail_sender | 1,057 | 1.71 | 25.10 | 32.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 fix the following
- 7× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-upgrader-skin.php): failed to open stream: No such file or directory in wp-content/plugins/cb-change-mail-sender/src/Helpers/PluginSilentUpgraderSkin.php on line 6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/cb-change-mail-sender/src/Helpers/PluginSilentUpgrader.php on line 10
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader-skin.php' (include_path='.:/usr/share/php') in wp-content/plugins/cb-change-mail-sender/src/Helpers/PluginSilentUpgraderSkin.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'CBChangeMailSender\\Helpers\\PluginSilentUpgraderSkin' not found in wp-content/plugins/cb-change-mail-sender/src/Helpers/class-install-skin.php:10
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cb-change-mail-sender/src/Helpers/PluginSilentUpgrader.php on line 10
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cb-change-mail-sender/src/Helpers/PluginSilentUpgraderSkin.php on line 6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/cb-change-mail-sender/src/Helpers/PluginSilentUpgrader.php on line 10
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: from name, email, mail, change name, change mail sender...
cb-change-mail-sender/index.php 77% from 13 tests
This is the main PHP file of "Change Mail Sender" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("5.6" instead of "5.6.20")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cb-change-mail-sender.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,854 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 496 | 1,120 | 1,649 |
CSS | 7 | 14 | 7 | 1,026 |
JavaScript | 5 | 69 | 117 | 171 |
SVG | 8 | 0 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 16.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 6 | 6.38% |
▷ Public methods | 73 | 77.66% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 21 | 22.34% |
Functions | 13 | |
▷ Named functions | 11 | 84.62% |
▷ Anonymous functions | 2 | 15.38% |
Constants | 7 | |
▷ Global constants | 1 | 14.29% |
▷ Class constants | 6 | 85.71% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 compressed PNG files occupy 0.46MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/prod-edu/product-education-bg@2x.png | 3.49KB | 3.49KB | 0.00% |
assets/images/prod-edu/product-education-bg.png | 3.98KB | 3.98KB | 0.10% |
assets/images/smtp/wpmailsmtp-logo@2x.png | 13.65KB | 8.91KB | ▼ 34.72% |
assets/images/prod-edu/reports-thumbnail.png | 35.08KB | 36.68KB | 0.00% |
assets/images/prod-edu/archive.png | 120.74KB | 126.80KB | 0.00% |