Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Error in wp-content/plugins/lightning-payment-gateway-lnbits/lnbits.php+50
Uncaught Error: Call to undefined function wc_get_template_html() in wp-content/plugins/lightning-payment-gateway-lnbits/lnbits.php:50
Stack trace:
#0 wp-content/plugins/lightning-payment-gateway-lnbits/lnbits.php(37): render_template()
#1 wp-includes/class-wp-hook.php(310): woocommerce_lnbits_activate()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.46ms] Passed 4 tests
This is a short check of server-side resources used by Bitcoin/Lightning Payment Gateway - LNBits
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.57 ▼1.59 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.71 ▲4.95 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.67 ▼3.42 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.09 ▼5.60 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.62 ▲0.77 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Bitcoin/Lightning Payment Gateway - LNBits
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.08 | 1.72 ▲0.06 | 42.78 ▲1.20 |
Dashboard /wp-admin | 2,209 ▲21 | 4.89 ▲0.02 | 105.48 ▼6.33 | 39.08 ▼2.78 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.19 | 33.44 ▼9.04 | 34.35 ▼2.76 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.67 ▼5.71 | 685.57 ▲9.50 | 63.76 ▲6.25 |
Media Library /wp-admin/upload.php | 1,382 ▼0 | 4.22 ▼0.01 | 98.46 ▼4.33 | 40.81 ▼7.65 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% 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 0% 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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/lightning-payment-gateway-lnbits/templates/payment_page.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/lightning-payment-gateway-lnbits/templates/payment_shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lightning-payment-gateway-lnbits/lnbits.php:13
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
lightning-payment-gateway-lnbits/lnbits.php 92% from 13 tests
The principal PHP file in "Bitcoin/Lightning Payment Gateway - LNBits" v. 0.0.6 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("lightning-payment-gateway-lnbits.php" instead of "lnbits.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
Good job! No executable or dangerous file extensions detected306 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 84 | 56 | 306 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/bitcoin.png | 3.06KB | 2.06KB | ▼ 32.77% |
assets/lightning.png | 1.86KB | 1.66KB | ▼ 10.74% |