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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.38ms] Passed 4 tests
A check of server-side resources used by Genie Business Payment Gateway for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.29 ▼1.47 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.11 ▼0.07 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.54 ▲0.19 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.73 ▼4.18 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.81 ▲4.80 |
Server storage [IO: ▲1.43MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 192 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Genie Business Payment Gateway for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.69 ▲0.05 | 1.54 ▼0.11 | 42.60 ▲2.93 |
Dashboard /wp-admin | 2,198 ▲18 | 5.63 ▲0.04 | 81.53 ▼11.13 | 36.00 ▼2.21 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.10 | 35.84 ▼0.95 | 32.97 ▼5.10 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.28 ▼4.93 | 610.14 ▲8.99 | 80.96 ▲20.43 |
Media Library /wp-admin/upload.php | 1,394 ▼0 | 4.18 ▼0.04 | 103.38 ▲4.85 | 42.54 ▼0.24 |
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
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 50× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/genie-business-payment-gateway/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/genie-business-payment-gateway/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/genie-business-payment-gateway/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/genie-business-payment-gateway/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/genie-business-payment-gateway/vendor/guzzlehttp/psr7/src/Stream.php:12
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/genie-business-payment-gateway/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/genie-business-payment-gateway/vendor/guzzlehttp/psr7/src/AppendStream.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genie-business-payment-gateway/inc/webhook-handler.php:20
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/genie-business-payment-gateway/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/genie-business-payment-gateway/vendor/guzzlehttp/promises/src/EachPromise.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (The settings screen for your plugin, easily select sandbox or production and add your specific keys.), #2 (Payment method selection for easy checkout.)
genie-business-payment-gateway/geniebiz-woocommerce.php 85% from 13 tests
The main PHP file in "Genie Business Payment Gateway for WooCommerce" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("genie-business-payment-gateway.php" instead of "geniebiz-woocommerce.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 97% from 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
There were no executable files found in this plugin33,047 lines of code in 178 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 142 | 2,454 | 6,468 | 27,899 |
Markdown | 15 | 1,226 | 0 | 3,593 |
JSON | 11 | 1 | 0 | 1,190 |
XML | 2 | 0 | 0 | 173 |
YAML | 5 | 22 | 3 | 91 |
PO File | 1 | 27 | 27 | 82 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 16.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 15 | |
Traits | 2 | |
Classes | 97 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 97 | 100.00% |
▷ Final classes | 24 | 24.74% |
Methods | 812 | |
▷ Static methods | 167 | 20.57% |
▷ Public methods | 656 | 80.79% |
▷ Protected methods | 4 | 0.49% |
▷ Private methods | 152 | 18.72% |
Functions | 160 | |
▷ Named functions | 70 | 43.75% |
▷ Anonymous functions | 90 | 56.25% |
Constants | 165 | |
▷ Global constants | 41 | 24.85% |
▷ Class constants | 124 | 75.15% |
▷ Public constants | 124 | 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
There are no PNG files in this plugin