Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼295.50ms] Passed 4 tests
Analyzing server-side resources used by Woocommerce Product Shipping Table Rates
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.36 ▲0.16 | 63.43 ▼10.31 |
Dashboard /wp-admin | 4.18 ▲0.15 | 37.83 ▼3.15 |
Posts /wp-admin/edit.php | 4.48 ▲0.15 | 60.99 ▲17.62 |
Add New Post /wp-admin/post-new.php | 7.71 ▲0.12 | 101.63 ▼1,173.91 |
Media Library /wp-admin/upload.php | 4.13 ▲0.15 | 32.15 ▲5.38 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Woocommerce Product Shipping Table Rates
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲10 | 15.98 ▲0.82 | 6.32 ▼0.57 | 2.23 ▼0.11 |
Dashboard /wp-admin | 2,892 ▲38 | 6.11 ▼0.06 | 121.85 ▼21.60 | 160.44 ▲1.76 |
Posts /wp-admin/edit.php | 2,688 ▼0 | 3.23 ▲0.01 | 68.02 ▲5.87 | 182.17 ▲34.79 |
Add New Post /wp-admin/post-new.php | 1,758 ▲97 | 21.99 ▲5.60 | 461.81 ▲45.14 | 181.28 ▼45.37 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.44 ▼0.05 | 144.26 ▼2.82 | 195.49 ▼46.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
woo-product-shipping-table/main.php 69% from 13 tests
This is the main PHP file of "Woocommerce Product Shipping Table Rates" version 1.0.8, 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: The principal plugin file should be the same as the plugin slug ("woo-product-shipping-table.php" instead of "main.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "2.6.0")
- Description: Please don't use more than 140 characters for the plugin description (currently 740 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were 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
A short 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin