Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.14ms] Passed 4 tests
Analyzing server-side resources used by Duitku Payment Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.56 ▼5.21 |
Dashboard /wp-admin | 3.31 ▲0.00 | 56.55 ▲2.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.48 ▼3.00 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.49 ▼9.77 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.93 ▼6.56 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Duitku Payment Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.74 ▲0.62 | 3.81 ▲2.30 | 43.12 ▼3.76 |
Dashboard /wp-admin | 2,198 ▲24 | 5.65 ▲0.01 | 86.60 ▼11.34 | 38.47 ▼10.51 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.05 | 39.32 ▲2.39 | 35.32 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,534 ▼3 | 18.05 ▼0.45 | 597.10 ▼31.42 | 85.67 ▲24.46 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.21 ▼0.01 | 98.80 ▼12.84 | 42.35 ▼5.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
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)
No browser issues were found
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
These attributes need your attention:
- Tags: Too many tags (26 tag instead of maximum 10); only the first 5 tags are used in your directory listing
duitku-social-payment-gateway/woocommerce-gateway-duitku.php 92% from 13 tests
This is the main PHP file of "Duitku Payment Gateway" version 2.11.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("duitku-social-payment-gateway.php" instead of "woocommerce-gateway-duitku.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,898 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 410 | 810 | 1,849 |
JavaScript | 1 | 12 | 6 | 49 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 4.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 1 | 3.57% |
▷ Concrete classes | 27 | 96.43% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 14 | 20.29% |
▷ Public methods | 67 | 97.10% |
▷ Protected methods | 1 | 1.45% |
▷ Private methods | 1 | 1.45% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
27 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/bca-klikpay.png | 3.53KB | 2.37KB | ▼ 32.93% |
includes/assets/Ritel.png | 10.10KB | 3.86KB | ▼ 61.76% |
includes/assets/pospay.png | 3.09KB | 2.05KB | ▼ 33.85% |
includes/assets/credit-card.png | 3.72KB | 2.28KB | ▼ 38.69% |
includes/assets/va_permata.png | 3.01KB | 2.12KB | ▼ 29.46% |