Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲4.52MB] [CPU: ▲13.02ms] Passed 4 tests
This is a short check of server-side resources used by Payment Gateway Groups for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.50 ▲5.03 | 69.12 ▲29.82 |
Dashboard /wp-admin | 8.52 ▲5.21 | 59.75 ▲5.52 |
Posts /wp-admin/edit.php | 8.52 ▲5.16 | 68.21 ▲15.98 |
Add New Post /wp-admin/post-new.php | 8.56 ▲2.68 | 99.23 ▲0.74 |
Media Library /wp-admin/upload.php | 8.52 ▲5.29 | 66.43 ▲30.90 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.52 | 59.67 |
Server storage [IO: ▲3.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 186 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
fs_debug_mode |
db_upgraded |
fs_active_plugins |
fs_accounts |
widget_recent-posts |
theysaidso_admin_options |
fs_gdpr |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Payment Gateway Groups for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲135 | 13.44 ▼0.91 | 8.73 ▲6.83 | 29.29 ▼17.53 |
Dashboard /wp-admin | 2,216 ▲36 | 5.54 ▼0.13 | 91.79 ▼4.32 | 44.78 ▲1.28 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.00 ▲0.02 | 37.43 ▲0.66 | 40.03 ▲3.26 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.12 ▼0.34 | 677.10 ▲72.85 | 55.58 ▲6.37 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.22 ▲0.05 | 98.07 ▼2.31 | 43.78 ▼0.01 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,061 | 1.69 | 25.29 | 30.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/payment-gateway-groups-for-woocommerce/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_theysaidso_widget
- fs_accounts
- can_compress_scripts
- fs_gdpr
- theysaidso_admin_options
- fs_active_plugins
- fs_debug_mode
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/payment-gateway-groups-for-woocommerce/admin/partials/woo-pgg-admin-woocommerce-settings.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
payment-gateway-groups-for-woocommerce/woo-pgg.php 92% from 13 tests
"Payment Gateway Groups for WooCommerce" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("payment-gateway-groups-for-woocommerce.php" instead of "woo-pgg.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin31,494 lines of code in 139 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 119 | 7,348 | 16,637 | 30,937 |
JavaScript | 5 | 41 | 92 | 256 |
Markdown | 1 | 68 | 0 | 214 |
CSS | 13 | 2 | 9 | 60 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 77.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 0 | 0.00% |
Methods | 1,164 | |
▷ Static methods | 175 | 15.03% |
▷ Public methods | 819 | 70.36% |
▷ Protected methods | 15 | 1.29% |
▷ Private methods | 330 | 28.35% |
Functions | 98 | |
▷ Named functions | 98 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 124 | |
▷ Global constants | 99 | 79.84% |
▷ Class constants | 25 | 20.16% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/woo-pgg.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |