Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.21MB] [CPU: ▼7.22ms] Passed 4 tests
Server-side resources used by GunTab Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 40.27 ▼0.53 |
Dashboard /wp-admin | 3.57 ▲0.22 | 46.90 ▼16.04 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 49.24 ▲0.79 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 81.75 ▼13.10 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.98 ▲5.05 |
Settings /wp-admin/admin.php?page=guntab-settings | 3.46 | 34.73 |
Log /wp-admin/admin.php?page=guntab-log | 3.39 | 33.14 |
Tools /wp-admin/admin.php?page=guntab-tools | 3.41 | 32.79 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- You have illegally modified 1 file (0.02KB) outside of "wp-content/plugins/guntab-payment-gateway/" and "wp-content/uploads/"
- (new file) wp-content/dragon-config/dragon.php
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
guntab_webhook_key |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for GunTab Payment Gateway
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲206 | 13.59 ▼0.78 | 5.47 ▲3.63 | 43.15 ▲0.24 |
Dashboard /wp-admin | 2,244 ▲56 | 5.84 ▲0.89 | 99.52 ▼16.55 | 38.25 ▼9.41 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.03 ▼0.02 | 39.41 ▲2.21 | 35.17 ▼2.78 |
Add New Post /wp-admin/post-new.php | 1,568 ▲49 | 18.23 ▼4.75 | 633.52 ▲51.26 | 59.46 ▲13.38 |
Media Library /wp-admin/upload.php | 1,426 ▲41 | 4.21 ▲0.01 | 96.39 ▼6.21 | 44.51 ▲0.95 |
Settings /wp-admin/admin.php?page=guntab-settings | 950 | 2.05 | 23.60 | 30.98 |
Log /wp-admin/admin.php?page=guntab-log | 851 | 2.02 | 22.26 | 25.08 |
Tools /wp-admin/admin.php?page=guntab-tools | 820 | 2.03 | 24.13 | 28.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- guntab_webhook_key
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=guntab-log
- > Warning in wp-content/plugins/guntab-payment-gateway/vendor/guntab/dragon-framework/src/Pages/AdminLog.php+16
file_get_contents(wp-content/plugins/guntab-payment-gateway/plugin.log): failed to open stream: No such file or directory
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/guntab-payment-gateway/tests/bootstrap.php
- 44× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Dragon\\Hooking\\FrontEndPluginHooks' not found in wp-content/plugins/guntab-payment-gateway/app/FrontEndPluginHooks.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/guntab-payment-gateway/vendor/guntab/dragon-framework/src/Abstracts/WidgetAbstract.php:5
- > PHP Notice
Undefined variable: pageData in wp-content/plugins/guntab-payment-gateway/vendor/guntab/dragon-framework/resources/views/Table/AdminTable.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Dragon\\Abstracts\\PageAbstract' not found in wp-content/plugins/guntab-payment-gateway/vendor/guntab/dragon-framework/src/Abstracts/OptionsAbstract.php:13
- > PHP Fatal error
Uncaught Error: Class 'Dragon\\Abstracts\\ArrayDotFileAbstract' not found in wp-content/plugins/guntab-payment-gateway/vendor/guntab/dragon-framework/src/ConfigFile.php:7
- > PHP Fatal error
Uncaught Error: Class 'GunTab\\Api\\GunTab\\Abstracts\\Invoice' not found in wp-content/plugins/guntab-payment-gateway/app/Api/GunTab/RequestObjects/Invoice.php:7
- > PHP Warning
array_key_exists() expects parameter 2 to be array, unknown given in wp-content/plugins/guntab-payment-gateway/vendor/guntab/dragon-framework/resources/views/Table/Details.php on line 9
- > PHP Fatal error
Uncaught RuntimeException: vendor/autoload.php could not be found. Did you run `php composer.phar install`? in wp-content/plugins/guntab-payment-gateway/vendor/bin/doctrine-dbal.php:22
- > PHP Notice
Undefined variable: pageData in wp-content/plugins/guntab-payment-gateway/vendor/guntab/dragon-framework/resources/views/Table/Details.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/guntab-payment-gateway/vendor/guntab/dragon-framework/tests/ConfigTest.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% 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
6 plugin tags: escrow, ammo, firearms, ammunition, payments...
guntab-payment-gateway/guntab-gateway.php 69% from 13 tests
The main PHP script in "GunTab Payment Gateway" version 0.1.6 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Requires PHP: The required version number must match the one declared in readme.txt ("7.0" instead of "7.2")
- Description: Keep the plugin description shorter than 140 characters (currently 152 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("guntab-payment-gateway.php" instead of "guntab-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin43,526 lines of code in 98 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 89 | 39,620 | 25,462 | 43,106 |
CSS | 1 | 26 | 0 | 147 |
Bourne Shell | 2 | 22 | 11 | 125 |
JSON | 3 | 0 | 0 | 81 |
JavaScript | 2 | 10 | 1 | 43 |
XML | 1 | 0 | 0 | 24 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 5.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 74 | |
▷ Abstract classes | 13 | 17.57% |
▷ Concrete classes | 61 | 82.43% |
▷ Final classes | 0 | 0.00% |
Methods | 272 | |
▷ Static methods | 167 | 61.40% |
▷ Public methods | 180 | 66.18% |
▷ Protected methods | 30 | 11.03% |
▷ Private methods | 62 | 22.79% |
Functions | 19 | |
▷ Named functions | 10 | 52.63% |
▷ Anonymous functions | 9 | 47.37% |
Constants | 19 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 19 | 100.00% |
▷ Public constants | 19 | 100.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
4 PNG files occupy 0.18MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 67.39KB | 27.45KB | ▼ 59.26% |
assets/screenshot-3.png | 27.28KB | 11.67KB | ▼ 57.24% |
resources/img/guntab-icon.png | 1.56KB | 1.46KB | ▼ 6.20% |
assets/screenshot-2.png | 92.46KB | 36.76KB | ▼ 60.24% |