Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲4.97MB] [CPU: ▲24.68ms] Passed 4 tests
Analyzing server-side resources used by NOWPayments For WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.87 ▲5.41 | 68.56 ▲28.50 |
Dashboard /wp-admin | 8.89 ▲5.59 | 68.64 ▲19.49 |
Posts /wp-admin/edit.php | 8.89 ▲5.54 | 76.93 ▲30.70 |
Add New Post /wp-admin/post-new.php | 9.24 ▲3.35 | 105.89 ▲20.02 |
Media Library /wp-admin/upload.php | 8.89 ▲5.67 | 65.38 ▲31.83 |
NOWPayments for WooCommerce /wp-admin/admin.php?page=nowpayments-for-woocommerce | 8.89 | 62.54 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.89 | 59.44 |
Server storage [IO: ▲4.44MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 197 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
fs_debug_mode |
widget_theysaidso_widget |
fs_active_plugins |
theysaidso_admin_options |
fs_accounts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for NOWPayments For WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 13.24 ▼1.05 | 1.74 ▼0.05 | 32.64 ▼12.36 |
Dashboard /wp-admin | 2,238 ▲50 | 4.87 ▼0.00 | 107.90 ▼8.44 | 45.35 ▼2.55 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.01 ▼0.04 | 42.94 ▲4.46 | 38.46 ▲3.64 |
Add New Post /wp-admin/post-new.php | 1,528 ▼10 | 23.32 ▲0.18 | 690.62 ▲32.41 | 48.91 ▼2.51 |
Media Library /wp-admin/upload.php | 1,420 ▲29 | 4.29 ▲0.10 | 95.59 ▼9.13 | 46.23 ▼2.67 |
NOWPayments for WooCommerce /wp-admin/admin.php?page=nowpayments-for-woocommerce | 973 | 1.71 | 25.56 | 59.39 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,065 | 2.20 | 23.66 | 28.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/nowpayments-for-woocommerce/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- fs_debug_mode
- widget_recent-comments
- theysaidso_admin_options
- fs_accounts
- widget_recent-posts
- can_compress_scripts
- fs_active_plugins
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/nowpayments-for-woocommerce/includes/class-gateway.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Screenshots: Add descriptions for screenshots #2, #3, #4, #5 in nowpayments-for-woocommerce/assets to your readme.txt
nowpayments-for-woocommerce/nowpayments-for-woocommerce.php Passed 13 tests
The principal PHP file in "NOWPayments For WooCommerce" v. 1.1 is loaded by WordPress automatically on each request
63 characters long description:
Allow WooCommerce user to checkout with 150+ crypto currencies.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected71,181 lines of code in 152 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 36,650 |
PHP | 126 | 8,108 | 17,507 | 33,807 |
Markdown | 2 | 91 | 0 | 417 |
JavaScript | 7 | 46 | 71 | 273 |
Bourne Shell | 1 | 4 | 3 | 21 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 86.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 1 | 2.00% |
Methods | 1,282 | |
▷ Static methods | 198 | 15.44% |
▷ Public methods | 892 | 69.58% |
▷ Protected methods | 17 | 1.33% |
▷ Private methods | 373 | 29.10% |
Functions | 101 | |
▷ Named functions | 101 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/nowpayments-for-woocommerce.png | 8.44KB | 2.76KB | ▼ 67.31% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/images/icon.png | 7.99KB | 4.25KB | ▼ 46.79% |