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: ▼6.21ms] Passed 4 tests
An overview of server-side resources used by Constant Contact + WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.74 ▼1.68 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.55 ▼7.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.79 ▲3.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.61 ▼19.69 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.52 ▲3.94 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 171 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_cc_abandoned_checkouts |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
cc_abandoned_checkouts_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by Constant Contact + WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.00 | 1.73 ▲0.11 | 42.11 ▼4.73 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▼0.06 | 86.42 ▼7.36 | 43.12 ▼1.00 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▼0.02 | 33.24 ▼30.71 | 35.15 ▼4.02 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.58 ▲5.46 | 670.07 ▲1.69 | 52.46 ▼22.94 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▲0.04 | 99.46 ▼4.16 | 44.66 ▲1.40 |
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: 6 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_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 no errors were found, this is by no means 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 take a closer look at the following
- 119× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/constant-contact-woocommerce/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/constant-contact-woocommerce/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/constant-contact-woocommerce/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/constant-contact-woocommerce/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php:4
- > PHP Fatal error
Uncaught Error: Interface 'WebDevStudios\\OopsWP\\Utility\\Hookable' not found in wp-content/plugins/constant-contact-woocommerce/src/View/Checkout/NewsletterPreferenceCheckbox.php:25
- > PHP Fatal error
Uncaught Error: Interface 'WebDevStudios\\OopsWP\\Utility\\Registerable' not found in wp-content/plugins/constant-contact-woocommerce/vendor/webdevstudios/oops-wp/src/Structure/Editor/EditorBlock.php:23
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/constant-contact-woocommerce/src/View/Admin/WooTab.php:27
- > PHP Fatal error
Uncaught Error: Class 'WebDevStudios\\CCForWoo\\View\\Admin\oticeAbstract' not found in wp-content/plugins/constant-contact-woocommerce/src/View/Admin/Notice.php:20
- > PHP Fatal error
Uncaught Error: Interface 'WebDevStudios\\OopsWP\\Utility\\Hookable' not found in wp-content/plugins/constant-contact-woocommerce/src/View/Checkout/CampaignId.php:23
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/constant-contact-woocommerce/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% 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
8 plugin tags: marketing automation, email marketing, abandoned cart, woocommerce, ecommerce...
constant-contact-woocommerce/plugin.php 85% from 13 tests
The entry point to "Constant Contact + WooCommerce" version 2.2.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("constant-contact-woocommerce.php" instead of "plugin.php")
- Requires at least: Required version does not match the one declared in readme.txt ("5.2.2" instead of "3.6.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected5,186 lines of code in 161 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 148 | 1,001 | 3,211 | 4,573 |
JSON | 4 | 0 | 0 | 353 |
CSS | 1 | 35 | 1 | 157 |
JavaScript | 6 | 16 | 77 | 71 |
Markdown | 2 | 6 | 0 | 32 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 3.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 5 | |
Traits | 2 | |
Classes | 132 | |
▷ Abstract classes | 8 | 6.06% |
▷ Concrete classes | 124 | 93.94% |
▷ Final classes | 1 | 0.81% |
Methods | 313 | |
▷ Static methods | 16 | 5.11% |
▷ Public methods | 213 | 68.05% |
▷ Protected methods | 44 | 14.06% |
▷ Private methods | 56 | 17.89% |
Functions | 10 | |
▷ Named functions | 3 | 30.00% |
▷ Anonymous functions | 7 | 70.00% |
Constants | 27 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 27 | 100.00% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/assets/ctct.png | 4.21KB | 1.90KB | ▼ 54.96% |
src/assets/ctct-connected.png | 2.50KB | 1.07KB | ▼ 57.35% |