Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.65ms] Passed 4 tests
An overview of server-side resources used by WooWIB - Payment Gateways Bank Indonesia
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.11 ▼0.94 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.30 ▼27.10 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.72 ▼1.62 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.82 ▼4.93 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.83 ▲0.40 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WooWIB - Payment Gateways Bank Indonesia
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 14.37 ▲0.11 | 1.92 ▼0.03 | 47.29 ▲1.71 |
Dashboard /wp-admin | 2,204 ▲27 | 5.62 ▲0.08 | 94.11 ▼8.01 | 43.41 ▲0.19 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 1.98 ▲0.00 | 34.85 ▼2.05 | 35.41 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,439 ▼89 | 22.24 ▼0.76 | 548.59 ▼100.56 | 50.39 ▲1.97 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.24 ▲0.06 | 98.63 ▲0.65 | 40.21 ▼1.45 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-payment-gateways-bank-indo-kode-payment/templates/admin/tab-setting/html-tab-setting.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/woo-payment-gateways-bank-indo-kode-payment/templates/admin/html-setting.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (21 tag instead of maximum 10)
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5 in woo-payment-gateways-bank-indo-kode-payment/assets to your readme.txt
woo-payment-gateways-bank-indo-kode-payment/woowib.php 77% from 13 tests
Analyzing the main PHP file in "WooWIB - Payment Gateways Bank Indonesia" version 2.3.3
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-payment-gateways-bank-indo-kode-payment.php" instead of "woowib.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 309 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected443 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 157 | 441 | 424 |
CSS | 1 | 1 | 0 | 15 |
SVG | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 4.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 33 | |
▷ Static methods | 1 | 3.03% |
▷ Public methods | 29 | 87.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.12% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin