Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼147.86ms] Passed 4 tests
An overview of server-side resources used by Postcode Shipping Rates- WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.06 | 33.70 ▼0.67 |
Dashboard /wp-admin | 3.12 ▲0.06 | 47.98 ▲2.61 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 48.30 ▼7.04 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.04 | 91.83 ▼580.17 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 29.69 ▼3.57 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Postcode Shipping Rates- WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.91 ▲0.21 | 7.79 ▼0.72 | 49.67 ▲1.92 |
Dashboard /wp-admin | 2,967 ▲36 | 5.92 ▼0.04 | 140.06 ▼34.92 | 110.05 ▼2.87 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 63.29 ▼27.58 | 87.71 ▼9.29 |
Add New Post /wp-admin/post-new.php | 1,500 ▼183 | 18.84 ▲0.13 | 387.15 ▼8.36 | 123.00 ▲14.75 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.05 ▲0.01 | 181.79 ▼27.44 | 129.73 ▲2.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
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
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 88% 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:
- Contributors: Plugin contributors field is missing
- Tags: Please delete some tags, you are using 31 tag instead of maximum 10
postcode-shipping/postcode_shipping.php 77% from 13 tests
The main PHP script in "Postcode Shipping Rates- WooCommerce" version 2.1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Domain Path: The domain path folder does not exist ("/lang")
- Main file name: The principal plugin file should be the same as the plugin slug ("postcode-shipping.php" instead of "postcode_shipping.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin344 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 408 | 78 | 344 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 91.01KB | 54.61KB | ▼ 39.99% |