Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼12.49MB] [CPU: ▼2,617,214.04ms] Passed 4 tests
A check of server-side resources used by Woocommerce Product Shipping Table Rates
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.15 | 44.94 ▼4.42 |
Dashboard /wp-admin | 3.50 ▼50.42 | 55.58 ▼10,468,832.07 |
Posts /wp-admin/edit.php | 3.61 ▲0.21 | 51.35 ▼2.46 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.15 | 88.22 ▼17.22 |
Media Library /wp-admin/upload.php | 3.42 ▲0.15 | 39.03 ▼1.26 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Woocommerce Product Shipping Table Rates
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.10 | 1.99 ▲0.39 | 44.34 ▼0.87 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▲0.08 | 86.31 ▼19.17 | 38.85 ▼6.59 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.08 | 36.34 ▲1.15 | 36.74 ▲0.93 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.72 ▼4.33 | 621.20 ▼55.91 | 69.71 ▼5.08 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.31 ▲0.16 | 96.03 ▼9.61 | 40.66 ▼5.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
woo-product-shipping-table/main.php 69% from 13 tests
"Woocommerce Product Shipping Table Rates" version 1.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Please don't use more than 140 characters for the plugin description (currently 740 characters long)
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "2.6.0")
- Main file name: Name the main plugin file the same as the plugin slug ("woo-product-shipping-table.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin5,997 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,195 | 276 | 4,485 |
PHP | 2 | 275 | 69 | 886 |
CSS | 4 | 92 | 0 | 626 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 104.00 |
▷ Minimum class complexity | 104.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 8.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin