Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.08ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Transact Payment Gateway
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.74 ▼3.16 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.74 ▼3.71 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.81 ▼5.41 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 99.38 ▲1.12 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.90 ▼0.05 |
Server storage [IO: ▲0.31MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Transact Payment Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.26 ▼0.96 | 2.01 ▲0.35 | 44.81 ▼0.51 |
Dashboard /wp-admin | 2,211 ▲23 | 5.80 ▲0.89 | 103.47 ▼3.12 | 38.57 ▼5.14 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.02 | 39.91 ▼1.54 | 34.97 ▲0.00 |
Add New Post /wp-admin/post-new.php | 1,538 ▲4 | 23.22 ▲0.28 | 614.93 ▼11.71 | 50.81 ▼0.35 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.22 ▼0.03 | 94.67 ▼2.44 | 40.28 ▼1.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined index: action in wp-content/plugins/woo-transact-io-gateway/vendors/transact-io-php/demo/demo-api.php on line 119
- > PHP Notice
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 79% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (order example), #2 (Transact keys), #3 (In wordpress configure your keys)
woo-transact-io-gateway/woocommerce-gateway-transact.php 69% from 13 tests
The main file in "WooCommerce Transact Payment Gateway" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("woo-transact-io-gateway.php" instead of "woocommerce-gateway-transact.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Requires at least: The required version number must match the one declared in readme.txt ("4.5" instead of "4.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,605 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 326 | 513 | 1,055 |
HTML | 1 | 45 | 2 | 199 |
Markdown | 3 | 51 | 0 | 165 |
JSON | 4 | 0 | 0 | 102 |
XML | 1 | 0 | 0 | 77 |
YAML | 1 | 3 | 1 | 7 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 14 | 20.59% |
▷ Public methods | 61 | 89.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 10.29% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.25MB with 0.18MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 67.09KB | 24.96KB | ▼ 62.80% |
icon.png | 15.09KB | 0.74KB | ▼ 95.09% |
assets/screenshot-2.png | 103.59KB | 43.35KB | ▼ 58.15% |
assets/screenshot-1.png | 73.77KB | 26.77KB | ▼ 63.71% |