Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.47ms] Passed 4 tests
An overview of server-side resources used by Table Rate Shipping for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.84 ▼1.96 |
Dashboard /wp-admin | 3.31 ▲0.01 | 57.06 ▲3.46 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.89 ▼1.37 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.47 ▼24.71 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.00 ▲2.15 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Table Rate Shipping for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲61 | 13.65 ▼0.57 | 1.95 ▼0.16 | 43.33 ▼0.26 |
Dashboard /wp-admin | 2,231 ▲28 | 4.91 ▼0.94 | 106.88 ▼13.20 | 42.05 ▼5.18 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.06 ▲0.03 | 35.39 ▼3.65 | 32.88 ▼2.99 |
Add New Post /wp-admin/post-new.php | 1,533 ▲2 | 23.50 ▲0.28 | 615.55 ▼66.99 | 54.04 ▼4.79 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.29 ▲0.09 | 99.15 ▼6.16 | 42.75 ▼6.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- 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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woocommerce-easy-table-rate-shipping/woocommerce-table-rate-plugin.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% 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
10 plugin tags: table rate shipping, shipping by weight, woocommerce shipping, conditional shipping, woocommerce tiered shipping...
woocommerce-easy-table-rate-shipping/woocommerce-table-rate-plugin.php 92% from 13 tests
This is the main PHP file of "Table Rate Shipping for WooCommerce" version 2.28, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-easy-table-rate-shipping.php" instead of "woocommerce-table-rate-plugin.php")
Code Analysis Passed 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
No dangerous file extensions were detected1,551 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 277 | 317 | 1,475 |
CSS | 1 | 7 | 0 | 68 |
JavaScript | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 116.00 |
▷ Minimum class complexity | 116.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 6.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 6 | 75.00% |
▷ Anonymous functions | 2 | 25.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/email.png | 0.51KB | 0.59KB | 0.00% |
images/lock.png | 0.45KB | 0.45KB | ▼ 1.08% |
images/name.png | 0.64KB | 0.57KB | ▼ 11.33% |
images/green.png | 0.16KB | 0.24KB | 0.00% |