Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.38ms] Passed 4 tests
A check of server-side resources used by Postcode Based Order Restriction for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 39.00 ▼5.67 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.13 ▼4.21 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 52.43 ▲5.86 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.54 ▼8.57 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 36.15 ▼3.05 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Postcode Based Order Restriction for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.40 ▲0.32 | 1.95 ▲0.14 | 38.23 ▼4.27 |
Dashboard /wp-admin | 2,197 ▲20 | 5.51 ▼0.11 | 89.64 ▲0.91 | 39.39 ▼2.24 |
Posts /wp-admin/edit.php | 2,102 ▼1 | 2.00 ▼0.01 | 40.37 ▲4.46 | 36.95 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 22.92 ▼0.10 | 678.33 ▼8.95 | 52.78 ▼1.46 |
Media Library /wp-admin/upload.php | 1,402 ▲5 | 4.27 ▲0.06 | 95.82 ▼19.29 | 42.11 ▼3.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postcode-based-order-restriction/woocommerce-postcode-order-restriction.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (The configuration of the plugin with the Postcode Based Order Restriction.), #2 (Order restriction based on specific zip/post codes in checkout for gateways.), #3 (Order restriction based on specific zip/post codes in checkout for place order.)
- Tags: There are too many tags (12 tag instead of maximum 10)
postcode-based-order-restriction/woocommerce-postcode-order-restriction.php 85% from 13 tests
"Postcode Based Order Restriction for WooCommerce" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 344 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("postcode-based-order-restriction.php" instead of "woocommerce-postcode-order-restriction.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin299 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 46 | 44 | 276 |
JavaScript | 1 | 4 | 0 | 23 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.74 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
5 PNG files occupy 0.40MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 122.08KB | 45.86KB | ▼ 62.44% |
icon-128x128.png | 27.68KB | 8.38KB | ▼ 69.71% |
banner-772x250.png | 71.99KB | 19.99KB | ▼ 72.23% |
screenshot-2.png | 111.65KB | 42.39KB | ▼ 62.04% |
screenshot-1.png | 78.70KB | 34.26KB | ▼ 56.47% |