Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲5.34MB] [CPU: ▲22.65ms] 75% from 4 tests
An overview of server-side resources used by Superfast Mailgun for the Newsletter plugin
Please take the time to fix the following items
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.34MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.21 ▲5.75 | 65.57 ▲22.68 |
Dashboard /wp-admin | 9.23 ▲5.93 | 80.21 ▲27.71 |
Posts /wp-admin/edit.php | 9.23 ▲5.87 | 72.80 ▲21.53 |
Add New Post /wp-admin/post-new.php | 9.71 ▲3.82 | 121.62 ▲18.69 |
Media Library /wp-admin/upload.php | 9.23 ▲6.00 | 70.28 ▲35.48 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.23 | 78.11 |
Server storage [IO: ▲3.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 181 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
fs_active_plugins |
fs_accounts |
widget_recent-comments |
fs_debug_mode |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Superfast Mailgun for the Newsletter plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 13.24 ▼1.43 | 4.47 ▲2.43 | 31.56 ▼13.02 |
Dashboard /wp-admin | 2,224 ▲45 | 5.89 ▲0.08 | 103.67 ▲1.61 | 40.31 ▼8.60 |
Posts /wp-admin/edit.php | 2,107 ▲15 | 2.02 ▼0.04 | 35.98 ▼3.68 | 37.11 ▼0.03 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 22.98 ▼0.04 | 619.66 ▼50.70 | 69.83 ▲2.75 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.24 ▲0.02 | 101.56 ▲2.59 | 43.91 ▼6.35 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,071 | 2.08 | 28.46 | 29.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/superfast-mailgun-newsletter/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- fs_accounts
- db_upgraded
- fs_active_plugins
- widget_recent-comments
- widget_recent-posts
- fs_debug_mode
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'NewsletterMailer' not found in wp-content/plugins/superfast-mailgun-newsletter/mailer.php:3
- > PHP Fatal error
Uncaught Error: Class 'NewsletterMailer' not found in wp-content/plugins/superfast-mailgun-newsletter/mailer.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: mailgun, add-on, newsletter
superfast-mailgun-newsletter/sfmailgun.php 92% from 13 tests
"Superfast Mailgun for the Newsletter plugin" version 1.2.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("superfast-mailgun-newsletter.php" instead of "sfmailgun.php")
Code Analysis 97% from 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 plugin34,127 lines of code in 137 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 121 | 8,098 | 17,360 | 33,920 |
JavaScript | 3 | 34 | 59 | 194 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 91.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 2 | 4.00% |
▷ Concrete classes | 48 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,285 | |
▷ Static methods | 197 | 15.33% |
▷ Public methods | 895 | 69.65% |
▷ Protected methods | 17 | 1.32% |
▷ Private methods | 373 | 29.03% |
Functions | 102 | |
▷ Named functions | 99 | 97.06% |
▷ Anonymous functions | 3 | 2.94% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |