Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.53MB] [CPU: ▼6.14ms] Passed 4 tests
Analyzing server-side resources used by Table Rate Shipping Method for WooCommerce by Flexible Shipping
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.55 | 38.50 ▲0.66 |
Dashboard /wp-admin | 3.85 ▲0.50 | 47.83 ▼16.14 |
Posts /wp-admin/edit.php | 3.91 ▲0.54 | 50.80 ▲1.81 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.54 | 88.09 ▼10.79 |
Media Library /wp-admin/upload.php | 3.78 ▲0.54 | 37.29 ▲1.70 |
Server storage [IO: ▲14.96MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 864 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
wpdesk_requirements_plugins_data |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
plugin_activation_flexible-shipping/flexible-shipping.php |
Browser metrics Passed 4 tests
An overview of browser requirements for Table Rate Shipping Method for WooCommerce by Flexible Shipping
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲73 | 14.27 ▼0.05 | 2.02 ▲0.35 | 36.86 ▼5.36 |
Dashboard /wp-admin | 2,200 ▲20 | 5.62 ▼0.02 | 93.04 ▼7.06 | 42.41 ▼3.53 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 1.99 ▲0.03 | 43.06 ▲7.14 | 38.61 ▲9.84 |
Add New Post /wp-admin/post-new.php | 1,531 ▼3 | 23.19 ▼1.96 | 654.84 ▲12.33 | 48.96 ▼28.57 |
Media Library /wp-admin/upload.php | 1,405 ▲8 | 4.22 ▲0.07 | 99.21 ▲1.47 | 42.81 ▼0.22 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- plugin_activation_flexible-shipping/flexible-shipping.php
- widget_theysaidso_widget
- wpdesk_requirements_plugins_data
Smoke tests 50% 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)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/flexible-shipping/src/WPDesk/FS/TableRate/ShippingMethod/Convert/views/move-notices.php
- > /wp-content/plugins/flexible-shipping/classes/table-rate/views/html-shipping-method-scripts.php
- > /wp-content/plugins/flexible-shipping/src/WPDesk/FS/TableRate/ShippingMethod/BlockEditing/views/block-settings.php
- > /wp-content/plugins/flexible-shipping/src/WPDesk/FS/Onboarding/TableRate/views/before-table-method-rules-settings.php
- > /wp-content/plugins/flexible-shipping/vendor_prefixed/wpdesk/wp-forms/templates/form-end.php
- > /wp-content/plugins/flexible-shipping/classes/table-rate/views/html-shipping-settings-info-description.php
- > /wp-content/plugins/flexible-shipping/classes/table-rate/views/html-menu-icon.php
- 452× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'FSVendor\\WPDesk\\Forms\\Serializer' not found in wp-content/plugins/flexible-shipping/vendor_prefixed/wpdesk/wp-forms/src/Serializer/NoSerialize.php:6
- > PHP Fatal error
Uncaught Error: Interface 'FSVendor\\Octolize\\Tracker\\OptInNotice\\ShouldDisplay' not found in wp-content/plugins/flexible-shipping/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayAndConditions.php:8
- > PHP Fatal error
Uncaught Error: Class 'FSVendor\\Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/flexible-shipping/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PsrHandler.php:26
- > PHP Fatal error
Uncaught Error: Interface 'FSVendor\\Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/flexible-shipping/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php:24
- > PHP Fatal error
Uncaught Error: Call to a member function output_render() on null in wp-content/plugins/flexible-shipping/vendor_prefixed/wpdesk/wp-forms/templates/input-text.php:12
- > PHP Fatal error
Uncaught Error: Interface 'FSVendor\\Octolize\\Tracker\\OptInNotice\\ShouldDisplay' not found in wp-content/plugins/flexible-shipping/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayGetParameterPresent.php:8
- > PHP Fatal error
Uncaught Error: Interface 'WPDesk\\FS\\TableRate\\ShippingMethod\\MethodSettings' not found in wp-content/plugins/flexible-shipping/src/WPDesk/FS/TableRate/ShippingMethod/CommonMethodSettings.php:19
- > PHP Fatal error
Uncaught Error: Class 'FSVendor\\Monolog\\Handler\\AbstractSyslogHandler' not found in wp-content/plugins/flexible-shipping/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogHandler.php:29
- > PHP Notice
Undefined variable: metaboxes in wp-content/plugins/flexible-shipping/classes/table-rate/views/html-shipping-settings-info-description.php on line 14
- > PHP Fatal error
Uncaught Error: Interface 'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\HookablePluginDependant' not found in wp-content/plugins/flexible-shipping/classes/table-rate/class-shortcode-unit-dimension.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
flexible-shipping/flexible-shipping.php Passed 13 tests
"Table Rate Shipping Method for WooCommerce by Flexible Shipping" version 4.23.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
99 characters long description:
Create additional shipment methods in WooCommerce and enable pricing based on cart weight or total.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin34,107 lines of code in 805 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 713 | 3,947 | 19,324 | 31,411 |
JSON | 30 | 0 | 0 | 1,510 |
JavaScript | 18 | 70 | 67 | 561 |
SVG | 25 | 0 | 1 | 281 |
CSS | 14 | 44 | 3 | 265 |
XML | 2 | 7 | 0 | 42 |
Markdown | 3 | 8 | 0 | 37 |
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.30 |
Average class complexity | 5.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 132 | |
Interfaces | 75 | |
Traits | 17 | |
Classes | 530 | |
▷ Abstract classes | 27 | 5.09% |
▷ Concrete classes | 503 | 94.91% |
▷ Final classes | 14 | 2.78% |
Methods | 2,747 | |
▷ Static methods | 124 | 4.51% |
▷ Public methods | 2,111 | 76.85% |
▷ Protected methods | 219 | 7.97% |
▷ Private methods | 417 | 15.18% |
Functions | 83 | |
▷ Named functions | 39 | 46.99% |
▷ Anonymous functions | 44 | 53.01% |
Constants | 370 | |
▷ Global constants | 3 | 0.81% |
▷ Class constants | 367 | 99.19% |
▷ Public constants | 331 | 90.19% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
31 PNG files occupy 0.37MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/new-rules-table-popup/delivery@3x.png | 4.90KB | 2.60KB | ▼ 46.90% |
assets/images/new-rules-table-popup/configuration@2x.png | 5.41KB | 3.30KB | ▼ 38.88% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/logo.png | 2.36KB | 2.43KB | 0.00% |
assets/images/new-rules-table-popup/configuration@3x.png | 8.70KB | 4.63KB | ▼ 46.74% |
assets/images/onboarding/arrows-blue@2x.png | 4.56KB | 1.18KB | ▼ 74.11% |