Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.18MB] [CPU: ▼40.99ms] Passed 4 tests
A check of server-side resources used by Mailchimp for Shopified
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.79 ▼0.67 | 13.84 ▼24.66 |
Dashboard /wp-admin | 2.83 ▼0.47 | 16.39 ▼35.47 |
Posts /wp-admin/edit.php | 2.83 ▼0.52 | 17.00 ▼28.91 |
Add New Post /wp-admin/post-new.php | 2.83 ▼3.05 | 19.77 ▼74.91 |
Media Library /wp-admin/upload.php | 2.83 ▼0.39 | 16.06 ▼16.34 |
Mailch. Shopified /wp-admin/options-general.php?page=mailchimp-shopified-menu | 2.83 | 15.06 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mailchimp for Shopified
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲160 | 14.02 ▼0.33 | 7.89 ▲5.77 | 46.29 ▼0.61 |
Dashboard /wp-admin | 2,219 ▲31 | 4.85 ▼1.03 | 107.48 ▼6.40 | 41.46 ▼6.80 |
Posts /wp-admin/edit.php | 2,108 ▲22 | 2.03 ▲0.01 | 39.35 ▲0.48 | 41.71 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,375 ▼167 | 20.18 ▲2.00 | 555.05 ▼95.49 | 63.93 ▲5.27 |
Media Library /wp-admin/upload.php | 1,398 ▲7 | 4.21 ▼0.04 | 95.52 ▼4.26 | 42.49 ▼2.10 |
Mailch. Shopified /wp-admin/options-general.php?page=mailchimp-shopified-menu | 836 | 2.02 | 26.00 | 31.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/mailchimp-for-shopified/index.php+69
Undefined index: newsletter
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=mailchimp-shopified-menu
- > Notice in wp-content/plugins/mailchimp-for-shopified/index.php+69
Undefined index: newsletter
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mailchimp-shopified-menu
- > Warning in wp-content/plugins/mailchimp-for-shopified/index.php+77
Use of undefined constant CUSTOMERS - assumed 'CUSTOMERS' (this will throw an Error in a future version of PHP)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mailchimp-shopified-menu
- > Warning in wp-content/plugins/mailchimp-for-shopified/index.php+77
Use of undefined constant USERS - assumed 'USERS' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=mailchimp-shopified-menu
- > Notice in wp-content/plugins/mailchimp-for-shopified/index.php+99
Undefined variable: name
- > GET request to /wp-admin/options-general.php?page=mailchimp-shopified-menu
- > Notice in wp-content/plugins/mailchimp-for-shopified/include/MailChimp.php+31
Undefined offset: 1
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mailchimp-for-shopified/include/checkbox.php
- 3× 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/mailchimp-for-shopified/index.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/mailchimp-for-shopified/admin/admin.php:9
- > PHP Notice
Undefined index: newsletter in wp-content/plugins/mailchimp-for-shopified/include/ajax.php on line 6
- > 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 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== mailchimp-for-shopified ===
) - Donate link: Please fix this invalid URI: ""
mailchimp-for-shopified/index.php 92% from 13 tests
The principal PHP file in "Mailchimp for Shopified" v. 1.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mailchimp-for-shopified.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected188 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 81 | 62 | 163 |
JavaScript | 1 | 19 | 5 | 25 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 33.33% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin