Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼3.74ms] Passed 4 tests
A check of server-side resources used by WooCommerce Table Rate Shipping
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 41.55 ▼5.60 |
Dashboard /wp-admin | 3.45 ▲0.14 | 51.36 ▲1.24 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 50.25 ▼1.97 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 101.72 ▼3.01 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.71 ▼4.36 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 40 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_um_vip_users |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Table Rate Shipping
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.28 ▼0.36 | 1.73 ▼0.19 | 43.19 ▼5.93 |
Dashboard /wp-admin | 2,198 ▲21 | 5.57 ▼0.11 | 87.90 ▼4.62 | 40.90 ▼2.75 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.02 ▲0.05 | 33.74 ▼5.26 | 36.77 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 22.86 ▼0.73 | 673.11 ▼67.81 | 53.81 ▲0.59 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.16 ▼0.03 | 102.26 ▼11.10 | 42.86 ▼6.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_um_vip_users
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/advanced-table-rate-shipping-for-woocommerce/aco-table-rate-shipping.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-table-rate-shipping-for-woocommerce/part/acotrs-settingsinfo.php:10
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/advanced-table-rate-shipping-for-woocommerce/includes/class-acotrs-shipping.php:6
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/advanced-table-rate-shipping-for-woocommerce/includes/class-acotrs-settingsinfo.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
Attributes that need to be fixed:
- Donate link: Invalid url: ""
advanced-table-rate-shipping-for-woocommerce/aco-table-rate-shipping.php 85% from 13 tests
The main file in "WooCommerce Table Rate Shipping" v. 2.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 253 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-table-rate-shipping-for-woocommerce.php" instead of "aco-table-rate-shipping.php")
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
Success! There were no dangerous files found in this plugin2,266 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 655 | 720 | 1,802 |
PO File | 1 | 153 | 163 | 323 |
SVG | 18 | 2 | 0 | 116 |
CSS | 1 | 16 | 0 | 16 |
JSON | 2 | 0 | 0 | 7 |
JavaScript | 2 | 0 | 1 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 53.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 211.00 |
Average method complexity | 5.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 3 | 3.80% |
▷ Public methods | 73 | 92.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 7.59% |
Functions | 15 | |
▷ Named functions | 7 | 46.67% |
▷ Anonymous functions | 8 | 53.33% |
Constants | 13 | |
▷ Global constants | 6 | 46.15% |
▷ Class constants | 7 | 53.85% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/banner-772x250.png | 149.32KB | 56.63KB | ▼ 62.07% |