Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/innozilla-table-rate-shipping-for-woocommerce/installer.php+41
Use of undefined constant WC_VERSION - assumed 'WC_VERSION' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.58ms] Passed 4 tests
A check of server-side resources used by Innozilla Table Rate Shipping for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 41.59 ▼5.09 |
Dashboard /wp-admin | 3.37 ▲0.06 | 49.34 ▼2.12 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.10 ▼5.10 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 82.34 ▼18.00 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.29 ▲4.79 |
Server storage [IO: ▲0.16MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_woocommerce_shipping_zone_shipping_methods |
wp_woocommerce_shipping_zones |
wp_innozilla_woocommerce_shipping_table_rates |
wp_woocommerce_shipping_zone_locations |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
hide_table_rate_welcome_notice |
Browser metrics Passed 4 tests
An overview of browser requirements for Innozilla Table Rate Shipping for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 14.50 ▲0.25 | 2.13 ▲0.20 | 48.96 ▲6.01 |
Dashboard /wp-admin | 2,212 ▲21 | 5.83 ▲0.97 | 109.38 ▲6.72 | 40.31 ▲2.00 |
Posts /wp-admin/edit.php | 2,097 ▲11 | 2.02 ▼0.12 | 36.35 ▼1.14 | 34.95 ▲2.66 |
Add New Post /wp-admin/post-new.php | 1,545 ▲7 | 23.29 ▼0.06 | 681.03 ▲78.96 | 61.79 ▲8.16 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.24 ▲0.02 | 101.39 ▼0.51 | 51.38 ▲5.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_woocommerce_shipping_zone_shipping_methods
- wp_woocommerce_shipping_zones
- wp_woocommerce_shipping_zone_locations
- wp_innozilla_woocommerce_shipping_table_rates
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- hide_table_rate_welcome_notice
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/innozilla-table-rate-shipping-for-woocommerce/includes/legacy/shipping-zones/includes/views/html-zone-methods.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/innozilla-table-rate-shipping-for-woocommerce/innozilla-table-rate-shipping-woocommerce.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/innozilla-table-rate-shipping-for-woocommerce/includes/legacy/shipping-zones/includes/views/html-zone-method-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/innozilla-table-rate-shipping-for-woocommerce/includes/legacy/shipping-zones/includes/views/form-edit-shipping-zone.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/innozilla-table-rate-shipping-for-woocommerce/includes/legacy/shipping-zones/includes/views/html-zone-list.php:2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/innozilla-table-rate-shipping-for-woocommerce/classes/Setup.php on line 5
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/innozilla-table-rate-shipping-for-woocommerce/classes/Setup.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/innozilla-table-rate-shipping-for-woocommerce/includes/legacy/shipping-zones/includes/views/form-add-shipping-zone.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/innozilla-table-rate-shipping-for-woocommerce/classes/Setup.php:7
- > PHP Fatal error
Uncaught Error: Class 'ITRSW_FREE_Exception' not found in wp-content/plugins/innozilla-table-rate-shipping-for-woocommerce/classes/exceptions/Missing_Dependencies_Exception.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: shipping, table rate shipping, woocommerce table rate shipping, woocommerce, woocommerce shipping
innozilla-table-rate-shipping-for-woocommerce/innozilla-table-rate-shipping-woocommerce.php 77% from 13 tests
This is the main PHP file of "Innozilla Table Rate Shipping for WooCommerce" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("innozilla-table-rate-shipping-for-woocommerce.php" instead of "innozilla-table-rate-shipping-woocommerce.php")
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected3,226 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 562 | 600 | 2,635 |
JavaScript | 3 | 42 | 6 | 266 |
CSS | 2 | 16 | 2 | 195 |
LESS | 1 | 3 | 0 | 130 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 105)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 1 | 7.14% |
▷ Concrete classes | 13 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 19 | 19.19% |
▷ Public methods | 86 | 86.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 13.13% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 9 | 81.82% |
▷ Class constants | 2 | 18.18% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin