Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲3.73MB] [CPU: ▼279.13ms] Passed 4 tests
Server-side resources used by MailChimp Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.40 ▲3.88 | 77.77 ▲26.98 |
Dashboard /wp-admin | 7.42 ▲4.01 | 55.44 ▲20.61 |
Posts /wp-admin/edit.php | 7.42 ▲3.77 | 57.43 ▲21.88 |
Add New Post /wp-admin/post-new.php | 10.24 ▲3.27 | 113.69 ▼1,174.40 |
Media Library /wp-admin/upload.php | 7.42 ▲4.12 | 43.53 ▲15.40 |
Freemius Debug [v.2.1.3] /wp-admin/admin.php?page=freemius | 7.42 | 43.17 |
Server storage [IO: ▲3.48MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 247 new files
Database: no new tables, 7 new options
New WordPress options |
---|
mc_campaign_data |
fs_accounts |
mc_general_data |
fs_gdpr |
mc_api_key_data |
fs_debug_mode |
fs_active_plugins |
Browser metrics Passed 4 tests
MailChimp Manager: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,874 ▲152 | 16.25 ▲0.65 | 6.32 ▲0.32 | 2.87 ▲0.60 |
Dashboard /wp-admin | 2,971 ▲113 | 6.07 ▼0.15 | 117.94 ▼15.43 | 193.67 ▲33.81 |
Posts /wp-admin/edit.php | 2,769 ▲75 | 3.12 ▼0.12 | 64.53 ▲2.28 | 161.34 ▲20.04 |
Add New Post /wp-admin/post-new.php | 1,707 ▲46 | 20.12 ▲3.49 | 385.55 ▼27.75 | 220.61 ▲61.24 |
Media Library /wp-admin/upload.php | 1,777 ▲79 | 5.61 ▲0.09 | 125.95 ▼21.19 | 233.41 ▲46.47 |
Freemius Debug [v.2.1.3] /wp-admin/admin.php?page=freemius | 1,455 | 2.51 | 55.04 | 141.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- fs_debug_mode
- mc_api_key_data
- fs_active_plugins
- fs_api_cache
- fs_accounts
- mc_general_data
- mc_campaign_data
- fs_gdpr
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/rm-mailchimp-manager/freemius/templates/ajax-loader.php
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/rm-mailchimp-manager/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'MCManager_API_Exception' not found in wp-content/plugins/rm-mailchimp-manager/inc/mailchimp/class-connection-exception.php:3
- > PHP Fatal error
Uncaught Error: Class 'MCManager_API_Exception' not found in wp-content/plugins/rm-mailchimp-manager/inc/mailchimp/class-resource-not-found-exception.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/rm-mailchimp-manager/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/rm-mailchimp-manager/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/rm-mailchimp-manager/template/header.php:8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/rm-mailchimp-manager/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/rm-mailchimp-manager/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/rm-mailchimp-manager/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/rm-mailchimp-manager/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: mailchimp, signup, marketing, campaigns, email...
rm-mailchimp-manager/rm-mailchimp-manager.php 92% from 13 tests
"MailChimp Manager" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 191 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected47,583 lines of code in 201 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 125 | 6,837 | 15,402 | 27,958 |
PO File | 9 | 4,216 | 4,944 | 9,156 |
HTML | 9 | 750 | 1,076 | 7,077 |
Sass | 25 | 390 | 77 | 2,443 |
JavaScript | 6 | 71 | 109 | 433 |
Markdown | 1 | 61 | 0 | 192 |
CSS | 15 | 24 | 10 | 186 |
SVG | 11 | 0 | 1 | 138 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,254)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 60.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,254.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 1,236 | |
▷ Static methods | 163 | 13.19% |
▷ Public methods | 924 | 74.76% |
▷ Protected methods | 15 | 1.21% |
▷ Private methods | 297 | 24.03% |
Functions | 100 | |
▷ Named functions | 100 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 124 | |
▷ Global constants | 102 | 82.26% |
▷ Class constants | 22 | 17.74% |
▷ Public constants | 22 | 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
6 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 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/rm-mailchimp-manager.png | 9.16KB | 5.26KB | ▼ 42.58% |
img/mc.png | 0.57KB | 0.54KB | ▼ 5.44% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
img/tpl-logo.png | 16.76KB | 3.86KB | ▼ 76.99% |