Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼140.36ms] Passed 4 tests
This is a short check of server-side resources used by 2Checkout Dynamic Payment Gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 31.70 ▲13.24 |
Dashboard /wp-admin | 3.10 ▲0.05 | 46.10 ▼0.23 |
Posts /wp-admin/edit.php | 3.15 ▲0.05 | 46.95 ▲2.03 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 85.62 ▼573.79 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 37.41 ▲10.55 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by 2Checkout Dynamic Payment Gateway for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.75 ▲0.15 | 7.84 ▼1.37 | 44.00 ▼3.47 |
Dashboard /wp-admin | 2,970 ▲39 | 5.93 ▼0.02 | 140.64 ▼6.70 | 112.84 ▼2.78 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 63.58 ▼3.95 | 89.96 ▲2.74 |
Add New Post /wp-admin/post-new.php | 1,615 ▼257 | 21.88 ▲2.82 | 272.56 ▼87.52 | 106.91 ▼0.42 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.04 ▲0.02 | 142.54 ▼8.23 | 114.27 ▼10.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocomm-2co-dynamic-payment-gateway/gateway-2Checkout.php:11
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add images for these screenshots: #1 (Plugin settings), #2 (Checkout page), #3 (Payment options)
woocomm-2co-dynamic-payment-gateway/gateway-2Checkout.php 92% from 13 tests
The entry point to "2Checkout Dynamic Payment Gateway for WooCommerce" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woocomm-2co-dynamic-payment-gateway.php" instead of "gateway-2Checkout.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin436 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 61 | 122 | 436 |
PHP code Passed 2 tests
Analyzing 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 | 9.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 4 | 13.79% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tj-wc2co_icons.png | 17.66KB | 5.94KB | ▼ 66.35% |
pm2co_icon.png | 11.89KB | 3.43KB | ▼ 71.18% |