Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.66MB] [CPU: ▲0.80ms] Passed 4 tests
This is a short check of server-side resources used by ICEPAY WordPress WooCommerce Online Payment plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.64 | 47.35 ▲2.53 |
Dashboard /wp-admin | 4.01 ▲0.70 | 52.99 ▼0.97 |
Posts /wp-admin/edit.php | 4.06 ▲0.70 | 56.50 ▲4.61 |
Add New Post /wp-admin/post-new.php | 6.53 ▲0.64 | 98.00 ▼2.98 |
Media Library /wp-admin/upload.php | 3.87 ▲0.64 | 47.70 ▲11.32 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 81 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ICEPAY WordPress WooCommerce Online Payment plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.12 | 1.92 ▲0.21 | 45.60 ▲1.91 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.04 | 91.54 ▼8.21 | 37.92 ▼6.28 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▼0.03 | 42.30 ▲5.85 | 37.08 ▲3.93 |
Add New Post /wp-admin/post-new.php | 1,526 ▲120 | 23.10 ▲5.06 | 651.24 ▲17.84 | 50.66 ▲9.20 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▲0.02 | 98.25 ▼3.72 | 43.75 ▼3.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% 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 0% 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/icepay-woocommerce-online-payment-module/templates/admin.php
- > /wp-content/plugins/icepay-woocommerce-online-payment-module/templates/admin_paymentmethod.php
- 26× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ICEPAY_Paymentmethod_Core' not found in wp-content/plugins/icepay-woocommerce-online-payment-module/classes/placeholder/paymentmethod4.php:3
- > PHP Fatal error
Uncaught Error: Class 'Icepay_Paymentmethod' not found in wp-content/plugins/icepay-woocommerce-online-payment-module/api/api/paymentmethods/directebank.php:3
- > PHP Fatal error
Uncaught Error: Class 'Icepay_Paymentmethod' not found in wp-content/plugins/icepay-woocommerce-online-payment-module/api/api/paymentmethods/creditcard.php:3
- > PHP Fatal error
Uncaught Error: Class 'ICEPAY_Paymentmethod_Core' not found in wp-content/plugins/icepay-woocommerce-online-payment-module/classes/placeholder/paymentmethod3.php:3
- > PHP Fatal error
Uncaught Error: Class 'Icepay_Paymentmethod' not found in wp-content/plugins/icepay-woocommerce-online-payment-module/api/api/paymentmethods/paysafecard.php:3
- > PHP Fatal error
Uncaught Error: Class 'ICEPAY_Paymentmethod_Core' not found in wp-content/plugins/icepay-woocommerce-online-payment-module/classes/placeholder/paymentmethod5.php:3
- > PHP Fatal error
Uncaught Error: Class 'ICEPAY_Paymentmethod_Core' not found in wp-content/plugins/icepay-woocommerce-online-payment-module/classes/placeholder/paymentmethod7.php:3
- > PHP Fatal error
Uncaught Error: Class 'Icepay_Paymentmethod' not found in wp-content/plugins/icepay-woocommerce-online-payment-module/api/api/paymentmethods/paypal.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/icepay-woocommerce-online-payment-module/icepay.php:19
- > PHP Fatal error
Uncaught Error: Class 'ICEPAY_Paymentmethod_Core' not found in wp-content/plugins/icepay-woocommerce-online-payment-module/classes/placeholder/paymentmethod1.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 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 29 tag instead of maximum 10
icepay-woocommerce-online-payment-module/icepay.php 92% from 13 tests
The main file in "ICEPAY WordPress WooCommerce Online Payment plugin" v. 2.3.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("icepay-woocommerce-online-payment-module.php" instead of "icepay.php")
Code Analysis Passed 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
There were no executable files found in this plugin4,168 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 1,048 | 2,149 | 3,599 |
PO File | 3 | 161 | 171 | 465 |
JavaScript | 1 | 11 | 0 | 49 |
Markdown | 2 | 13 | 0 | 40 |
CSS | 1 | 2 | 0 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 7.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 57 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 348 | |
▷ Static methods | 40 | 11.49% |
▷ Public methods | 312 | 89.66% |
▷ Protected methods | 15 | 4.31% |
▷ Private methods | 21 | 6.03% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 4 | 23.53% |
▷ Class constants | 13 | 76.47% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
34 PNG files occupy 0.18MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/mastercard.png | 5.14KB | 2.56KB | ▼ 50.16% |
assets/images/dankort.png | 3.29KB | 2.05KB | ▼ 37.73% |
assets/images/icepaybasic_paynow.png | 2.58KB | 1.80KB | ▼ 30.13% |
assets/images/visa.png | 2.88KB | 1.84KB | ▼ 36.00% |
assets/images/diners-club-international.png | 5.33KB | 2.74KB | ▼ 48.52% |