Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.59ms] Passed 4 tests
This is a short check of server-side resources used by Mailchimp and Constant Contact Integration
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.32 ▲1.05 |
Dashboard /wp-admin | 3.31 ▼0.03 | 47.38 ▼16.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.26 ▼5.39 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 95.17 ▼8.85 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.59 ▲0.06 |
Server storage [IO: ▲1.81MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 225 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Mailchimp and Constant Contact Integration
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.25 ▼1.50 | 1.63 ▼0.18 | 41.66 ▼1.04 |
Dashboard /wp-admin | 2,203 ▲15 | 5.84 ▼0.02 | 103.37 ▲1.25 | 41.60 ▼3.61 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.03 | 36.41 ▼4.63 | 32.41 ▼2.90 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.17 ▲4.98 | 658.01 ▲44.80 | 59.52 ▲7.73 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.31 ▲0.11 | 97.08 ▲2.24 | 41.75 ▼5.90 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mailchimp-and-constant-contact-integration/class/api/ct/examples/createAndScheduleCampaign.php
- > /wp-content/plugins/mailchimp-and-constant-contact-integration/class/api/ct/examples/addOrUpdateContact.php
- > /wp-content/plugins/mailchimp-and-constant-contact-integration/class/api/ct/examples/getAccessToken.php
- 47× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/mailchimp-and-constant-contact-integration/class/api/ct/src/Ctct/Components/Contacts/CustomField.php:13
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/mailchimp-and-constant-contact-integration/class/api/ct/src/Ctct/Components/Contacts/Contact.php:14
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/mailchimp-and-constant-contact-integration/class/api/ct/src/Ctct/Components/Tracking/SendActivity.php:14
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/mailchimp-and-constant-contact-integration/class/api/ct/examples/addOrUpdateContact.php on line 129
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Services\\BaseService' not found in wp-content/plugins/mailchimp-and-constant-contact-integration/class/api/ct/src/Ctct/Services/ContactService.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/mailchimp-and-constant-contact-integration/class/api/ct/test/Services/EmailCampaignServiceUnitTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Services\\BaseService' not found in wp-content/plugins/mailchimp-and-constant-contact-integration/class/api/ct/src/Ctct/Services/CampaignTrackingService.php:22
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/mailchimp-and-constant-contact-integration/class/api/ct/src/Ctct/Components/Tracking/UnsubscribeActivity.php:13
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/mailchimp-and-constant-contact-integration/class/api/ct/src/Ctct/Components/Account/VerifiedEmailAddress.php:13
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/mailchimp-and-constant-contact-integration/class/api/ct/src/Ctct/Components/EmailMarketing/Schedule.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: constant contact, integration, mailchimp, woocommerce
mailchimp-and-constant-contact-integration/integrations.php 92% from 13 tests
The main PHP file in "Mailchimp and Constant Contact Integration" ver. 1.0 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: Please rename the main PHP file in this plugin to the plugin slug ("mailchimp-and-constant-contact-integration.php" instead of "integrations.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin31,306 lines of code in 208 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 103 | 8,310 | 0 | 24,069 |
PHP | 66 | 952 | 1,987 | 4,778 |
JavaScript | 3 | 128 | 189 | 992 |
JSON | 30 | 0 | 0 | 911 |
CSS | 2 | 114 | 21 | 482 |
Markdown | 2 | 14 | 0 | 60 |
XML | 1 | 0 | 0 | 8 |
YAML | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 4.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 312 | |
▷ Static methods | 58 | 18.59% |
▷ Public methods | 306 | 98.08% |
▷ Protected methods | 2 | 0.64% |
▷ Private methods | 4 | 1.28% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 7 | 50.00% |
▷ Class constants | 7 | 50.00% |
▷ Public constants | 7 | 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
13 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
class/api/ct/docs/resources/inherit.png | 0.15KB | 0.10KB | ▼ 29.61% |
screenshot-3.png | 15.28KB | 11.33KB | ▼ 25.82% |
class/api/ct/docs/resources/tree-hasnext.png | 0.13KB | 0.09KB | ▼ 31.25% |
class/api/ct/docs/resources/tree-last.png | 0.17KB | 0.11KB | ▼ 36.05% |
class/api/ct/docs/resources/collapsed.png | 0.23KB | 0.14KB | ▼ 39.08% |