Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.75ms] Passed 4 tests
A check of server-side resources used by 2Checkout Payment Gateway for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 36.95 ▼6.76 |
Dashboard /wp-admin | 3.42 ▲0.12 | 47.52 ▼4.71 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 47.50 ▲3.13 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 87.50 ▼0.64 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 33.97 ▲1.11 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by 2Checkout Payment Gateway for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.64 ▼0.66 | 4.26 ▲2.55 | 40.73 ▼3.03 |
Dashboard /wp-admin | 2,203 ▲12 | 5.81 ▲0.77 | 95.51 ▼7.87 | 38.89 ▼5.77 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.01 | 37.22 ▼2.05 | 33.81 ▼0.97 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.20 ▲5.68 | 659.11 ▼41.69 | 49.77 ▼9.12 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.19 ▲0.00 | 95.89 ▼5.02 | 41.18 ▼3.01 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woocommerce-2checkout-payment/inc/functions.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/woocommerce-2checkout-payment/woocommerce-2checkout-payment.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #5 is missing in woocommerce-2checkout-payment/assets to your readme.txt
woocommerce-2checkout-payment/woocommerce-2checkout-payment.php 92% from 13 tests
The principal PHP file in "2Checkout Payment Gateway for WooCommerce" v. 6.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.5" instead of "3.0.0")
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
There were no executable files found in this plugin548 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 192 | 96 | 527 |
CSS | 2 | 3 | 0 | 21 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/down_32.png | 4.15KB | 1.42KB | ▼ 65.73% |
images/delete_32.png | 4.37KB | 1.43KB | ▼ 67.31% |
images/2co_logo.png | 7.22KB | 3.04KB | ▼ 57.95% |
images/logo.png | 1.88KB | 1.02KB | ▼ 45.84% |
images/delete_16.png | 3.30KB | 0.54KB | ▼ 83.61% |