Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼5.04ms] Passed 4 tests
Analyzing server-side resources used by Integrate Unzer Direct payment gateway with wp eCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 39.68 ▲0.10 |
Dashboard /wp-admin | 3.57 ▲0.26 | 44.83 ▼8.31 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 47.70 ▼1.37 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 90.64 ▼10.59 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 36.53 ▲1.86 |
Unzer logs /wp-admin/tools.php?page=wpec-unzer-logs | 3.40 | 31.59 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Integrate Unzer Direct payment gateway with wp eCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.25 ▼1.52 | 1.86 ▲0.26 | 39.85 ▼7.09 |
Dashboard /wp-admin | 2,221 ▲30 | 5.90 ▲0.00 | 105.42 ▲2.93 | 41.54 ▲0.57 |
Posts /wp-admin/edit.php | 2,107 ▲15 | 2.03 ▲0.01 | 41.56 ▼12.25 | 34.59 ▼9.06 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.02 ▼0.31 | 588.55 ▼26.99 | 50.16 ▼4.04 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.18 ▼0.05 | 97.20 ▲1.73 | 40.70 ▼1.79 |
Unzer logs /wp-admin/tools.php?page=wpec-unzer-logs | 798 | 2.07 | 24.24 | 23.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WPEC_Unzer_API' not found in wp-content/plugins/wpec-unzer/includes/classes/api/wpec-unzer-api-transaction.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wpec-unzer/vendor/quickpay/quickpay-php-client/Tests/api/ResponseTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wpec-unzer/vendor/quickpay/quickpay-php-client/Tests/api/ExceptionTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'WPEC_Unzer_API_Transaction' not found in wp-content/plugins/wpec-unzer/includes/classes/api/wpec-unzer-api-payment.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpec-unzer/includes/functions.php:224
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpec-unzer/wpec-unzer.php:104
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wpec-unzer/vendor/quickpay/quickpay-php-client/Tests/api/RequestTest.php:9
- > 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 97% 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
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
wpec-unzer/wpec-unzer.php Passed 13 tests
The entry point to "Integrate Unzer Direct payment gateway with wp eCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
70 characters long description:
Integrates your Unzer payment gateway into your WP e-Commerce webshop.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,769 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 399 | 997 | 1,376 |
Markdown | 2 | 50 | 0 | 121 |
JavaScript | 1 | 16 | 2 | 102 |
JSON | 2 | 0 | 0 | 67 |
YAML | 2 | 6 | 0 | 45 |
CSS | 1 | 3 | 6 | 32 |
XML | 2 | 0 | 1 | 26 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 109 | |
▷ Static methods | 14 | 12.84% |
▷ Public methods | 104 | 95.41% |
▷ Protected methods | 3 | 2.75% |
▷ Private methods | 2 | 1.83% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/banner-772x250.png | 30.13KB | 12.87KB | ▼ 57.28% |