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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.86ms] Passed 4 tests
A check of server-side resources used by GazChap's WooCommerce Purchase Order Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.78 ▲1.78 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.34 ▼7.33 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 41.65 ▼3.24 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.23 ▼13.17 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 30.79 ▼3.69 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GazChap's WooCommerce Purchase Order Payment Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.03 | 1.92 ▲0.14 | 44.49 ▼0.26 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▲0.09 | 81.87 ▼6.71 | 36.71 ▼8.41 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.04 | 37.20 ▲1.92 | 32.74 ▼3.87 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 22.97 ▼0.09 | 626.47 ▼41.62 | 66.15 ▲9.02 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.17 ▼0.03 | 96.76 ▲3.27 | 38.89 ▼3.35 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: offline, invoice, gateway, ecommerce, payment...
gazchaps-woocommerce-purchase-order-payment-gateway/index.php 85% from 13 tests
The main PHP script in "GazChap's WooCommerce Purchase Order Payment Gateway" version 3.1 is automatically included on every request by WordPress
The following require your attention:
- Requires at least: The required version number must match the one declared in readme.txt ("4.2.0" instead of "3.0.0")
- Main file name: Name the main plugin file the same as the plugin slug ("gazchaps-woocommerce-purchase-order-payment-gateway.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected800 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 79 | 39 | 550 |
PO File | 2 | 110 | 150 | 248 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 47.33 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 6.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
There were not PNG files found in your plugin