Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.46ms] Passed 4 tests
This is a short check of server-side resources used by Paygate for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 49.18 ▲8.01 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.51 ▼4.28 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.25 ▼3.70 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.17 ▼2.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.30 ▲0.58 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Paygate for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.06 ▼0.45 | 1.67 ▼0.00 | 44.13 ▼0.20 |
Dashboard /wp-admin | 2,195 ▲18 | 5.58 ▼0.27 | 94.02 ▼2.68 | 42.69 ▼3.17 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.08 | 41.00 ▼0.49 | 35.77 ▼3.23 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.37 ▲0.01 | 593.96 ▼105.62 | 56.69 ▼10.86 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.12 | 95.99 ▼6.49 | 40.77 ▼4.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_PayGate' not found in wp-content/plugins/paygate-payweb-for-woocommerce/classes/WC_Gateway_PayGate_Cron.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paygate-payweb-for-woocommerce/gateway-paygate.php:24
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_PayGate' not found in wp-content/plugins/paygate-payweb-for-woocommerce/classes/WC_Gateway_PayGate_Portal.php:10
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/paygate-payweb-for-woocommerce/classes/WC_Gateway_PayGate_Blocks_Support.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: woocommerce, payment request, e-commerce, automattic, paygate...
paygate-payweb-for-woocommerce/gateway-paygate.php 92% from 13 tests
"Paygate for WooCommerce" version 1.4.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("paygate-payweb-for-woocommerce.php" instead of "gateway-paygate.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,983 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 275 | 403 | 1,846 |
SVG | 13 | 0 | 0 | 133 |
JavaScript | 3 | 0 | 2 | 3 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 49.80 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 5.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 57 | |
▷ Static methods | 10 | 17.54% |
▷ Public methods | 40 | 70.18% |
▷ Protected methods | 17 | 29.82% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 101 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 101 | 100.00% |
▷ Public constants | 101 | 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 were not PNG files found in your plugin