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.33MB] [CPU: ▼0.42ms] Passed 4 tests
This is a short check of server-side resources used by Send Emails with Mandrill
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.32 | 48.02 ▲1.32 |
Dashboard /wp-admin | 3.64 ▲0.33 | 52.42 ▼3.12 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 53.34 ▼2.10 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 93.23 ▲2.24 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 42.15 ▲4.19 |
Mandrill /wp-admin/options-general.php?page=wpmandrill | 3.59 | 39.77 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 29 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
A check of browser resources used by Send Emails with Mandrill
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.20 ▲0.05 | 1.92 ▲0.03 | 42.44 ▼5.09 |
Dashboard /wp-admin | 2,200 ▲23 | 5.59 ▼0.09 | 87.17 ▼6.09 | 38.38 ▼0.90 |
Posts /wp-admin/edit.php | 2,108 ▲11 | 2.06 ▲0.09 | 35.64 ▼6.59 | 31.29 ▼10.36 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 18.13 ▼5.33 | 650.66 ▼66.01 | 70.65 ▲8.32 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.23 ▲0.02 | 96.94 ▼8.94 | 40.25 ▼5.97 |
Mandrill /wp-admin/options-general.php?page=wpmandrill | 914 | 2.18 | 27.21 | 38.23 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/send-emails-with-mandrill/lib/pluginActivation.class.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/send-emails-with-mandrill/legacy/function.wp_mail.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/send-emails-with-mandrill/lib/wpMandrill.class.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/send-emails-with-mandrill/stats.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Settings screen), #2 (Statistics), #3 (Dashboard widget), #4 (Dashboard widget Settings)
send-emails-with-mandrill/wpmandrill.php 85% from 13 tests
Analyzing the main PHP file in "Send Emails with Mandrill" version 1.3.1
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("send-emails-with-mandrill.php" instead of "wpmandrill.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 151 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected5,230 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 584 | 437 | 2,383 |
JavaScript | 4 | 440 | 295 | 2,193 |
PO File | 2 | 267 | 342 | 572 |
CSS | 1 | 6 | 0 | 67 |
Markdown | 1 | 9 | 0 | 15 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 54.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 220.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 122 | |
▷ Static methods | 83 | 68.03% |
▷ Public methods | 122 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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/MandrillHead.png | 8.28KB | 3.86KB | ▼ 53.43% |
images/FreddieHead.png | 7.60KB | 3.65KB | ▼ 51.98% |