Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.27ms] Passed 4 tests
This is a short check of server-side resources used by PayZen for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.11 ▼0.83 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.58 ▼21.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.30 ▼3.93 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.14 ▼6.54 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.95 ▼0.40 |
Server storage [IO: ▲1.95MB] [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 |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
PayZen for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲53 | 14.33 ▼0.38 | 2.20 ▲0.54 | 47.52 ▲3.20 |
Dashboard /wp-admin | 2,198 ▲24 | 5.61 ▲0.02 | 88.83 ▼12.49 | 39.70 ▼6.26 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▲0.00 | 39.47 ▲2.61 | 36.34 ▲1.85 |
Add New Post /wp-admin/post-new.php | 1,527 ▲1 | 22.99 ▼0.32 | 678.61 ▼36.37 | 51.74 ▼4.68 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▲0.03 | 107.07 ▲0.77 | 47.24 ▲0.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Interface 'Lyranetwork\\Payzen\\Sdk\\Refund\\Processor' not found in wp-content/plugins/woo-payzen-payment/includes/PayzenRefundProcessor.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #6 is missing in woo-payzen-payment/assets to your readme.txt
- Screenshots: Add an image for screenshot #1 (PayZen general configuration.)
woo-payzen-payment/woo-payzen-payment.php Passed 13 tests
"PayZen for WooCommerce" version 1.11.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
73 characters long description:
This plugin links your WordPress WooCommerce shop to the payment gateway.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected31,165 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 17,041 |
PHP | 38 | 2,090 | 2,064 | 9,102 |
PO File | 4 | 1,264 | 1,408 | 4,221 |
JavaScript | 19 | 114 | 161 | 544 |
Markdown | 2 | 50 | 0 | 233 |
CSS | 1 | 3 | 0 | 24 |
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.40 |
Average class complexity | 44.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 337.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 1 | 3.70% |
Methods | 378 | |
▷ Static methods | 59 | 15.61% |
▷ Public methods | 288 | 76.19% |
▷ Protected methods | 52 | 13.76% |
▷ Private methods | 38 | 10.05% |
Functions | 25 | |
▷ Named functions | 18 | 72.00% |
▷ Anonymous functions | 7 | 28.00% |
Constants | 30 | |
▷ Global constants | 2 | 6.67% |
▷ Class constants | 28 | 93.33% |
▷ Public constants | 28 | 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
7 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/klarna.png | 1.86KB | 1.90KB | 0.00% |
assets/images/other.png | 1.46KB | 0.86KB | ▼ 41.00% |
assets/images/franfinance.png | 3.42KB | 1.98KB | ▼ 42.14% |
assets/images/warn.png | 1.97KB | 1.50KB | ▼ 23.84% |
assets/images/payzen.png | 7.62KB | 2.66KB | ▼ 65.02% |