Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.28MB] [CPU: ▲0.90ms] Passed 4 tests
This is a short check of server-side resources used by Paid Memberships Pro - Mailchimp Add On
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 45.42 ▲4.46 |
Dashboard /wp-admin | 3.59 ▲0.29 | 45.66 ▼0.47 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 49.31 ▲5.24 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 90.19 ▼1.08 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 35.08 ▲0.67 |
PMPro Mailchimp /wp-admin/options-general.php?page=pmpromc_options | 3.48 | 30.86 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
pmpromc_options |
db_upgraded |
Browser metrics Passed 4 tests
Paid Memberships Pro - Mailchimp Add On: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲36 | 14.72 ▲0.32 | 1.73 ▼0.05 | 39.27 ▼4.97 |
Dashboard /wp-admin | 2,201 ▲21 | 5.49 ▼0.05 | 92.79 ▼2.38 | 43.55 ▼2.51 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▲0.07 | 39.79 ▲2.31 | 35.79 ▼3.67 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.23 ▼0.66 | 615.84 ▼59.79 | 52.60 ▼10.41 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.38 ▲0.19 | 96.82 ▼6.27 | 44.52 ▲0.22 |
PMPro Mailchimp /wp-admin/options-general.php?page=pmpromc_options | 956 | 2.12 | 25.40 | 30.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- pmpromc_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 everything seems fine, this is not an exhaustive test
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
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-mailchimp/includes/api-wrapper.php:174
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-mailchimp/includes/api-wrapper.php:174
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-mailchimp/includes/functions.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/pmpro-mailchimp/includes/export-csv.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-mailchimp/includes/settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-mailchimp/includes/profile.php:109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (General Settings for plugin, including the non-member audiences opt-in rules, and unsubscribe rules.), #2 (Specific settings for Membership Levels and Audiences.)
pmpro-mailchimp/pmpro-mailchimp.php Passed 13 tests
The entry point to "Paid Memberships Pro - Mailchimp Add On" version 2.3.4 is a PHP file that has certain tags in its header comment area
63 characters long description:
Sync your WordPress users and members with Mailchimp audiences.
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
Everything looks great! No dangerous files found in this plugin1,907 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 397 | 545 | 1,745 |
PO File | 1 | 61 | 67 | 135 |
Bourne Shell | 1 | 0 | 8 | 15 |
CSS | 1 | 1 | 0 | 12 |
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.40 |
Average class complexity | 61.00 |
▷ Minimum class complexity | 61.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 25.00% |
Functions | 57 | |
▷ Named functions | 57 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.08MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 23.67KB | 22.21KB | ▼ 6.15% |
screenshot-1.png | 57.64KB | 56.06KB | ▼ 2.74% |