Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼1.17ms] Passed 4 tests
Server-side resources used by WP Mail Log
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 33.92 ▼5.49 |
Dashboard /wp-admin | 3.40 ▲0.10 | 46.18 ▼5.29 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.13 ▲1.21 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 95.04 ▲8.25 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.13 ▲4.90 |
Server storage [IO: ▲4.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wml_entries |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
wml_db_version |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Mail Log
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲42 | 14.28 ▼0.10 | 1.66 ▼0.27 | 40.18 ▼5.43 |
Dashboard /wp-admin | 2,209 ▲32 | 5.59 ▼0.03 | 93.02 ▼1.58 | 43.32 ▼3.70 |
Posts /wp-admin/edit.php | 2,114 ▲11 | 2.02 ▲0.01 | 40.07 ▲2.95 | 35.60 ▼0.63 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.10 ▼0.19 | 644.90 ▲13.49 | 56.62 ▲5.60 |
Media Library /wp-admin/upload.php | 1,417 ▲23 | 4.17 ▼0.07 | 96.54 ▼2.24 | 41.30 ▼1.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_wml_entries
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- wml_db_version
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wp-mail-log/classes/api.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function WML\\add_action() in wp-content/plugins/wp-mail-log/includes/bootstrap.php:68
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: email, mail log, capture emails, mail, logs...
wp-mail-log/wp-mail-log.php 92% from 13 tests
The main PHP file in "WP Mail Log" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,038 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 193 | 487 | 823 |
CSS | 2 | 4 | 1 | 142 |
JavaScript | 1 | 0 | 9 | 41 |
SVG | 1 | 0 | 1 | 18 |
HTML | 1 | 1 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 16.17 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 7 | 15.22% |
▷ Public methods | 42 | 91.30% |
▷ Protected methods | 1 | 2.17% |
▷ Private methods | 3 | 6.52% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin