Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > User notice in wp-includes/functions.php+5905
Function map_meta_cap was called incorrectly. The post type woocg-post is not registered, so it may not be reliable to check the capability edit_post against a post of that type. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
Server metrics [RAM: ▲0.35MB] [CPU: ▼1.64ms] Passed 4 tests
Server-side resources used by Woo Custom Gateway
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 41.61 ▲0.11 |
Dashboard /wp-admin | 3.71 ▲0.41 | 49.85 ▼1.15 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 49.98 ▼0.52 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 90.20 ▼5.00 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 37.26 ▲2.58 |
About /wp-admin/admin.php?page=woo-custom-gateway-about | 3.58 | 35.98 |
Payment Methods /wp-admin/edit.php?post_type=woocg-post | 3.72 | 43.96 |
Woo Custom Gateway /wp-admin/admin.php?page=woo-custom-gateway | 3.45 | 57.30 |
Add New /wp-admin/post-new.php?post_type=woocg-post | 3.69 | 51.08 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 261 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Woo Custom Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲168 | 13.22 ▼1.19 | 1.69 ▼0.12 | 44.64 ▲1.05 |
Dashboard /wp-admin | 2,321 ▲132 | 4.84 ▼0.09 | 105.39 ▼18.22 | 37.06 ▼14.04 |
Posts /wp-admin/edit.php | 2,200 ▲111 | 2.07 ▲0.06 | 38.11 ▼0.03 | 33.09 ▲0.69 |
Add New Post /wp-admin/post-new.php | 1,607 ▲73 | 23.29 ▲0.15 | 676.01 ▲1.45 | 50.97 ▼3.90 |
Media Library /wp-admin/upload.php | 1,502 ▲114 | 4.30 ▲0.14 | 100.09 ▲2.43 | 43.37 ▼2.02 |
About /wp-admin/admin.php?page=woo-custom-gateway-about | 1,084 | 2.78 | 29.05 | 54.71 |
Payment Methods /wp-admin/edit.php?post_type=woocg-post | 1,707 | 2.08 | 35.10 | 31.49 |
Woo Custom Gateway /wp-admin/admin.php?page=woo-custom-gateway | 28 | 0.44 | 0.07 | 3.86 |
Add New /wp-admin/post-new.php?post_type=woocg-post | 1,747 | 3.64 | 62.99 | 35.28 |
Uninstaller [IO: ▲0.87MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attentionZombie WordPress options were found after uninstall: 7 options
- This plugin did not uninstall without warnings or errors
- > Error in wp-content/plugins/woo-custom-gateway/src/Model/Gateway.php+38
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woo-custom-gateway/src/Model/Gateway.php:38
Stack trace:
#0 wp-content/plugins/woo-custom-gateway/vendor/composer/ClassLoader.php(576): include()
#1 wp-content/plugins/woo-custom-gateway/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#3 wp-content/plugins/woo-custom-gateway/src/Controller/Admin.php(505): spl_autoload_call()
#4 wp-includes/class-wp-hook.php(312): RichardMuvirimi\WooCustomGateway\Controller\Admin->on_delete_method()
#5 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#6 wp-includes/plugin.php(517): WP_Hook->do_action()
#7 wp-includes/post.php(3434): do_action()
#8 wp-content/plugins/woo-custom-gateway/src/Controller/Plugin.php(107): wp_delete_post()
#9 /v - Incomplete uninstall procedure, leaving 261 files (0.87MB) in the plugin directory
- (new file) LICENSE.txt
- (new file) readme.md
- (new file) src/Controller/Admin.php
- (new file) src/Controller/Ajax.php
- (new file) readme.txt
- (new file) LICENSE
- (new file) composer.json
- (new file) languages/woo-custom-gateway.pot
- (new file) .phpcs.xml
- (new file) phpunit.xml
- ...
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- recovery_mode_email_last_sent
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 107× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'RichardMuvirimi\\WooCustomGateway\\Vendor\\GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/woo-custom-gateway/vendor/woo-custom-gateway/psr-4/GuzzleHttp/Exception/ServerException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/woo-custom-gateway/vendor/woo-custom-gateway/psr-4/Symfony/Polyfill/Php80/PhpToken.php:19
- > PHP Fatal error
Uncaught Error: Interface 'RichardMuvirimi\\WooCustomGateway\\Vendor\\Br33f\\Ga4\\MeasurementProtocol\\Dto\\ExportableInterface' not found in wp-content/plugins/woo-custom-gateway/vendor/woo-custom-gateway/psr-4/Br33f/Ga4/MeasurementProtocol/Dto/Common/EventCollection.php:18
- > PHP Fatal error
Uncaught Error: Class 'RichardMuvirimi\\WooCustomGateway\\Vendor\\Br33f\\Ga4\\MeasurementProtocol\\Dto\\Response\\BaseResponse' not found in wp-content/plugins/woo-custom-gateway/vendor/woo-custom-gateway/psr-4/Br33f/Ga4/MeasurementProtocol/Dto/Response/DebugResponse.php:13
- > PHP Fatal error
Uncaught Error: Class 'RichardMuvirimi\\WooCustomGateway\\Vendor\\Br33f\\Ga4\\MeasurementProtocol\\Dto\\Parameter\\AbstractParameter' not found in wp-content/plugins/woo-custom-gateway/vendor/woo-custom-gateway/psr-4/Br33f/Ga4/MeasurementProtocol/Dto/Parameter/ItemCollectionParameter.php:16
- > PHP Fatal error
Uncaught Error: Interface 'RichardMuvirimi\\WooCustomGateway\\Vendor\\GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/woo-custom-gateway/vendor/woo-custom-gateway/psr-4/GuzzleHttp/Promise/Coroutine.php:46
- > PHP Fatal error
Uncaught Error: Class 'Random\\RandomError' not found in wp-content/plugins/woo-custom-gateway/vendor/woo-custom-gateway/classes/symfony/polyfill-php82/Resources/stubs/Random/BrokenRandomEngineError.php:15
- > PHP Fatal error
Uncaught Error: Class 'RichardMuvirimi\\WooCustomGateway\\Vendor\\GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/woo-custom-gateway/vendor/woo-custom-gateway/psr-4/GuzzleHttp/Promise/CancellationException.php:10
- > PHP Fatal error
Uncaught Error: Class 'RichardMuvirimi\\WooCustomGateway\\Vendor\\GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/woo-custom-gateway/vendor/woo-custom-gateway/psr-4/GuzzleHttp/Cookie/FileCookieJar.php:10
- > PHP Fatal error
Uncaught Error: Interface 'RichardMuvirimi\\WooCustomGateway\\Vendor\\GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/woo-custom-gateway/vendor/woo-custom-gateway/psr-4/GuzzleHttp/Pool.php:24
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=woo-custom-gateway
- > Network (severe)
wp-admin/admin.php?page=woo-custom-gateway - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
woo-custom-gateway/woo-custom-gateway.php 92% from 13 tests
The main PHP script in "Woo Custom Gateway" version 1.6.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0.0" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin15,190 lines of code in 247 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 225 | 3,198 | 8,495 | 13,576 |
JSON | 8 | 0 | 0 | 1,368 |
Markdown | 8 | 92 | 0 | 178 |
JavaScript | 1 | 5 | 0 | 24 |
XML | 2 | 6 | 0 | 20 |
CSS | 2 | 5 | 4 | 18 |
SVG | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 9.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 34 | |
Interfaces | 36 | |
Traits | 4 | |
Classes | 161 | |
▷ Abstract classes | 7 | 4.35% |
▷ Concrete classes | 154 | 95.65% |
▷ Final classes | 50 | 32.47% |
Methods | 1,064 | |
▷ Static methods | 188 | 17.67% |
▷ Public methods | 933 | 87.69% |
▷ Protected methods | 12 | 1.13% |
▷ Private methods | 119 | 11.18% |
Functions | 121 | |
▷ Named functions | 28 | 23.14% |
▷ Anonymous functions | 93 | 76.86% |
Constants | 106 | |
▷ Global constants | 4 | 3.77% |
▷ Class constants | 102 | 96.23% |
▷ Public constants | 91 | 89.22% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin