Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.71MB] [CPU: ▲2.25ms] Passed 4 tests
Server-side resources used by Set WooCommerce Payment Gateway by URL
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.13 ▲0.67 | 44.74 ▲3.15 |
Dashboard /wp-admin | 4.08 ▲0.77 | 51.57 ▲4.92 |
Posts /wp-admin/edit.php | 4.13 ▲0.77 | 53.49 ▲6.84 |
Add New Post /wp-admin/post-new.php | 6.60 ▲0.71 | 90.54 ▼5.93 |
Media Library /wp-admin/upload.php | 3.94 ▲0.71 | 45.49 ▲11.04 |
logs /wp-admin/admin.php?page=bh-wc-set-gateway-by-url-logs | 3.94 | 39.85 |
Server storage [IO: ▲0.31MB] [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: 80 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
bh-wc-set-gateway-by-url-last-logs-view-time |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Set WooCommerce Payment Gateway by URL
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.44 ▲0.09 | 1.84 ▲0.09 | 43.73 ▼0.25 |
Dashboard /wp-admin | 2,212 ▲32 | 5.65 ▼0.02 | 96.71 ▲10.86 | 36.32 ▼4.51 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 2.07 ▲0.08 | 42.90 ▼0.80 | 41.51 ▲2.62 |
Add New Post /wp-admin/post-new.php | 1,546 ▲16 | 17.97 ▼5.34 | 621.58 ▼3.68 | 63.50 ▲7.59 |
Media Library /wp-admin/upload.php | 1,417 ▲14 | 4.23 ▼0.01 | 98.23 ▲1.85 | 45.00 ▲3.16 |
logs /wp-admin/admin.php?page=bh-wc-set-gateway-by-url-logs | 897 | 1.82 | 26.19 | 27.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- bh-wc-set-gateway-by-url-last-logs-view-time
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 33× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Trait 'Psr\\Log\\LoggerAwareTrait' not found in wp-content/plugins/bh-wc-set-gateway-by-url/vendor-prefixed/brianhenryie/bh-wp-private-uploads/src/Frontend/class-serve-private-file.php on line 26
- > PHP Fatal error
Uncaught Error: Interface 'BrianHenryIE\\WC_Set_Gateway_By_URL\\WP_Logger\\API_Interface' not found in wp-content/plugins/bh-wc-set-gateway-by-url/vendor-prefixed/brianhenryie/bh-wp-logger/src/API/class-api.php:38
- > PHP Fatal error
Uncaught Error: Interface 'BrianHenryIE\\WC_Set_Gateway_By_URL\\WP_Logger\\Logger_Settings_Interface' not found in wp-content/plugins/bh-wc-set-gateway-by-url/vendor-prefixed/brianhenryie/bh-wp-logger/src/API/class-logger-settings.php:21
- > PHP Fatal error
Uncaught Exception in wp-content/plugins/bh-wc-set-gateway-by-url/bh-wc-set-gateway-by-url.php:37
- > PHP Fatal error
Uncaught Error: Class 'BrianHenryIE\\WC_Set_Gateway_By_URL\\WPTRT\\AdminNotices\otices' not found in wp-content/plugins/bh-wc-set-gateway-by-url/vendor-prefixed/brianhenryie/bh-wp-private-uploads/src/Admin/class-admin-notices.php:19
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/bh-wc-set-gateway-by-url/vendor-prefixed/psr/log/Psr/Log/NullLogger.php:13
- > PHP Fatal error
Uncaught Error: Class 'BrianHenryIE\\WC_Set_Gateway_By_URL\\WPTRT\\AdminNotices\otices' not found in wp-content/plugins/bh-wc-set-gateway-by-url/vendor-prefixed/brianhenryie/bh-wp-logger/src/Admin/class-admin-notices.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/bh-wc-set-gateway-by-url/vendor-prefixed/psr/log/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Class 'BrianHenryIE\\WC_Set_Gateway_By_URL\\WP_Logger\\API\\API' not found in wp-content/plugins/bh-wc-set-gateway-by-url/vendor-prefixed/brianhenryie/bh-wp-logger/src/API/class-bh-wp-psr-logger.php:26
- > PHP Fatal error
Trait 'Psr\\Log\\LoggerAwareTrait' not found in wp-content/plugins/bh-wc-set-gateway-by-url/vendor-prefixed/brianhenryie/bh-wp-private-uploads/src/WP_Includes/class-cli.php on line 16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #3, #4 in bh-wc-set-gateway-by-url/assets to your readme.txt
bh-wc-set-gateway-by-url/bh-wc-set-gateway-by-url.php 92% from 13 tests
This is the main PHP file of "Set WooCommerce Payment Gateway by URL" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("3.6.0" instead of "2.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected3,315 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 68 | 1,322 | 3,406 | 3,222 |
JavaScript | 1 | 15 | 7 | 49 |
CSS | 2 | 13 | 8 | 27 |
Markdown | 1 | 4 | 0 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 8 | |
Traits | 4 | |
Classes | 51 | |
▷ Abstract classes | 1 | 1.96% |
▷ Concrete classes | 50 | 98.04% |
▷ Final classes | 0 | 0.00% |
Methods | 282 | |
▷ Static methods | 5 | 1.77% |
▷ Public methods | 233 | 82.62% |
▷ Protected methods | 48 | 17.02% |
▷ Private methods | 1 | 0.35% |
Functions | 15 | |
▷ Named functions | 1 | 6.67% |
▷ Anonymous functions | 14 | 93.33% |
Constants | 12 | |
▷ Global constants | 2 | 16.67% |
▷ Class constants | 10 | 83.33% |
▷ Public constants | 10 | 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
PNG images were not found in this plugin