Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/gg-multiple-payment-routing/inc/Common/Module/Stripe/Stripe_Hook.php+64
Undefined index: enabled
Server metrics [RAM: ▼1.58MB] [CPU: ▼48.57ms] Passed 4 tests
Server-side resources used by GG Multiple Payment Routing for WooCommerce - Split and manage PayPal, Stripe accounts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.32 ▼1.18 | 7.97 ▼34.39 |
Dashboard /wp-admin | 2.51 ▼0.83 | 12.52 ▼37.23 |
Posts /wp-admin/edit.php | 2.51 ▼0.89 | 11.86 ▼35.47 |
Add New Post /wp-admin/post-new.php | 2.51 ▼3.42 | 14.14 ▼87.18 |
Media Library /wp-admin/upload.php | 2.51 ▼0.76 | 10.52 ▼25.05 |
PayPal Accounts /wp-admin/edit.php?post_type=ggmp_paypal | 2.51 | 11.97 |
Settings /wp-admin/admin.php?page=ggmp | 2.51 | 12.81 |
Stripe Accounts /wp-admin/edit.php?post_type=ggmp_stripe | 2.51 | 12.58 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 158 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by GG Multiple Payment Routing for WooCommerce - Split and manage PayPal, Stripe accounts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.74 ▲0.59 | 1.55 ▼0.12 | 42.54 ▼0.84 |
Dashboard /wp-admin | 2,234 ▲60 | 5.85 ▲0.25 | 95.02 ▲5.35 | 42.16 ▼1.94 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.43 ▲0.40 | 35.41 ▼2.67 | 34.42 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.71 ▲0.45 | 689.14 ▲8.22 | 65.48 ▲7.91 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.57 ▲0.38 | 106.44 ▲6.70 | 45.95 ▼2.65 |
PayPal Accounts /wp-admin/edit.php?post_type=ggmp_paypal | 1,135 | 2.43 | 34.05 | 29.42 |
Settings /wp-admin/admin.php?page=ggmp | 879 | 1.90 | 26.21 | 28.82 |
Stripe Accounts /wp-admin/edit.php?post_type=ggmp_stripe | 1,135 | 2.37 | 31.33 | 28.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/gg-multiple-payment-routing/inc/Common/Module/Stripe/Stripe_Hook.php+64
Undefined index: enabled
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ggmp_stripe
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/gg-multiple-payment-routing/inc/Common/Module/Stripe/Stripe_Hook.php+64
Undefined index: enabled
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
The following issues need your attention
- 20× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/gg-multiple-payment-routing/inc/Libraries/Form/Field/views/input-textarea.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/gg-multiple-payment-routing/inc/Libraries/Form/Field/views/input-title.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gg-multiple-payment-routing/inc/Libraries/Form/Field/views/input-multi-checkbox.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/gg-multiple-payment-routing/inc/Libraries/Form/View/tabs.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gg-multiple-payment-routing/inc/Core/ajax-functions.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/gg-multiple-payment-routing/inc/Libraries/Form/Field/views/input-switch.php:15
- > PHP Fatal error
Uncaught Error: Class 'GGMP\\Core\\Metabox' not found in wp-content/plugins/gg-multiple-payment-routing/inc/Admin/Metabox/Stripe_Account_Metabox.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/gg-multiple-payment-routing/inc/Libraries/Form/Field/views/input-radio.php:11
- > PHP Fatal error
Uncaught Error: Class 'GGMP\\Core\\Metabox' not found in wp-content/plugins/gg-multiple-payment-routing/inc/Admin/Metabox/Paypal_Account_Metabox.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/gg-multiple-payment-routing/inc/Libraries/Form/Field/views/input-select.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% 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
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in gg-multiple-payment-routing/assets to your readme.txt
gg-multiple-payment-routing/gg-multiple-payment-routing.php 77% from 13 tests
The main PHP file in "GG Multiple Payment Routing for WooCommerce - Split and manage PayPal, Stripe accounts" ver. 1.0.8 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)
- Requires at least: The required version number must match the one declared in readme.txt ("5.2" instead of "3.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected19,106 lines of code in 145 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 69 | 2,663 | 874 | 10,274 |
PHP | 67 | 1,589 | 2,457 | 7,569 |
CSS | 7 | 302 | 120 | 1,243 |
SVG | 1 | 0 | 0 | 19 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 20.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 42 | |
▷ Abstract classes | 2 | 4.76% |
▷ Concrete classes | 40 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 347 | |
▷ Static methods | 38 | 10.95% |
▷ Public methods | 308 | 88.76% |
▷ Protected methods | 7 | 2.02% |
▷ Private methods | 32 | 9.22% |
Functions | 12 | |
▷ Named functions | 10 | 83.33% |
▷ Anonymous functions | 2 | 16.67% |
Constants | 13 | |
▷ Global constants | 7 | 53.85% |
▷ Class constants | 6 | 46.15% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin