Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▼2.19ms] Passed 4 tests
Analyzing server-side resources used by Cart Weight for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 39.78 ▼1.30 |
Dashboard /wp-admin | 3.75 ▲0.45 | 48.80 ▼1.03 |
Posts /wp-admin/edit.php | 3.80 ▲0.45 | 49.39 ▲2.82 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.45 | 89.46 ▼9.25 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 37.98 ▲3.16 |
Server storage [IO: ▲1.73MB] [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: 410 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
plugin_activation_woo-cart-weight/woocommerce-cart-weight.php |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Cart Weight for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲6 | 14.32 ▼0.03 | 1.71 ▼0.21 | 37.01 ▼6.47 |
Dashboard /wp-admin | 2,195 ▲15 | 5.49 ▼0.17 | 88.89 ▼2.63 | 40.08 ▼0.22 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.95 ▼0.02 | 40.68 ▲0.73 | 36.18 ▼2.96 |
Add New Post /wp-admin/post-new.php | 1,537 ▲2 | 24.91 ▼0.46 | 615.45 ▼24.49 | 63.59 ▲2.11 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.26 ▲0.09 | 97.23 ▼8.04 | 40.46 ▼3.62 |
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 did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- plugin_activation_woo-cart-weight/woocommerce-cart-weight.php
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following
- 171× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WCWeightVendor\\Monolog\\Handler\\Handler' not found in wp-content/plugins/woo-cart-weight/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractHandler.php:25
- > PHP Fatal error
Uncaught Error: Interface 'WCWeightVendor\\WPDesk\\View\\Renderer\\Renderer' not found in wp-content/plugins/woo-cart-weight/vendor_prefixed/wpdesk/wp-view/src/Renderer/LoadTemplatePlugin.php:9
- > PHP Fatal error
Uncaught Error: Class 'WCWeightVendor\\Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/woo-cart-weight/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php:32
- > PHP Fatal error
Uncaught Error: Interface 'WCWeightVendor\\WPDesk\\Plugin\\Flow\\Initialization\\InitializationStrategy' not found in wp-content/plugins/woo-cart-weight/vendor_prefixed/wpdesk/wp-plugin-flow-common/src/Initialization/Simple/SimplePaidStrategy.php:20
- > PHP Fatal error
Uncaught Error: Interface 'WCWeightVendor\\Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/woo-cart-weight/vendor_prefixed/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/woo-cart-weight/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/views/html-notice.php:12
- > PHP Fatal error
Uncaught Error: Class 'WCWeightVendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/woo-cart-weight/vendor_prefixed/wpdesk/wp-logs/src/WC/WooCommerceHandler.php:10
- > PHP Fatal error
Uncaught Error: Class 'WCWeightVendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/woo-cart-weight/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php:23
- > PHP Fatal error
Uncaught Error: Class 'WCWeightVendor\\Monolog\\Handler\\Handler' not found in wp-content/plugins/woo-cart-weight/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NullHandler.php:27
- > PHP Fatal error
Uncaught Error: Interface 'WCWeightVendor\\WPDesk\\PluginBuilder\\Storage\\PluginStorage' not found in wp-content/plugins/woo-cart-weight/vendor_prefixed/wpdesk/wp-builder/src/Storage/StaticStorage.php:11
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
6 plugin tags: weight, order total weight, woocommerce cart weight, cart, order weight...
woo-cart-weight/woocommerce-cart-weight.php 77% from 13 tests
"Cart Weight for WooCommerce" version 1.8.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.2" instead of "7.4")
- Main file name: Name the main plugin file the same as the plugin slug ("woo-cart-weight.php" instead of "woocommerce-cart-weight.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.5" instead of "5.8")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin16,118 lines of code in 395 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 339 | 862 | 11,136 | 14,648 |
JSON | 23 | 0 | 0 | 1,052 |
SVG | 20 | 0 | 0 | 157 |
JavaScript | 7 | 5 | 2 | 152 |
CSS | 4 | 20 | 2 | 84 |
Markdown | 2 | 5 | 0 | 25 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 5.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 51 | |
Interfaces | 63 | |
Traits | 12 | |
Classes | 233 | |
▷ Abstract classes | 12 | 5.15% |
▷ Concrete classes | 221 | 94.85% |
▷ Final classes | 6 | 2.71% |
Methods | 1,367 | |
▷ Static methods | 97 | 7.10% |
▷ Public methods | 1,036 | 75.79% |
▷ Protected methods | 185 | 13.53% |
▷ Private methods | 146 | 10.68% |
Functions | 52 | |
▷ Named functions | 14 | 26.92% |
▷ Anonymous functions | 38 | 73.08% |
Constants | 152 | |
▷ Global constants | 2 | 1.32% |
▷ Class constants | 150 | 98.68% |
▷ Public constants | 114 | 76.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
6 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/wpdesk.net.png | 2.36KB | 2.43KB | 0.00% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/logo.png | 2.36KB | 2.43KB | 0.00% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/wpdesk.pl.png | 2.36KB | 2.43KB | 0.00% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/octolize.com.png | 88.91KB | 39.07KB | ▼ 56.06% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/logo@2x.png | 4.17KB | 4.47KB | 0.00% |