Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼7.23ms] Passed 4 tests
This is a short check of server-side resources used by WP Email Log - PostBox
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 54.75 ▲10.01 |
Dashboard /wp-admin | 3.47 ▲0.17 | 54.21 ▼5.62 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 52.55 ▼8.52 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 88.02 ▼17.79 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 42.28 ▲3.01 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_postbox_email_log |
New WordPress options |
---|
pbeml_postbox_install_date |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WP Email Log - PostBox: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.72 ▲0.55 | 1.58 ▼0.02 | 40.04 ▼4.32 |
Dashboard /wp-admin | 2,211 ▲31 | 5.51 ▼0.15 | 86.94 ▲0.65 | 38.95 ▼5.23 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.97 ▼0.01 | 40.52 ▲2.01 | 34.87 ▼3.63 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.16 ▼0.07 | 675.96 ▼33.78 | 51.29 ▼1.99 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.17 ▲0.00 | 98.16 ▼9.43 | 47.25 ▼0.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_postbox_email_log
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- pbeml_postbox_install_date
- db_upgraded
- widget_recent-comments
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/postbox-email-logs/postbox-email-logs.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: mail logs, wp mail log, mail logging, email
postbox-email-logs/postbox-email-logs.php Passed 13 tests
"WP Email Log - PostBox" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
57 characters long description:
Store WP mail logs. It will capture WP mail SMTP traffic.
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
No dangerous file extensions were detected1,017 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 180 | 131 | 721 |
CSS | 3 | 16 | 9 | 250 |
JavaScript | 1 | 1 | 0 | 46 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 16.25 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 3 | 13.04% |
▷ Public methods | 19 | 82.61% |
▷ Protected methods | 1 | 4.35% |
▷ Private methods | 3 | 13.04% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
7 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/jquery-ui/images/ui-icons_555555_256x240.png | 3.20KB | 3.50KB | 0.00% |
css/jquery-ui/images/ui-icons_ffffff_256x240.png | 3.19KB | 3.49KB | 0.00% |
css/jquery-ui/images/ui-icons_777620_256x240.png | 3.19KB | 3.49KB | 0.00% |
css/jquery-ui/images/ui-icons_cc0000_256x240.png | 3.19KB | 3.49KB | 0.00% |
css/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |