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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.20MB] [CPU: ▼17.03ms] Passed 4 tests
An overview of server-side resources used by Save and Share Cart for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.45 | 36.57 ▼8.18 |
Dashboard /wp-admin | 3.84 ▲0.49 | 58.13 ▼11.80 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 61.65 ▲11.25 |
Add New Post /wp-admin/post-new.php | 3.66 ▼2.23 | 54.24 ▼55.85 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 47.23 ▲7.72 |
Add New /wp-admin/post-new.php?post_type=wcssc-cart | 3.66 | 47.94 |
All Saved Carts /wp-admin/edit.php?post_type=wcssc-cart | 3.81 | 51.53 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 224 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
wcssc_user |
Browser metrics Passed 4 tests
A check of browser resources used by Save and Share Cart for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,481 ▼290 | 14.32 ▼0.34 | 0.51 ▼1.53 | 18.74 ▼26.31 |
Dashboard /wp-admin | 2,219 ▲39 | 5.62 ▲0.05 | 87.21 ▼4.97 | 40.39 ▼9.36 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.03 ▲0.02 | 40.85 ▲3.97 | 33.20 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 21.18 ▼1.89 | 673.89 ▼2.47 | 65.49 ▲5.78 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.24 ▲0.05 | 109.34 ▲8.17 | 50.32 ▲2.87 |
Add New /wp-admin/post-new.php?post_type=wcssc-cart | 6,204 | 22.56 | 878.94 | 30.76 |
All Saved Carts /wp-admin/edit.php?post_type=wcssc-cart | 1,102 | 1.97 | 36.86 | 33.68 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- wcssc_user
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=wcssc-cart
- > User notice in wp-includes/functions.php+5905
Function register_rest_route was called incorrectly. REST API $args should be an array of arrays. Non-array value detected for wcssc/v1/get-link. Please see Debugging in WordPress for more information. (This message was added in version 6.1.0.)
- > GET request to /wp-admin/post-new.php?post_type=wcssc-cart
- > User notice in wp-includes/functions.php+5905
Function register_rest_route was called incorrectly. REST API $args should be an array of arrays. Non-array value detected for wcssc/v1/save-cart. Please see Debugging in WordPress for more information. (This message was added in version 6.1.0.)
- > GET request to /wp-admin/post-new.php?post_type=wcssc-cart
- > User notice in wp-includes/functions.php+5905
Function register_rest_route was called incorrectly. REST API $args should be an array of arrays. Non-array value detected for wcssc/v1/email-cart. Please see Debugging in WordPress for more information. (This message was added in version 6.1.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wcssc-cart
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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 fix the following items
- 114× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-save-and-share-cart/vendor/phar-io/manifest/tests/xml/ComponentElementCollectionTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-save-and-share-cart/vendor/phar-io/manifest/tests/xml/LicenseElementTest.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function Ankit\\WCSSC\\Section\\wp_die() in wp-content/plugins/woo-save-and-share-cart/Includes/Admin/Sections/SaveCart.php:14
- > PHP Fatal error
Uncaught Error: Class 'PharIo\\Version\\AbstractVersionConstraint' not found in wp-content/plugins/woo-save-and-share-cart/vendor/phar-io/version/src/constraints/GreaterThanOrEqualToVersionConstraint.php:13
- > PHP Fatal error
Uncaught Error: Interface 'PharIo\\Manifest\\Exception' not found in wp-content/plugins/woo-save-and-share-cart/vendor/phar-io/manifest/src/exceptions/ManifestDocumentMapperException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'PharIo\\Version\\Exception' not found in wp-content/plugins/woo-save-and-share-cart/vendor/phar-io/version/src/exceptions/InvalidVersionException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'DeepCopy\\TypeFilter\\TypeFilter' not found in wp-content/plugins/woo-save-and-share-cart/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Spl/ArrayObjectFilter.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-save-and-share-cart/vendor/phar-io/manifest/tests/xml/RequiresElementTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-save-and-share-cart/vendor/phar-io/manifest/tests/values/BundledComponentCollectionTest.php:23
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-save-and-share-cart/vendor/phar-io/manifest/tests/exceptions/ManifestDocumentLoadingExceptionTest.php:8
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #6, #7, #8 in woo-save-and-share-cart/assets to your readme.txt
woo-save-and-share-cart/woo-save-share-cart.php 85% from 13 tests
This is the main PHP file of "Save and Share Cart for WooCommerce" version 2.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-save-and-share-cart.php" instead of "woo-save-share-cart.php")
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
Everything looks great! No dangerous files found in this plugin9,501 lines of code in 204 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 173 | 1,433 | 3,213 | 6,493 |
JSON | 7 | 5 | 0 | 2,019 |
Markdown | 5 | 195 | 0 | 327 |
CSS | 1 | 53 | 0 | 287 |
XML | 12 | 9 | 4 | 192 |
Ant | 2 | 17 | 0 | 74 |
PO File | 1 | 26 | 29 | 65 |
YAML | 2 | 8 | 1 | 36 |
JavaScript | 1 | 0 | 51 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 2.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 150 | |
▷ Abstract classes | 3 | 2.00% |
▷ Concrete classes | 147 | 98.00% |
▷ Final classes | 3 | 2.04% |
Methods | 547 | |
▷ Static methods | 25 | 4.57% |
▷ Public methods | 470 | 85.92% |
▷ Protected methods | 27 | 4.94% |
▷ Private methods | 50 | 9.14% |
Functions | 20 | |
▷ Named functions | 14 | 70.00% |
▷ Anonymous functions | 6 | 30.00% |
Constants | 9 | |
▷ Global constants | 5 | 55.56% |
▷ Class constants | 4 | 44.44% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/myclabs/deep-copy/doc/clone.png | 12.09KB | 5.48KB | ▼ 54.70% |
vendor/myclabs/deep-copy/doc/graph.png | 6.29KB | 3.03KB | ▼ 51.86% |
vendor/myclabs/deep-copy/doc/deep-copy.png | 10.64KB | 5.23KB | ▼ 50.84% |
vendor/myclabs/deep-copy/doc/deep-clone.png | 13.68KB | 6.54KB | ▼ 52.22% |