Benchmarks
Plugin footprint 65% 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.00MB] [CPU: ▼12.42ms] Passed 4 tests
Server-side resources used by Jenga Payment Gateway for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.19 ▲2.76 |
Dashboard /wp-admin | 3.31 ▼0.03 | 48.22 ▼19.96 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.19 ▼10.08 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.09 ▼16.30 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.68 ▼3.35 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_jpgw_trx |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
trx_db_version |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Jenga Payment Gateway for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.30 ▲0.03 | 4.80 ▼1.16 | 40.53 ▼5.01 |
Dashboard /wp-admin | 2,221 ▲15 | 5.92 ▲0.86 | 98.82 ▼7.03 | 37.74 ▼7.37 |
Posts /wp-admin/edit.php | 2,099 ▼1 | 2.06 ▲0.08 | 38.07 ▼4.83 | 40.87 ▲3.34 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.48 ▲5.85 | 619.30 ▼77.40 | 65.90 ▲7.58 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.30 ▲0.04 | 100.39 ▼11.34 | 45.52 ▼1.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 1 table in the database
- wp_jpgw_trx
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- trx_db_version
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
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
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
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-jenga-payment-gateway/includes/menu.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woo-jenga-payment-gateway/jenga-payment-gateway-woocommerce.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/woo-jenga-payment-gateway/includes/jpgwpayments.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (settings), #2 (place-order.png), #3 (payment-instructions.png), #4 (checkout.png), #5 (payment-details.png)
- Requires at least: The plugin version is formatted incorrectly
woo-jenga-payment-gateway/jenga-payment-gateway.php 85% from 13 tests
The main PHP script in "Jenga Payment Gateway for WooCommerce" version 3.0.5 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 161 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("woo-jenga-payment-gateway.php" instead of "jenga-payment-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected640 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 293 | 120 | 640 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 28 | |
▷ Static methods | 4 | 14.29% |
▷ Public methods | 27 | 96.43% |
▷ Protected methods | 1 | 3.57% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) jpwpesa.png | 19.28KB | 0.00KB | ▼ 100.00% |