Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.16MB] [CPU: ▼17.02ms] Passed 4 tests
This is a short check of server-side resources used by Country Based Restrictions for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.48 ▼6.26 |
Dashboard /wp-admin | 3.20 ▼0.10 | 30.87 ▼17.08 |
Posts /wp-admin/edit.php | 3.27 ▼0.09 | 34.69 ▼16.88 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.45 | 71.85 ▼27.87 |
Media Library /wp-admin/upload.php | 3.21 ▼0.02 | 27.70 ▼5.45 |
Server storage [IO: ▲0.97MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Country Based Restrictions for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲58 | 14.34 ▲0.21 | 1.86 ▲0.10 | 38.08 ▼0.21 |
Dashboard /wp-admin | 2,203 ▲26 | 5.62 ▲0.06 | 89.88 ▲0.61 | 43.58 ▲0.82 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.94 ▼0.00 | 38.94 ▼1.19 | 37.47 ▲0.49 |
Add New Post /wp-admin/post-new.php | 1,601 ▲75 | 23.35 ▲0.14 | 639.58 ▲23.42 | 36.92 ▼20.26 |
Media Library /wp-admin/upload.php | 1,399 ▲2 | 4.19 ▼0.06 | 95.68 ▼5.45 | 41.47 ▼0.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woo-product-country-base-restrictions/include/views/admin_message_panel.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% 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
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2 in woo-product-country-base-restrictions/assets to your readme.txt
- Donate link: Please fix this invalid URI: ""
woo-product-country-base-restrictions/woocommerce-product-country-base-restrictions.php 85% from 13 tests
The principal PHP file in "Country Based Restrictions for WooCommerce" v. 3.5 is loaded by WordPress automatically on each request
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.3" instead of "4.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-product-country-base-restrictions.php" instead of "woocommerce-product-country-base-restrictions.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
No dangerous file extensions were detected9,171 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 852 | 5,523 | 6,084 |
PHP | 9 | 273 | 525 | 1,515 |
PO File | 6 | 312 | 330 | 1,244 |
JavaScript | 4 | 44 | 18 | 287 |
SVG | 2 | 0 | 2 | 34 |
XML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 37.17 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 5 | 7.04% |
▷ Public methods | 69 | 97.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.82% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
10 PNG files occupy 0.16MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cev-icon.png | 18.66KB | 2.33KB | ▼ 87.50% |
assets/images/alp-icon.png | 26.99KB | 3.52KB | ▼ 86.96% |
assets/images/cbr-logo.png | 15.53KB | 7.99KB | ▼ 48.56% |
assets/images/cbr-icon.png | 29.03KB | 4.35KB | ▼ 85.02% |
assets/images/sre-icon.png | 18.92KB | 2.65KB | ▼ 85.98% |