Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▲1.31ms] Passed 4 tests
Server-side resources used by MailChimp Block
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 40.80 ▲0.38 |
Dashboard /wp-admin | 3.50 ▲0.20 | 51.66 ▲1.95 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 46.93 ▼0.09 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 95.96 ▲2.99 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 37.47 ▲3.04 |
Mailchimp block /wp-admin/admin.php?page=block-for-mailchimp | 3.38 | 35.50 |
Server storage [IO: ▲1.34MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 58 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
mcbpro-redirect |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
MailChimp Block: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲31 | 14.61 ▲0.36 | 1.69 ▲0.08 | 43.40 ▼0.03 |
Dashboard /wp-admin | 2,201 ▲21 | 5.62 ▼0.03 | 96.61 ▼6.98 | 41.40 ▼1.81 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.01 ▲0.01 | 34.43 ▼6.06 | 34.04 ▼2.80 |
Add New Post /wp-admin/post-new.php | 6,215 ▲4,689 | 20.36 ▼3.03 | 864.83 ▲178.12 | 36.11 ▼23.28 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.22 ▼0.05 | 100.26 ▲1.47 | 41.15 ▼7.07 |
Mailchimp block /wp-admin/admin.php?page=block-for-mailchimp | 798 | 2.38 | 56.11 | 31.78 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- mcbpro-redirect
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'BSDK' not found in wp-content/plugins/block-for-mailchimp/bplugins_sdk/inc/Base/License.php:3
- > PHP Fatal error
Uncaught Error: Class 'BSDK' not found in wp-content/plugins/block-for-mailchimp/bplugins_sdk/inc/Base/Activate.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-for-mailchimp/mailchimp/API.php:6
- > PHP Warning
Use of undefined constant MCB_PLUGIN_VERSION - assumed 'MCB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/block-for-mailchimp/dist/editor.asset.php on line 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Requires at least: Version not formatted correctly
block-for-mailchimp/index.php 85% from 13 tests
The main file in "MailChimp Block" v. 1.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("block-for-mailchimp.php" instead of "index.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,690 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 133 | 37 | 610 |
JavaScript | 15 | 71 | 28 | 477 |
JSON | 4 | 0 | 0 | 281 |
Sass | 3 | 11 | 5 | 184 |
PO File | 2 | 51 | 53 | 133 |
CSS | 5 | 0 | 8 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 44 | |
▷ Static methods | 3 | 6.82% |
▷ Public methods | 42 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.55% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bplugins_sdk/dist/assets/images/shield_success.png | 3.47KB | 3.61KB | 0.00% |