Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼294.41ms] Passed 4 tests
An overview of server-side resources used by Check Pincode/Zipcode for Shipping Availability
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 53.73 ▲2.12 |
Dashboard /wp-admin | 3.41 ▲0.00 | 33.09 ▼0.60 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 38.72 ▲2.30 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 92.83 ▼1,180.16 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 23.73 ▲1.00 |
Add Post/Zip codes /wp-admin/admin.php?page=add-post-code | 3.10 | 17.18 |
Post/Zip codes /wp-admin/admin.php?page=post-code | 3.10 | 17.06 |
Settings /wp-admin/admin.php?page=post-code-setting | 3.10 | 17.71 |
Import Post/Zip codes /wp-admin/admin.php?page=post-code-import | 3.10 | 17.14 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: 1 new table, no new options
New tables |
---|
wp_wpcc_postcode |
Browser metrics Passed 4 tests
A check of browser resources used by Check Pincode/Zipcode for Shipping Availability
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,878 ▲125 | 16.29 ▲0.65 | 5.97 ▲0.48 | 2.62 ▼0.21 |
Dashboard /wp-admin | 2,895 ▲37 | 6.13 ▼0.06 | 114.56 ▼16.48 | 162.70 ▲4.94 |
Posts /wp-admin/edit.php | 2,688 ▼0 | 3.25 ▲0.01 | 62.20 ▼0.65 | 139.54 ▼4.94 |
Add New Post /wp-admin/post-new.php | 1,661 ▼7 | 16.84 ▼2.68 | 390.64 ▼22.15 | 153.07 ▲0.61 |
Media Library /wp-admin/upload.php | 1,695 ▼0 | 5.48 ▼0.01 | 142.54 ▲4.43 | 183.70 ▼0.83 |
Add Post/Zip codes /wp-admin/admin.php?page=add-post-code | 28 | 0.94 | 0.73 | 16.60 |
Post/Zip codes /wp-admin/admin.php?page=post-code | 28 | 0.94 | 0.05 | 16.94 |
Settings /wp-admin/admin.php?page=post-code-setting | 28 | 0.94 | 0.03 | 17.35 |
Import Post/Zip codes /wp-admin/admin.php?page=post-code-import | 28 | 0.94 | 0.03 | 19.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_wpcc_postcode
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/check-pincodezipcode-for-shipping-availability/woo-check-zipcode-pincode.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=add-post-code
- > Network (severe)
wp-admin/admin.php?page=add-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
- > 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-setting
- > Network (severe)
wp-admin/admin.php?page=post-code-setting - 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)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots need descriptions #1, #10, #11, #12, #13, #14, #15, #2, #3, #4, #5, #6, #7, #8, #9 in check-pincodezipcode-for-shipping-availability/assets to your readme.txt
check-pincodezipcode-for-shipping-availability/woo-check-zipcode-pincode.php 92% from 13 tests
The main PHP script in "Check Pincode/Zipcode for Shipping Availability" version 3.4 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("check-pincodezipcode-for-shipping-availability.php" instead of "woo-check-zipcode-pincode.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,623 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 291 | 36 | 1,510 |
CSS | 2 | 9 | 7 | 622 |
JavaScript | 2 | 102 | 146 | 489 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 45.25 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 4.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.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 | 46 | |
▷ Static methods | 4 | 8.70% |
▷ Public methods | 44 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.35% |
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.04MB 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/true.png | 23.41KB | 12.57KB | ▼ 46.30% |
includes/images/review.png | 15.87KB | 11.90KB | ▼ 25.01% |
includes/images/location.png | 2.88KB | 1.93KB | ▼ 32.84% |
includes/images/false.png | 27.71KB | 11.86KB | ▼ 57.20% |