Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.49ms] Passed 4 tests
A check of server-side resources used by CartGateway Payment Gateway for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 40.08 ▼10.07 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.83 ▼0.93 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 53.73 ▲0.51 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.45 ▼1.98 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.48 ▼0.99 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
CartGateway Payment Gateway for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.72 ▲0.77 | 1.79 ▼0.24 | 44.38 ▼1.30 |
Dashboard /wp-admin | 2,198 ▲18 | 5.47 ▼0.19 | 82.72 ▼17.55 | 40.99 ▼2.66 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.96 ▼0.01 | 40.34 ▲1.61 | 37.51 ▲2.22 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.17 ▼0.05 | 665.89 ▼23.39 | 49.14 ▼27.40 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.22 ▼0.04 | 99.14 ▼7.89 | 45.57 ▼0.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: payment gateway, cartgateway, cartgateway plugin, woocommerce payment gateway, cartgateway payment...
cart-gateway/cart_gateway.php 85% from 13 tests
The principal PHP file in "CartGateway Payment Gateway for WooCommerce" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 392 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cart-gateway.php" instead of "cart_gateway.php")
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
Success! There were no dangerous files found in this plugin597 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 92 | 209 | 556 |
Markdown | 1 | 22 | 0 | 38 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 20.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 5 | 14.29% |
▷ Public methods | 31 | 88.57% |
▷ Protected methods | 1 | 2.86% |
▷ Private methods | 3 | 8.57% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/jcb.png | 1.05KB | 0.76KB | ▼ 27.31% |
assets/img/amex.png | 2.19KB | 1.75KB | ▼ 20.33% |
assets/img/dinersclub.png | 1.27KB | 1.17KB | ▼ 8.22% |
assets/img/visa.png | 1.25KB | 1.29KB | 0.00% |
assets/img/cart_gateway.png | 9.46KB | 2.22KB | ▼ 76.59% |