Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.92MB] [CPU: ▼1.67ms] Passed 4 tests
An overview of server-side resources used by Price Based on Country for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.18 ▲0.72 | 42.81 ▲0.78 |
Dashboard /wp-admin | 4.35 ▲1.00 | 50.22 ▼12.46 |
Posts /wp-admin/edit.php | 4.40 ▲1.04 | 50.84 ▲5.54 |
Add New Post /wp-admin/post-new.php | 6.87 ▲0.98 | 92.29 ▼0.53 |
Media Library /wp-admin/upload.php | 4.21 ▲0.98 | 40.96 ▲8.79 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 119 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
_wcpay_feature_customer_multi_currency |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Price Based on Country for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲40 | 14.37 ▲0.23 | 1.69 ▲0.08 | 36.07 ▼7.68 |
Dashboard /wp-admin | 2,210 ▲33 | 5.62 ▼0.02 | 94.11 ▲0.91 | 44.09 ▲3.59 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.01 ▲0.03 | 40.78 ▲1.10 | 37.85 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,538 ▲9 | 23.25 ▼0.17 | 670.98 ▲82.73 | 59.89 ▲8.78 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.18 ▲0.02 | 96.46 ▼3.60 | 42.54 ▼0.25 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- _wcpay_feature_customer_multi_currency
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WooCommerce\\PayPalCommerce\\ApiClient\\ApiModule' not found in wp-content/plugins/woocommerce-product-price-based-on-countries/includes/integrations/paypal-payments/class-wcpbc-paypal-api-client-module.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: dynamic price, dynamic price based country, woocommerce, country-targeted pricing, price by country...
woocommerce-product-price-based-on-countries/woocommerce-product-price-based-on-countries.php 92% from 13 tests
The entry point to "Price Based on Country for WooCommerce" version 3.4.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.8" instead of "4.0")
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 plugin11,574 lines of code in 113 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 72 | 1,904 | 3,724 | 8,216 |
CSS | 18 | 242 | 63 | 1,247 |
PO File | 3 | 373 | 444 | 1,163 |
JavaScript | 20 | 222 | 212 | 948 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 24.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 48 | 100.00% |
▷ Final classes | 1 | 2.08% |
Methods | 465 | |
▷ Static methods | 333 | 71.61% |
▷ Public methods | 342 | 73.55% |
▷ Protected methods | 49 | 10.54% |
▷ Private methods | 74 | 15.91% |
Functions | 44 | |
▷ Named functions | 39 | 88.64% |
▷ Anonymous functions | 5 | 11.36% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin