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.23MB] [CPU: ▼9.07ms] Passed 4 tests
Server-side resources used by MailChimp Campaigns
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 38.66 ▼3.25 |
Dashboard /wp-admin | 3.58 ▲0.28 | 37.12 ▼13.38 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 40.70 ▼11.62 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.20 ▼8.03 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 35.88 ▲0.82 |
Import /wp-admin/edit.php?post_type=newsletter&page=mailchimp_campaigns_manager-import | 3.56 | 35.48 |
Add New /wp-admin/post-new.php?post_type=newsletter | 5.91 | 71.04 |
All newsletter /wp-admin/edit.php?post_type=newsletter | 3.63 | 40.14 |
Settings /wp-admin/edit.php?post_type=newsletter&page=mailchimp_campaigns_manager-admin | 3.56 | 34.99 |
Server storage [IO: ▲1.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
mailchimp_campaigns_manager_labels |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MailChimp Campaigns
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲117 | 13.28 ▼1.15 | 1.69 ▼0.13 | 37.17 ▼6.86 |
Dashboard /wp-admin | 2,249 ▲61 | 4.94 ▼0.96 | 103.40 ▼10.64 | 38.19 ▼8.63 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.25 ▲0.25 | 38.97 ▲1.44 | 38.55 ▲1.67 |
Add New Post /wp-admin/post-new.php | 1,554 ▲30 | 23.50 ▲0.27 | 623.83 ▼21.49 | 62.32 ▲4.02 |
Media Library /wp-admin/upload.php | 1,434 ▲46 | 4.27 ▲0.11 | 98.69 ▲2.63 | 42.75 ▼4.05 |
Import /wp-admin/edit.php?post_type=newsletter&page=mailchimp_campaigns_manager-import | 813 | 1.73 | 25.98 | 24.96 |
Add New /wp-admin/post-new.php?post_type=newsletter | 6,492 | 21.33 | 812.34 | 35.24 |
All newsletter /wp-admin/edit.php?post_type=newsletter | 1,156 | 2.18 | 33.01 | 31.79 |
Settings /wp-admin/edit.php?post_type=newsletter&page=mailchimp_campaigns_manager-admin | 876 | 1.77 | 24.54 | 29.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=newsletter&page=mailchimp_campaigns_manager-admin
- > 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 | 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
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/olalaweb-mailchimp-campaign-manager/lib/basic-auth.php:87
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/olalaweb-mailchimp-campaign-manager/mailchimp-campaigns.php:8
- > PHP Fatal error
Uncaught Error: Class 'MailchimpCampaignsManager' not found in wp-content/plugins/olalaweb-mailchimp-campaign-manager/class/MailchimpCustomPostType.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/olalaweb-mailchimp-campaign-manager/class/MailchimpCampaignsManager.php:53
- > PHP Fatal error
Uncaught Error: Class 'MailchimpCampaignsManager' not found in wp-content/plugins/olalaweb-mailchimp-campaign-manager/class/MailchimpCampaign.php:15
- > PHP Fatal error
Uncaught Error: Class 'MailchimpCampaignsManager' not found in wp-content/plugins/olalaweb-mailchimp-campaign-manager/class/MailchimpCampaigns.php:4
- > PHP Fatal error
Uncaught Error: Class 'MailchimpCampaignsManager' not found in wp-content/plugins/olalaweb-mailchimp-campaign-manager/class/MailchimpAdmin.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: newsletter, mailchimp stats, mailchimp, shortcodes, shortcode...
olalaweb-mailchimp-campaign-manager/mailchimp-campaigns-manager.php 69% from 13 tests
The main PHP file in "MailChimp Campaigns" ver. 3.2.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("olalaweb-mailchimp-campaign-manager.php" instead of "mailchimp-campaigns-manager.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages/")
- Domain Path: The domain path must begin with a forward slash character ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,921 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 265 | 560 | 1,403 |
PO File | 1 | 72 | 74 | 157 |
JavaScript | 1 | 4 | 19 | 138 |
SVG | 1 | 11 | 0 | 116 |
CSS | 5 | 11 | 2 | 107 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 23.14 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 1 | 1.67% |
▷ Public methods | 60 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 41 | |
▷ Named functions | 40 | 97.56% |
▷ Anonymous functions | 1 | 2.44% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 1.14MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 273.70KB | 74.62KB | ▼ 72.74% |
assets/screenshot-1.png | 42.17KB | 23.88KB | ▼ 43.36% |
assets/icon-128x128.png | 9.48KB | 4.24KB | ▼ 55.28% |
assets/banner-772x250.png | 5.44KB | 5.08KB | ▼ 6.75% |
assets/banner-1544x500.png | 12.45KB | 12.02KB | ▼ 3.44% |