Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/icepay-online-payment-plugin-for-wp-ecommerce/icepay.php+34
require_once(wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-functions.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.99ms] Passed 4 tests
A check of server-side resources used by ICEPAY WP e-Commerce Online Payment plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.42 ▼9.05 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.05 ▼1.54 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.33 ▼0.36 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.38 ▼5.02 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.03 ▲4.52 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by ICEPAY WP e-Commerce Online Payment plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.69 ▲0.47 | 1.67 ▼3.59 | 40.63 ▼3.70 |
Dashboard /wp-admin | 2,209 ▲18 | 5.85 ▲0.97 | 100.14 ▼0.64 | 40.72 ▲0.66 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.03 ▲0.02 | 39.79 ▲5.08 | 35.78 ▲0.99 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.14 ▲0.09 | 673.55 ▲79.90 | 52.58 ▼1.23 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.25 ▲0.03 | 97.67 ▲1.69 | 42.01 ▲0.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
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
Good news, no errors were detected
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
Please take a closer look at the following
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Icepay_Paymentmethod' not found in wp-content/plugins/icepay-online-payment-plugin-for-wp-ecommerce/api/paymentmethods/paypal.php:13
- > PHP Fatal error
Uncaught Error: Class 'Icepay_Paymentmethod' not found in wp-content/plugins/icepay-online-payment-plugin-for-wp-ecommerce/api/paymentmethods/wire.php:13
- > PHP Warning
require_once(wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-functions.php): failed to open stream: No such file or directory in wp-content/plugins/icepay-online-payment-plugin-for-wp-ecommerce/icepay.php on line 34
- > PHP Fatal error
Uncaught Error: Class 'Icepay_Paymentmethod' not found in wp-content/plugins/icepay-online-payment-plugin-for-wp-ecommerce/api/paymentmethods/ddebit.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/icepay-online-payment-plugin-for-wp-ecommerce/templates/admin.php:1
- > PHP Fatal error
Uncaught Error: Class 'Icepay_Paymentmethod' not found in wp-content/plugins/icepay-online-payment-plugin-for-wp-ecommerce/api/paymentmethods/mistercash.php:13
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/icepay-online-payment-plugin-for-wp-ecommerce/icepay.php on line 34
- > PHP Fatal error
Uncaught Error: Class 'Icepay_Paymentmethod' not found in wp-content/plugins/icepay-online-payment-plugin-for-wp-ecommerce/api/paymentmethods/paysafecard.php:13
- > PHP Fatal error
Uncaught Error: Class 'Icepay_Paymentmethod' not found in wp-content/plugins/icepay-online-payment-plugin-for-wp-ecommerce/api/paymentmethods/creditcard.php:13
- > PHP Fatal error
Uncaught Error: Class 'Icepay_Paymentmethod' not found in wp-content/plugins/icepay-online-payment-plugin-for-wp-ecommerce/api/paymentmethods/ideal.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Too many tags (29 tag instead of maximum 10); only the first 5 tags are used in your directory listing
icepay-online-payment-plugin-for-wp-ecommerce/icepay.php 92% from 13 tests
The main PHP script in "ICEPAY WP e-Commerce Online Payment plugin" version 2.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("icepay-online-payment-plugin-for-wp-ecommerce.php" instead of "icepay.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,230 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 937 | 2,078 | 2,966 |
PO File | 2 | 71 | 73 | 197 |
CSS | 1 | 11 | 0 | 47 |
JavaScript | 1 | 1 | 0 | 20 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 10.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 40 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 304 | |
▷ Static methods | 31 | 10.20% |
▷ Public methods | 274 | 90.13% |
▷ Protected methods | 17 | 5.59% |
▷ Private methods | 13 | 4.28% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
34 PNG files occupy 0.18MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ideal.png | 3.90KB | 2.25KB | ▼ 42.26% |
assets/images/phone.png | 5.08KB | 2.87KB | ▼ 43.54% |
assets/images/icepay-logo.png | 3.95KB | 3.68KB | ▼ 6.70% |
assets/images/creditcard.png | 2.61KB | 1.83KB | ▼ 29.60% |
assets/images/icepaybasic_paynow.png | 2.58KB | 1.80KB | ▼ 30.13% |