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.10MB] [CPU: ▼4.12ms] Passed 4 tests
Server-side resources used by Cart Suggestion for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 43.62 ▼3.72 |
Dashboard /wp-admin | 3.40 ▲0.10 | 48.34 ▲1.15 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 48.87 ▼1.24 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 85.19 ▼12.66 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.72 ▲3.30 |
Server storage [IO: ▲1.23MB] [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: 136 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Cart Suggestion for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.61 ▼0.17 | 1.76 ▼0.53 | 43.92 ▼5.97 |
Dashboard /wp-admin | 2,195 ▲24 | 5.59 ▲0.02 | 87.53 ▼2.07 | 38.99 ▼1.39 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▼0.16 | 39.09 ▼1.96 | 34.04 ▼3.73 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.35 ▲0.45 | 690.19 ▲50.01 | 55.80 ▲4.22 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▼0.14 | 102.34 ▲3.26 | 45.12 ▲1.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/cart-suggestion-for-woocommerce/vendor/wp-user-manager/wp-optionskit/includes/views/settings-page.php
- 98× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/cart-suggestion-for-woocommerce/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/cart-suggestion-for-woocommerce/vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/cart-suggestion-for-woocommerce/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/cart-suggestion-for-woocommerce/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/cart-suggestion-for-woocommerce/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/cart-suggestion-for-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/cart-suggestion-for-woocommerce/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/cart-suggestion-for-woocommerce/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php:6
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/cart-suggestion-for-woocommerce/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/cart-suggestion-for-woocommerce/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: woocommerce, checkout, suggestion, cart
cart-suggestion-for-woocommerce/cart-suggestion-for-woocommerce.php 85% from 13 tests
This is the main PHP file of "Cart Suggestion for WooCommerce" version 0.8.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,616 lines of code in 126 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 115 | 712 | 944 | 3,113 |
JSON | 4 | 0 | 0 | 377 |
YAML | 3 | 30 | 3 | 118 |
JavaScript | 3 | 0 | 17 | 7 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 3.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 104 | |
▷ Abstract classes | 1 | 0.96% |
▷ Concrete classes | 103 | 99.04% |
▷ Final classes | 0 | 0.00% |
Methods | 154 | |
▷ Static methods | 15 | 9.74% |
▷ Public methods | 104 | 67.53% |
▷ Protected methods | 31 | 20.13% |
▷ Private methods | 19 | 12.34% |
Functions | 17 | |
▷ Named functions | 10 | 58.82% |
▷ Anonymous functions | 7 | 41.18% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.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
No PNG images were found in this plugin