Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼14.97ms] Passed 4 tests
This is a short check of server-side resources used by wpMandrill
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 45.69 ▲2.74 |
Dashboard /wp-admin | 3.49 ▲0.14 | 41.46 ▼26.10 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 42.65 ▼4.58 |
Add New Post /wp-admin/post-new.php | 5.74 ▼0.15 | 77.20 ▼27.48 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 35.36 ▼1.73 |
Mandrill /wp-admin/options-general.php?page=wpmandrill | 3.47 | 30.26 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for wpMandrill
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.60 ▼0.15 | 1.93 ▲0.16 | 45.21 ▲0.68 |
Dashboard /wp-admin | 2,206 ▲29 | 5.59 ▼0.08 | 93.27 ▲3.29 | 42.90 ▼0.02 |
Posts /wp-admin/edit.php | 2,108 ▲11 | 2.01 ▼0.01 | 36.02 ▼6.00 | 38.32 ▼2.14 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.10 ▼0.08 | 686.50 ▲25.11 | 60.00 ▲6.63 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.20 ▲0.03 | 102.25 ▼8.13 | 42.17 ▼5.66 |
Mandrill /wp-admin/options-general.php?page=wpmandrill | 924 | 2.03 | 27.43 | 40.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wpmandrill
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
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
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wpmandrill/legacy/function.wp_mail.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpmandrill/wpmandrill.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wpmandrill/stats.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Settings screen), #2 (Statistics), #3 (Dashboard widget), #4 (Dashboard widget Settings)
wpmandrill/wpmandrill.php Passed 13 tests
The main PHP file in "wpMandrill" ver. 1.33 adds more information about the plugin and also serves as the entry point for this plugin
63 characters long description:
wpMandrill sends emails, generated by WordPress using Mandrill.
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 plugin5,099 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 551 | 415 | 2,262 |
JavaScript | 4 | 440 | 295 | 2,193 |
PO File | 2 | 271 | 346 | 580 |
CSS | 1 | 4 | 0 | 64 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 63.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 207.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 107 | |
▷ Static methods | 70 | 65.42% |
▷ Public methods | 107 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/mandrill-head-icon.png | 2.50KB | 1.72KB | ▼ 31.08% |
images/FreddieHead.png | 7.60KB | 3.65KB | ▼ 51.98% |
images/MandrillHead.png | 8.28KB | 3.86KB | ▼ 53.43% |