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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.69ms] Passed 4 tests
A check of server-side resources used by Paylabs Payment Gateway for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.67 ▼3.68 |
Dashboard /wp-admin | 3.34 ▼0.00 | 45.09 ▼15.64 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.78 ▼3.19 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 83.27 ▼12.25 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.52 ▼1.12 |
Server storage [IO: ▲0.16MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Paylabs Payment Gateway for Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.10 ▼0.25 | 1.79 ▼0.01 | 41.01 ▼9.18 |
Dashboard /wp-admin | 2,195 ▲15 | 5.59 ▼0.09 | 82.03 ▼10.32 | 36.05 ▼3.25 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.05 | 36.28 ▲2.12 | 30.09 ▼3.92 |
Add New Post /wp-admin/post-new.php | 1,535 ▼1 | 18.34 ▼4.62 | 613.62 ▼1.30 | 70.24 ▼10.25 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.19 ▼0.03 | 99.64 ▼0.18 | 41.90 ▼2.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: order in wp-content/plugins/paylabs-payment-gateway/page/qris.php on line 5
- > PHP Fatal error
Uncaught Error: Call to a member function get_id() on null in wp-content/plugins/paylabs-payment-gateway/page/qris.php:5
- > PHP Fatal error
Uncaught Error: Call to a member function get_id() on null in wp-content/plugins/paylabs-payment-gateway/page/dana.php:5
- > PHP Notice
Undefined variable: order in wp-content/plugins/paylabs-payment-gateway/page/dana.php on line 5
- > PHP Fatal error
Uncaught Error: Call to a member function get_id() on null in wp-content/plugins/paylabs-payment-gateway/page/va.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/paylabs-payment-gateway/templates/pay.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/paylabs-payment-gateway/paylabs-woocommerce.php:14
- > PHP Notice
Undefined variable: order in wp-content/plugins/paylabs-payment-gateway/page/va.php on line 5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
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 #1, #2 in paylabs-payment-gateway/assets to your readme.txt
paylabs-payment-gateway/paylabs-woocommerce.php 92% from 13 tests
The main PHP file in "Paylabs Payment Gateway for Woocommerce" ver. 1.0.9 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("paylabs-payment-gateway.php" instead of "paylabs-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,098 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 256 | 166 | 1,056 |
Markdown | 2 | 23 | 0 | 42 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 7.71 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 2 | 4.35% |
▷ Public methods | 40 | 86.96% |
▷ Protected methods | 2 | 4.35% |
▷ Private methods | 4 | 8.70% |
Functions | 13 | |
▷ Named functions | 9 | 69.23% |
▷ Anonymous functions | 4 | 30.77% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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
7 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/danabalance.png | 27.62KB | 11.85KB | ▼ 57.09% |
asset/maybankva.png | 19.08KB | 8.19KB | ▼ 57.06% |
asset/logo-2.png | 15.29KB | 4.61KB | ▼ 69.87% |
asset/danamonva.png | 9.23KB | 3.69KB | ▼ 60.04% |
asset/sinarmasva.png | 23.12KB | 9.04KB | ▼ 60.92% |