Benchmarks
Plugin footprint 83% 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.36MB] [CPU: ▼138.46ms] Passed 4 tests
An overview of server-side resources used by MailX - Change Sender Name, Sender Address & Content Type of Your Emails
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.21 | 37.06 ▲18.05 |
Dashboard /wp-admin | 3.40 ▲0.34 | 34.53 ▼10.22 |
Posts /wp-admin/edit.php | 3.60 ▲0.49 | 48.25 ▲8.76 |
Add New Post /wp-admin/post-new.php | 5.86 ▲0.42 | 97.47 ▼553.87 |
Media Library /wp-admin/upload.php | 3.49 ▲0.48 | 38.56 ▲1.51 |
MailX /wp-admin/tools.php?page=mailx | 3.50 | 36.79 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 5 new options
New WordPress options |
---|
mailx_installed |
mailx_version |
mailx_install_time |
codexpert-blog-json |
_mailx_notices |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MailX - Change Sender Name, Sender Address & Content Type of Your Emails
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,766 ▲170 | 15.95 ▲0.58 | 9.12 ▼0.33 | 49.82 ▲1.63 |
Dashboard /wp-admin | 3,054 ▲121 | 6.15 ▲0.22 | 140.75 ▼18.11 | 110.44 ▼6.98 |
Posts /wp-admin/edit.php | 2,754 ▲15 | 2.71 ▲0.02 | 63.71 ▼4.09 | 90.23 ▲5.73 |
Add New Post /wp-admin/post-new.php | 1,608 ▼62 | 20.85 ▲1.70 | 372.12 ▼2.05 | 117.06 ▲7.74 |
Media Library /wp-admin/upload.php | 1,825 ▲15 | 5.13 ▲0.06 | 154.34 ▲4.08 | 115.27 ▼4.45 |
MailX /wp-admin/tools.php?page=mailx | 1,423 | 4.41 | 81.62 | 92.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 5 options in the database
- mailx_installed
- codexpert-blog-json
- _mailx_notices
- mailx_install_time
- mailx_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 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
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'codexpert\\plugin\\Base' not found in wp-content/plugins/mailx/src/Settings.php:13
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/mailx/inc/functions.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mailx/inc/functions.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/mailx/inc/functions.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/mailx/inc/functions.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/mailx/inc/functions.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mailx/inc/functions.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: email name, wordpress email, email type, email content type, sender email
mailx/mailx.php 92% from 13 tests
The principal PHP file in "MailX - Change Sender Name, Sender Address & Content Type of Your Emails" v. 0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin3,720 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 795 | 744 | 2,710 |
CSS | 6 | 2 | 0 | 726 |
JavaScript | 5 | 11 | 0 | 213 |
JSON | 3 | 0 | 0 | 70 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 24.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 2 | 8.70% |
▷ Concrete classes | 21 | 91.30% |
▷ Final classes | 1 | 4.76% |
Methods | 221 | |
▷ Static methods | 11 | 4.98% |
▷ Public methods | 212 | 95.93% |
▷ Protected methods | 2 | 0.90% |
▷ Private methods | 7 | 3.17% |
Functions | 7 | |
▷ Named functions | 3 | 42.86% |
▷ Anonymous functions | 4 | 57.14% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/codexpert/plugin/src/assets/img/survey.png | 7.31KB | 3.08KB | ▼ 57.88% |