Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.00ms] Passed 4 tests
This is a short check of server-side resources used by Simple Table Rates Shipping For WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.84 ▼5.47 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.96 ▼2.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.76 ▲0.73 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.53 ▼6.75 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 30.61 ▼1.48 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Table Rates Shipping For WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.61 ▼1.02 | 1.78 ▼0.26 | 43.20 ▲0.74 |
Dashboard /wp-admin | 2,206 ▲18 | 5.91 ▲0.00 | 106.67 ▼0.94 | 40.38 ▼4.51 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.00 ▼0.02 | 40.99 ▲0.83 | 36.38 ▼0.61 |
Add New Post /wp-admin/post-new.php | 1,534 ▲20 | 23.28 ▲5.77 | 597.99 ▼54.28 | 55.95 ▼5.39 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.17 ▼0.05 | 99.93 ▼4.14 | 41.73 ▼4.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-table-rates-shipping-for-woocommerce/core/app/frontend/views/app.php:3
- > PHP Fatal error
Uncaught Error: Class 'WPRuby_Str\\Core\\Rules\\Abstract_Rule' not found in wp-content/plugins/simple-table-rates-shipping-for-woocommerce/core/rules/class-quantity-rule.php:5
- > PHP Fatal error
Uncaught Error: Interface 'WPRuby_Str\\Core\\Rules\\Interface_Rule' not found in wp-content/plugins/simple-table-rates-shipping-for-woocommerce/core/rules/class-abstract-rule.php:6
- > PHP Fatal error
Uncaught Error: Class 'WPRuby_Str\\Core\\Rules\\Abstract_Rule' not found in wp-content/plugins/simple-table-rates-shipping-for-woocommerce/core/rules/class-product-rule.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-table-rates-shipping-for-woocommerce/core/views/admin-options.php:1
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/simple-table-rates-shipping-for-woocommerce/core/class-simple-table-rates-shipping-method.php:6
- > PHP Fatal error
Uncaught Error: Class 'WPRuby_Str\\Core\\Rules\\Abstract_Rule' not found in wp-content/plugins/simple-table-rates-shipping-for-woocommerce/core/rules/class-weight-rule.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPRuby_Str\\Core\\Rules\\Abstract_Rule' not found in wp-content/plugins/simple-table-rates-shipping-for-woocommerce/core/rules/class-cart-total-rule.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPRuby_Str\\Core\\Rules\\Abstract_Rule' not found in wp-content/plugins/simple-table-rates-shipping-for-woocommerce/core/rules/class-volume-rule.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPRuby_Str\\Core\\App\\Endpoints\\Abstract_Endpoint' not found in wp-content/plugins/simple-table-rates-shipping-for-woocommerce/core/app/endpoints/class-find-product-endpoint.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: shipping, woocommerce, table rates
simple-table-rates-shipping-for-woocommerce/simple-table-rates.php 85% from 13 tests
This is the main PHP file of "Simple Table Rates Shipping For WooCommerce" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-table-rates-shipping-for-woocommerce.php" instead of "simple-table-rates.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected943 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 306 | 237 | 939 |
JavaScript | 1 | 0 | 11 | 3 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 4.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 2 | 10.53% |
▷ Concrete classes | 17 | 89.47% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 8 | 9.09% |
▷ Public methods | 72 | 81.82% |
▷ Protected methods | 6 | 6.82% |
▷ Private methods | 10 | 11.36% |
Functions | 7 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 7 | 100.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin