Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼312.71ms] Passed 4 tests
Analyzing server-side resources used by Check Pincode/Zipcode for Shipping Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 62.89 ▲6.03 |
Dashboard /wp-admin | 3.41 ▲0.00 | 53.59 ▲15.24 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 42.80 ▲1.41 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 98.48 ▼1,254.49 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 26.40 ▼3.80 |
Add Post codes /wp-admin/admin.php?page=post-code | 3.10 | 20.50 |
Import Post codes /wp-admin/admin.php?page=post-code-import | 3.10 | 20.59 |
Essential Kit /wp-admin/admin.php?page=wczp_kit | 3.10 | 18.80 |
List Post codes /wp-admin/admin.php?page=post-code-list | 3.10 | 17.27 |
Settings /wp-admin/admin.php?page=post-code-setting | 3.10 | 17.14 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: 1 new table, no new options
New tables |
---|
wp_wczp_postcode |
Browser metrics Passed 4 tests
A check of browser resources used by Check Pincode/Zipcode for Shipping Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,868 ▲145 | 16.50 ▲1.81 | 7.01 ▼0.41 | 2.69 ▲0.27 |
Dashboard /wp-admin | 2,878 ▲17 | 6.17 ▲0.02 | 114.50 ▼19.25 | 155.29 ▼6.86 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.23 ▲0.01 | 84.28 ▲20.46 | 155.81 ▲18.01 |
Add New Post /wp-admin/post-new.php | 1,660 ▼98 | 16.32 ▼5.09 | 423.46 ▼41.49 | 159.82 ▼5.70 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.52 ▲0.03 | 137.42 ▼5.82 | 187.99 ▲2.94 |
Add Post codes /wp-admin/admin.php?page=post-code | 28 | 0.94 | 0.03 | 18.64 |
Import Post codes /wp-admin/admin.php?page=post-code-import | 28 | 0.94 | 0.11 | 16.59 |
Essential Kit /wp-admin/admin.php?page=wczp_kit | 28 | 0.94 | 0.03 | 23.44 |
List Post codes /wp-admin/admin.php?page=post-code-list | 28 | 0.94 | 0.03 | 18.82 |
Settings /wp-admin/admin.php?page=post-code-setting | 28 | 0.94 | 0.04 | 19.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_wczp_postcode
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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 following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/check-pincodezipcode-for-shipping-woocommerce/woo-check-zipcode-pincode.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=post-code
- > Network (severe)
wp-admin/admin.php?page=post-code - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=post-code-import
- > Network (severe)
wp-admin/admin.php?page=post-code-import - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=wczp_kit
- > Network (severe)
wp-admin/admin.php?page=wczp_kit - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=post-code-list
- > Network (severe)
wp-admin/admin.php?page=post-code-list - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=post-code-setting
- > Network (severe)
wp-admin/admin.php?page=post-code-setting - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Contributors: The plugin contributors field is missing
- Screenshots: These screenshots need descriptions #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in check-pincodezipcode-for-shipping-woocommerce/assets to your readme.txt
check-pincodezipcode-for-shipping-woocommerce/woo-check-zipcode-pincode.php 85% from 13 tests
The entry point to "Check Pincode/Zipcode for Shipping Woocommerce" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("check-pincodezipcode-for-shipping-woocommerce.php" instead of "woo-check-zipcode-pincode.php")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
No dangerous file extensions were detected2,780 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 285 | 32 | 1,685 |
CSS | 2 | 7 | 7 | 625 |
JavaScript | 2 | 83 | 146 | 469 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 3 | 5.88% |
▷ Public methods | 49 | 96.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.92% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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/support.png | 6.44KB | 5.59KB | ▼ 13.09% |
includes/images/review.png | 15.87KB | 11.90KB | ▼ 25.01% |
includes/images/false.png | 27.71KB | 11.86KB | ▼ 57.20% |
includes/images/true.png | 23.41KB | 12.57KB | ▼ 46.30% |
includes/images/star.png | 39.75KB | 10.35KB | ▼ 73.95% |