Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.90ms] Passed 4 tests
An overview of server-side resources used by Payment Gateway - 2Checkout for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.97 ▼0.60 |
Dashboard /wp-admin | 3.35 ▲0.01 | 45.03 ▼12.45 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 45.67 ▼0.39 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 88.07 ▼10.16 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.51 ▲0.28 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Payment Gateway - 2Checkout for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.54 ▼1.21 | 1.88 ▲0.18 | 46.13 ▲4.95 |
Dashboard /wp-admin | 2,218 ▲27 | 4.87 ▲0.00 | 109.90 ▲2.90 | 44.70 ▼1.01 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.04 ▲0.04 | 39.77 ▼0.84 | 36.24 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,542 ▲15 | 22.75 ▼0.40 | 634.89 ▼9.72 | 55.05 ▲6.56 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.22 ▲0.03 | 100.14 ▲5.21 | 43.28 ▲0.77 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
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 no errors were found, this is by no means an exhaustive test
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 fix the following items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woo-2checkout/includes/functions.php
- > /wp-content/plugins/woo-2checkout/includes/class-woo-2checkout-gateway-api.php
- > /wp-content/plugins/woo-2checkout/includes/class-woo-2checkout-gateway.php
- > /wp-content/plugins/woo-2checkout/woo-2checkout.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: 2checkout, woocommerce payment gateway, 2checkout payment gateway, payment gateway, 2checkout for woocommerce
woo-2checkout/woo-2checkout.php Passed 13 tests
The main PHP script in "Payment Gateway - 2Checkout for WooCommerce" version 2.0.7 is automatically included on every request by WordPress
68 characters long description:
2Checkout Payment Gateway for WooCommerce. Requires WooCommerce 5.5+
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,622 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 313 | 104 | 1,042 |
SVG | 2 | 0 | 2 | 580 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 42.67 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 74 | |
▷ Static methods | 4 | 5.41% |
▷ Public methods | 72 | 97.30% |
▷ Protected methods | 1 | 1.35% |
▷ Private methods | 1 | 1.35% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 15 | |
▷ Global constants | 11 | 73.33% |
▷ Class constants | 4 | 26.67% |
▷ Public constants | 4 | 100.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
There are no PNG files in this plugin