Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲4.67MB] [CPU: ▲12.23ms] 75% from 4 tests
Server-side resources used by Choice Payment Gateway for WooCommerce
Please fix the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,633.17ms on /wp-admin/admin.php?page=choice-payment-gateway-for-woocommerce)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.53 ▲5.07 | 52.74 ▲16.06 |
Dashboard /wp-admin | 8.55 ▲5.25 | 66.24 ▲19.80 |
Posts /wp-admin/edit.php | 8.55 ▲5.20 | 64.76 ▲17.06 |
Add New Post /wp-admin/post-new.php | 9.05 ▲3.17 | 99.83 ▼4.02 |
Media Library /wp-admin/upload.php | 8.55 ▲5.32 | 60.71 ▲27.77 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.55 | 61.08 |
Choice Payment Gateway for WooCommerce /wp-admin/admin.php?page=choice-payment-gateway-for-woocommerce | 8.55 | 1,633.17 |
Server storage [IO: ▲3.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 243 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
fs_accounts |
widget_recent-posts |
widget_recent-comments |
fs_gdpr |
can_compress_scripts |
theysaidso_admin_options |
fs_debug_mode |
fs_active_plugins |
db_upgraded |
Browser metrics Passed 4 tests
Choice Payment Gateway for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,486 ▼285 | 13.36 ▼1.02 | 0.46 ▼1.61 | 8.13 ▼32.81 |
Dashboard /wp-admin | 2,230 ▲39 | 4.86 ▼0.04 | 107.48 ▲5.94 | 41.18 ▼2.33 |
Posts /wp-admin/edit.php | 2,110 ▲24 | 2.00 ▼0.04 | 36.31 ▲2.71 | 33.52 ▲1.02 |
Add New Post /wp-admin/post-new.php | 1,531 ▼5 | 18.15 ▼5.06 | 636.73 ▼8.39 | 63.01 ▲4.10 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.24 ▼0.03 | 98.61 ▼7.97 | 48.24 ▲0.90 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,053 | 1.68 | 24.03 | 28.81 |
Choice Payment Gateway for WooCommerce /wp-admin/admin.php?page=choice-payment-gateway-for-woocommerce | 999 | 1.69 | 27.28 | 49.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/choice-payment-gateway-for-woocommerce/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 10 options
- fs_active_plugins
- db_upgraded
- fs_debug_mode
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- fs_gdpr
- theysaidso_admin_options
- fs_accounts
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
Everything seems fine, however this is by no means 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
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Defuse\\Crypto\\Crypto' not found in wp-content/plugins/choice-payment-gateway-for-woocommerce/vendor/defuse/php-encryption/src/RuntimeTests.php:14
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/choice-payment-gateway-for-woocommerce/classes/WC_Gateway_Choice_Subscription.php:6
- > PHP Fatal error
Uncaught Error: Class 'Defuse\\Crypto\\Exception\\CryptoException' not found in wp-content/plugins/choice-payment-gateway-for-woocommerce/vendor/defuse/php-encryption/src/Exception/WrongKeyOrModifiedCiphertextException.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/choice-payment-gateway-for-woocommerce/templates/payment-fields.php:2
- > PHP Fatal error
Uncaught Error: Class 'Defuse\\Crypto\\Exception\\CryptoException' not found in wp-content/plugins/choice-payment-gateway-for-woocommerce/vendor/defuse/php-encryption/src/Exception/BadFormatException.php:5
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_Choice_Paynt' not found in wp-content/plugins/choice-payment-gateway-for-woocommerce/classes/class-wc-gateway-choice-subscription.php:8
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_Choice_BankClearing' not found in wp-content/plugins/choice-payment-gateway-for-woocommerce/classes/WC_Gateway_Choice_BankClearing_Subscriptions.php:17
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/choice-payment-gateway-for-woocommerce/classes/class-wc-gateway-choice-paynt.php:29
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/choice-payment-gateway-for-woocommerce/templates/payment-fields-ach.php:2
- > PHP Fatal error
Uncaught UnexpectedValueException: creating archive "wp-content/plugins/choice-payment-gateway-for-woocommerce/vendor/paragonie/random_compat/dist/random_compat.phar" disabled by the php.ini setting phar.readonly in /var/www/wordpress/wp-content/plugins/choice-payment-gateway-for-woocommerce/vendor/paragonie/random_compat/other/build_phar.php:12
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: woocommerce payment, payment processing, choice woocommerce, cash discount, ach
choice-payment-gateway-for-woocommerce/woo-choice-payment-gateway.php 92% from 13 tests
This is the main PHP file of "Choice Payment Gateway for WooCommerce" version 2.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("choice-payment-gateway-for-woocommerce.php" instead of "woo-choice-payment-gateway.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected37,533 lines of code in 191 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 152 | 8,257 | 17,757 | 34,953 |
Markdown | 13 | 639 | 0 | 1,681 |
JavaScript | 4 | 91 | 80 | 540 |
JSON | 6 | 0 | 0 | 254 |
CSS | 12 | 1 | 1 | 39 |
make | 1 | 9 | 4 | 26 |
XML | 1 | 0 | 0 | 19 |
SVG | 1 | 0 | 1 | 18 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 62.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 74 | |
▷ Abstract classes | 2 | 2.70% |
▷ Concrete classes | 72 | 97.30% |
▷ Final classes | 7 | 9.72% |
Methods | 1,363 | |
▷ Static methods | 255 | 18.71% |
▷ Public methods | 991 | 72.71% |
▷ Protected methods | 29 | 2.13% |
▷ Private methods | 343 | 25.17% |
Functions | 96 | |
▷ Named functions | 95 | 98.96% |
▷ Anonymous functions | 1 | 1.04% |
Constants | 188 | |
▷ Global constants | 99 | 52.66% |
▷ Class constants | 89 | 47.34% |
▷ Public constants | 89 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |