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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.47ms] Passed 4 tests
A check of server-side resources used by Busha Pay Payment Gateway for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.13 ▼6.69 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.08 ▼1.09 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.11 ▼1.61 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.88 ▼8.48 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.48 ▲2.52 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Busha Pay Payment Gateway for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 13.79 ▼0.77 | 1.79 ▼0.50 | 41.47 ▼4.56 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▼0.03 | 107.26 ▼12.79 | 43.73 ▲1.48 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.01 | 35.68 ▼5.05 | 30.64 ▼0.81 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.22 ▲0.02 | 623.21 ▼72.93 | 56.93 ▲3.19 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.19 ▲0.03 | 95.84 ▼3.27 | 43.40 ▼5.04 |
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 were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- 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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/busha-pay/busha-pay.php:43
- > PHP Fatal error
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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
busha-pay/busha-pay.php 92% from 13 tests
Analyzing the main PHP file in "Busha Pay Payment Gateway for WooCommerce" version 1.0.0
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("3.0" instead of "3.0.9")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin605 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 121 | 157 | 489 |
Markdown | 1 | 56 | 0 | 80 |
JavaScript | 1 | 10 | 6 | 36 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 27.50 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 4.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 5 | 29.41% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 1 | 5.88% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/bitcoin.png | 16.21KB | 1.34KB | ▼ 91.71% |
assets/images/ethereum.png | 16.16KB | 1.31KB | ▼ 91.89% |