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.00MB] [CPU: ▼4.48ms] Passed 4 tests
Server-side resources used by GetLoy payment gateway for WooCommerce (supports iPay88, PayWay and Pi Pay)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.84 ▼2.23 |
Dashboard /wp-admin | 3.31 ▲0.00 | 61.43 ▲10.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.16 ▲2.18 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.93 ▼16.11 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.88 ▼1.74 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GetLoy payment gateway for WooCommerce (supports iPay88, PayWay and Pi Pay)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.18 ▼0.18 | 1.77 ▼0.16 | 44.36 ▲5.02 |
Dashboard /wp-admin | 2,195 ▲15 | 5.58 ▼0.08 | 98.08 ▲4.93 | 43.06 ▼3.58 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▲0.00 | 34.82 ▼0.48 | 32.49 ▼6.21 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 21.34 ▼1.52 | 715.99 ▲21.92 | 57.52 ▲0.96 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.17 ▼0.04 | 98.76 ▼3.68 | 43.76 ▲0.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
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 no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Wc_Getloy_Payment_Gateway_Connector' not found in wp-content/plugins/wc-getloy-gateway/gateways/payway_kh/includes/class-wc-getloy-gateway-payway-kh-connector.php:21
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wc-getloy-gateway/widgets/class-getloy-widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'Wc_Getloy_Payment_Gateway_Connector' not found in wp-content/plugins/wc-getloy-gateway/gateways/ipay88_kh/includes/class-wc-getloy-gateway-ipay88-kh-connector.php:21
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wc-getloy-gateway/gateways/class-wc-getloy-payment-gateway.php:15
- > PHP Fatal error
Uncaught Error: Class 'Getloy_Widget' not found in wp-content/plugins/wc-getloy-gateway/widgets/class-getloy-widget-payway-footer-box.php:3
- > PHP Fatal error
Uncaught Error: Class 'Wc_Getloy_Payment_Gateway' not found in wp-content/plugins/wc-getloy-gateway/gateways/payway_kh/class-wc-getloy-gateway-payway-kh.php:3
- > PHP Fatal error
Uncaught Error: Class 'Wc_Getloy_Payment_Gateway_Connector' not found in wp-content/plugins/wc-getloy-gateway/gateways/pipay_kh/includes/class-wc-getloy-gateway-pipay-kh-connector.php:21
- > PHP Fatal error
Uncaught Error: Class 'Wc_Getloy_Payment_Gateway' not found in wp-content/plugins/wc-getloy-gateway/gateways/pipay_kh/class-wc-getloy-gateway-pipay-kh.php:3
- > PHP Fatal error
Uncaught Error: Class 'Wc_Getloy_Payment_Gateway' not found in wp-content/plugins/wc-getloy-gateway/gateways/ipay88_kh/class-wc-getloy-gateway-ipay88-kh.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: cambodia, payment gateway, woocommerce, getloy
wc-getloy-gateway/wc-getloy-gateway.php 77% from 13 tests
The entry point to "GetLoy payment gateway for WooCommerce (supports iPay88, PayWay and Pi Pay)" version 1.3.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Plugin Name: A shorter plugin name is better (currently 75 characters long instead of max. 70)
- Requires at least: The required version number did not match the one declared in readme.txt ("4.2" instead of "3.2.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,034 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 393 | 1,292 | 1,952 |
CSS | 3 | 11 | 0 | 69 |
SVG | 13 | 0 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 13.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 3 | 23.08% |
▷ Concrete classes | 10 | 76.92% |
▷ Final classes | 0 | 0.00% |
Methods | 105 | |
▷ Static methods | 1 | 0.95% |
▷ Public methods | 57 | 54.29% |
▷ Protected methods | 44 | 41.90% |
▷ Private methods | 4 | 3.81% |
Functions | 12 | |
▷ Named functions | 1 | 8.33% |
▷ Anonymous functions | 11 | 91.67% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.17MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/widgets/payway-footer-box/cards-transparent@2x.png | 11.96KB | 6.77KB | ▼ 43.34% |
assets/images/widgets/payway-footer-box/abapay-transparent.png | 1.06KB | 1.12KB | 0.00% |
assets/images/widgets/payway-footer-box/abapay-transparent@2x.png | 1.82KB | 1.91KB | 0.00% |
assets/images/widgets/payway-footer-box/cards-transparent.png | 5.43KB | 3.53KB | ▼ 35.10% |
assets/images/widgets/payway-footer-box/all-transparent@3x.png | 22.55KB | 11.59KB | ▼ 48.59% |