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: ▼5.81ms] Passed 4 tests
Analyzing server-side resources used by Dotdigital for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.15 ▼1.30 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.36 ▼3.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 40.63 ▼9.22 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.38 ▼8.98 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.78 ▲0.71 |
Settings /wp-admin/admin.php?page=dotdigital-for-woocommerce-settings | 3.00 | 22.13 |
Connect /wp-admin/admin.php?page=dotdigital-for-woocommerce | 3.00 | 23.04 |
Server storage [IO: ▲4.54MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 1,471 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_dd_subscribers |
wp_dotmailer_email_marketing |
New WordPress options |
---|
widget_dd_signup |
can_compress_scripts |
db_upgraded |
dotdigital_for_woocommerce_version |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Dotdigital for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.38 ▲0.01 | 1.90 ▲0.16 | 44.95 ▲3.96 |
Dashboard /wp-admin | 2,198 ▲21 | 5.67 ▲0.05 | 97.18 ▲8.90 | 42.30 ▼3.30 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.03 | 38.33 ▲0.96 | 36.26 ▲0.92 |
Add New Post /wp-admin/post-new.php | 1,526 ▼19 | 17.50 ▼5.66 | 607.85 ▼63.79 | 54.06 ▲4.36 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▼0.05 | 95.62 ▼18.05 | 43.08 ▼5.16 |
Settings /wp-admin/admin.php?page=dotdigital-for-woocommerce-settings | 28 | 0.44 | 0.07 | 3.88 |
Connect /wp-admin/admin.php?page=dotdigital-for-woocommerce | 28 | 0.44 | 0.15 | 4.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_dd_signup
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/dotdigital-for-woocommerce/public/partials/dotdigital-woocommerce-public-display.php
- 360× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Dotdigital_Woo_Vendor\\Doctrine\\DBAL\\Types\\VarDateTimeImmutableType' not found in wp-content/plugins/dotdigital-for-woocommerce/vendor/nesbot/carbon/src/Carbon/Doctrine/DateTimeImmutableType.php:11
- > PHP Fatal error
Uncaught Error: Class 'Dotdigital_Woo_Vendor\\GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/dotdigital-for-woocommerce/vendor/guzzlehttp/promises/src/AggregateException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Dotdigital_Woo_Vendor\\Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/dotdigital-for-woocommerce/vendor/nesbot/carbon/src/Carbon/Exceptions/UnitException.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Dotdigital_Woo_Vendor\\Http\\Promise\\Promise' not found in wp-content/plugins/dotdigital-for-woocommerce/vendor/php-http/client-common/src/Deferred.php:12
- > PHP Fatal error
Uncaught Error: Class 'Dotdigital_Woo_Vendor\\GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/dotdigital-for-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Dotdigital_Woo_Vendor\\Dotdigital\\V3\\Models\\AbstractSingletonModel' not found in wp-content/plugins/dotdigital-for-woocommerce/vendor/dotdigital/dotdigital-php/src/V3/Utility/Pagination/Parameter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Dotdigital_Woo_Vendor\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/dotdigital-for-woocommerce/vendor/guzzlehttp/psr7/src/FnStream.php:14
- > PHP Fatal error
Uncaught Error: Class 'Dotdigital_Woo_Vendor\\PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/dotdigital-for-woocommerce/vendor/symfony/translation/Test/ProviderFactoryTestCase.php:30
- > PHP Fatal error
Uncaught Error: Interface 'Dotdigital_Woo_Vendor\\Http\\Client\\HttpClient' not found in wp-content/plugins/dotdigital-for-woocommerce/vendor/php-http/curl-client/src/Client.php:28
- > PHP Fatal error
Uncaught Error: Class 'Dotdigital_Woo_Vendor\\Http\\Client\\Exception\\TransferException' not found in wp-content/plugins/dotdigital-for-woocommerce/vendor/php-http/client-common/src/Exception/BatchException.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=dotdigital-for-woocommerce-settings
- > Network (severe)
wp-admin/admin.php?page=dotdigital-for-woocommerce-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=dotdigital-for-woocommerce
- > Network (severe)
wp-admin/admin.php?page=dotdigital-for-woocommerce - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in dotdigital-for-woocommerce/assets to your readme.txt
dotdigital-for-woocommerce/class-dotdigital-woocommerce-bootstrapper.php 77% from 13 tests
The entry point to "Dotdigital for WooCommerce" version 1.4.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dotdigital-for-woocommerce.php" instead of "class-dotdigital-woocommerce-bootstrapper.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.7" instead of "6.0.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected44,703 lines of code in 1,240 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,226 | 2,567 | 38,633 | 38,979 |
XSD | 3 | 92 | 48 | 2,803 |
JavaScript | 7 | 55 | 86 | 1,593 |
CSS | 3 | 13 | 4 | 1,317 |
XML | 1 | 0 | 0 | 11 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 9.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 351.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 107 | |
Interfaces | 75 | |
Traits | 42 | |
Classes | 450 | |
▷ Abstract classes | 23 | 5.11% |
▷ Concrete classes | 427 | 94.89% |
▷ Final classes | 139 | 32.55% |
Methods | 3,277 | |
▷ Static methods | 563 | 17.18% |
▷ Public methods | 2,740 | 83.61% |
▷ Protected methods | 198 | 6.04% |
▷ Private methods | 339 | 10.34% |
Functions | 538 | |
▷ Named functions | 174 | 32.34% |
▷ Anonymous functions | 364 | 67.66% |
Constants | 239 | |
▷ Global constants | 14 | 5.86% |
▷ Class constants | 225 | 94.14% |
▷ Public constants | 207 | 92.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
3 PNG files occupy 0.25MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/image/flags.png | 68.68KB | 24.74KB | ▼ 63.98% |
assets/dotdigital-applogo-32x32.png | 4.25KB | 1.79KB | ▼ 57.78% |
public/image/flags@2x.png | 179.65KB | 69.58KB | ▼ 61.27% |