Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼290.33ms] Passed 4 tests
An overview of server-side resources used by Advanced Table Rate Shipping for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.17 | 84.80 ▲2.99 |
Dashboard /wp-admin | 3.56 ▲0.15 | 41.36 ▼1.50 |
Posts /wp-admin/edit.php | 3.78 ▲0.13 | 63.10 ▲11.97 |
Add New Post /wp-admin/post-new.php | 7.04 ▲0.07 | 118.58 ▼1,160.00 |
Media Library /wp-admin/upload.php | 3.43 ▲0.14 | 40.27 ▼2.81 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: 1 new table, no new options
New tables |
---|
wp_um_vip_users |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Table Rate Shipping for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,820 ▲66 | 16.01 ▲0.62 | 7.78 ▼0.25 | 2.99 ▼0.56 |
Dashboard /wp-admin | 2,929 ▲53 | 6.42 ▼0.06 | 181.97 ▼20.63 | 198.14 ▼9.03 |
Posts /wp-admin/edit.php | 2,694 ▲9 | 3.42 ▼0.01 | 93.28 ▲2.46 | 170.70 ▼13.99 |
Add New Post /wp-admin/post-new.php | 1,712 ▲102 | 21.08 ▲0.50 | 640.75 ▼56.28 | 217.36 ▲3.37 |
Media Library /wp-admin/upload.php | 1,699 ▲7 | 5.70 ▼0.02 | 189.59 ▼9.81 | 251.37 ▼28.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_um_vip_users
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > 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:24
- > 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
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
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Donate link: Invalid url: ""
advanced-table-rate-shipping-for-woocommerce/aco-table-rate-shipping.php 85% from 13 tests
The main file in "Advanced Table Rate Shipping for WooCommerce" v. 2.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("advanced-table-rate-shipping-for-woocommerce.php" instead of "aco-table-rate-shipping.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 262 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,246 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 635 | 714 | 1,782 |
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
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 52.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 211.00 |
Average method complexity | 5.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.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 | 78 | |
▷ Static methods | 3 | 3.85% |
▷ Public methods | 72 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 7.69% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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% |