Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.97MB] [CPU: ▲22.65ms] Passed 4 tests
A check of server-side resources used by Country Based Payments for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.89 ▲5.43 | 70.02 ▲32.39 |
Dashboard /wp-admin | 8.91 ▲5.61 | 68.38 ▲21.43 |
Posts /wp-admin/edit.php | 8.91 ▲5.55 | 69.90 ▲23.05 |
Add New Post /wp-admin/post-new.php | 9.19 ▲3.29 | 104.71 ▲13.71 |
Media Library /wp-admin/upload.php | 8.91 ▲5.68 | 70.02 ▲34.55 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.91 | 58.72 |
Server storage [IO: ▲4.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 231 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
fs_debug_mode |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
fs_active_plugins |
fs_accounts |
Browser metrics Passed 4 tests
Country Based Payments for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.34 ▼0.03 | 1.81 ▲0.09 | 31.13 ▼13.62 |
Dashboard /wp-admin | 2,209 ▲32 | 5.53 ▼0.07 | 82.05 ▼24.64 | 40.47 ▼3.64 |
Posts /wp-admin/edit.php | 2,118 ▲15 | 1.99 ▲0.02 | 35.78 ▼6.10 | 36.43 ▲6.86 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.16 ▲5.01 | 692.98 ▲24.90 | 59.36 ▼7.66 |
Media Library /wp-admin/upload.php | 1,417 ▲20 | 4.23 ▼0.19 | 98.49 ▼9.75 | 43.90 ▼4.50 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,054 | 1.69 | 25.34 | 26.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/woocommerce-country-based-payments/includes/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_theysaidso_widget
- fs_debug_mode
- widget_recent-comments
- fs_accounts
- theysaidso_admin_options
- can_compress_scripts
- fs_active_plugins
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
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)
No browser errors were detected
Optimizations
Plugin configuration 93% 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
6 plugin tags: countries, payment gateway, woocommerce, country payment, payment gateways...
woocommerce-country-based-payments/woocommerce-country-based-payments.php 85% from 13 tests
The entry point to "Country Based Payments for WooCommerce" version 1.4.4.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "4.0")
Code Analysis 97% from 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 plugin48,712 lines of code in 182 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 121 | 8,035 | 17,363 | 33,595 |
PO File | 10 | 5,550 | 6,667 | 12,010 |
Sass | 28 | 399 | 77 | 2,515 |
JavaScript | 4 | 54 | 99 | 301 |
Markdown | 2 | 82 | 0 | 239 |
JSON | 2 | 0 | 0 | 37 |
CSS | 15 | 0 | 0 | 15 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 89.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 2 | 4.00% |
▷ Concrete classes | 48 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,270 | |
▷ Static methods | 197 | 15.51% |
▷ Public methods | 881 | 69.37% |
▷ Protected methods | 17 | 1.34% |
▷ Private methods | 372 | 29.29% |
Functions | 100 | |
▷ Named functions | 100 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 145 | |
▷ Global constants | 98 | 67.59% |
▷ Class constants | 47 | 32.41% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
includes/freemius/assets/img/woocommerce-country-based-payments.png | 9.16KB | 5.26KB | ▼ 42.58% |
includes/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |