Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼291.77ms] Passed 4 tests
This is a short check of server-side resources used by Cash on Delivery Charges for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 60.74 ▲8.37 |
Dashboard /wp-admin | 3.41 ▲0.00 | 33.55 ▼3.56 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 36.28 ▼3.38 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 97.55 ▼1,159.37 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 24.68 ▼0.75 |
Import COD Price List /wp-admin/admin.php?page=import-cod-pricelist | 3.10 | 17.77 |
Add New Price /wp-admin/admin.php?page=add-cod_amount | 3.10 | 17.36 |
COD Price /wp-admin/admin.php?page=cod_price_list | 3.10 | 16.94 |
COD Setting /wp-admin/admin.php?page=wpcc-cod-charges | 3.10 | 17.49 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: 1 new table, no new options
New tables |
---|
wp_wpcc_cashondelivery |
Browser metrics Passed 4 tests
Checking browser requirements for Cash on Delivery Charges for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,835 ▲81 | 15.96 ▼0.01 | 5.99 ▼0.23 | 2.17 ▼0.28 |
Dashboard /wp-admin | 2,895 ▲41 | 6.12 ▼0.03 | 124.18 ▼13.17 | 163.16 ▲3.85 |
Posts /wp-admin/edit.php | 2,688 ▼3 | 3.23 ▲0.01 | 65.50 ▼0.61 | 142.36 ▼2.44 |
Add New Post /wp-admin/post-new.php | 1,752 ▲91 | 21.55 ▲4.89 | 429.86 ▲5.89 | 150.80 ▼5.25 |
Media Library /wp-admin/upload.php | 1,698 ▼3 | 5.51 ▼0.02 | 144.30 ▼2.35 | 184.65 ▼6.26 |
Import COD Price List /wp-admin/admin.php?page=import-cod-pricelist | 28 | 0.94 | 0.03 | 16.42 |
Add New Price /wp-admin/admin.php?page=add-cod_amount | 28 | 0.94 | 0.04 | 17.08 |
COD Price /wp-admin/admin.php?page=cod_price_list | 28 | 0.94 | 0.04 | 16.76 |
COD Setting /wp-admin/admin.php?page=wpcc-cod-charges | 28 | 0.94 | 0.03 | 17.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_wpcc_cashondelivery
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wc-cash-on-delivery-charges/wpcc-woocommerce-cod-charges.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=import-cod-pricelist
- > Network (severe)
wp-admin/admin.php?page=import-cod-pricelist - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=add-cod_amount
- > Network (severe)
wp-admin/admin.php?page=add-cod_amount - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=cod_price_list
- > Network (severe)
wp-admin/admin.php?page=cod_price_list - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=wpcc-cod-charges
- > Network (severe)
wp-admin/admin.php?page=wpcc-cod-charges - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
- Screenshots: These screenshots lack descriptions #4, #5 in wc-cash-on-delivery-charges/assets to your readme.txt
wc-cash-on-delivery-charges/wpcc-woocommerce-cod-charges.php 92% from 13 tests
Analyzing the main PHP file in "Cash on Delivery Charges for WooCommerce" version 2.2.2
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-cash-on-delivery-charges.php" instead of "wpcc-woocommerce-cod-charges.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,770 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 209 | 28 | 761 |
CSS | 2 | 8 | 7 | 608 |
JavaScript | 2 | 84 | 147 | 400 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 29.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 4 | 11.11% |
▷ Public methods | 34 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.56% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
6 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/true.png | 23.41KB | 12.57KB | ▼ 46.30% |
includes/images/location.png | 2.88KB | 1.93KB | ▼ 32.84% |
includes/images/star.png | 39.75KB | 10.35KB | ▼ 73.95% |
includes/images/support.png | 6.44KB | 5.59KB | ▼ 13.09% |
includes/images/false.png | 27.71KB | 11.86KB | ▼ 57.20% |