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.21MB] [CPU: ▼2.81ms] Passed 4 tests
A check of server-side resources used by Bitcoin Lightning Publisher for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.14 | 36.91 ▼2.50 |
Dashboard /wp-admin | 3.56 ▲0.25 | 45.17 ▼1.27 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 46.02 ▼1.43 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 88.55 ▼6.04 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 41.74 ▲10.49 |
Help /wp-admin/admin.php?page=lnp_settings_help | 3.42 | 32.93 |
Transactions /wp-admin/admin.php?page=lnp_settings_balances | 3.41 | 34.61 |
Dashboard /wp-admin/admin.php?page=lnp_settings | 3.42 | 32.55 |
General Settings /wp-admin/admin.php?page=lnp_settings_general | 3.41 | 34.48 |
Wallet Settings /wp-admin/admin.php?page=lnp_settings_connections | 3.42 | 32.44 |
Paywall Settings /wp-admin/admin.php?page=lnp_settings_paywall | 3.41 | 33.52 |
Server storage [IO: ▲4.97MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 856 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_lightning_publisher_payments |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Bitcoin Lightning Publisher for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,871 ▲136 | 14.09 ▼0.29 | 2.87 ▲1.07 | 38.61 ▼7.18 |
Dashboard /wp-admin | 2,253 ▲68 | 5.29 ▼0.53 | 96.40 ▼22.52 | 37.84 ▼11.96 |
Posts /wp-admin/edit.php | 2,136 ▲44 | 2.38 ▲0.35 | 35.63 ▼4.49 | 32.03 ▼1.62 |
Add New Post /wp-admin/post-new.php | 6,687 ▲5,168 | 23.80 ▲0.67 | 1,052.35 ▲347.55 | 37.44 ▼27.18 |
Media Library /wp-admin/upload.php | 1,432 ▲41 | 4.42 ▲0.23 | 99.21 ▼4.15 | 42.49 ▼3.15 |
Help /wp-admin/admin.php?page=lnp_settings_help | 1,079 | 1.91 | 26.57 | 30.44 |
Transactions /wp-admin/admin.php?page=lnp_settings_balances | 1,033 | 1.96 | 30.85 | 27.21 |
Dashboard /wp-admin/admin.php?page=lnp_settings | 856 | 1.96 | 25.83 | 28.30 |
General Settings /wp-admin/admin.php?page=lnp_settings_general | 923 | 2.10 | 26.11 | 27.15 |
Wallet Settings /wp-admin/admin.php?page=lnp_settings_connections | 1,031 | 1.96 | 25.72 | 26.08 |
Paywall Settings /wp-admin/admin.php?page=lnp_settings_paywall | 937 | 1.95 | 26.55 | 27.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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 take a closer look at the following
- 347× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/bitcoin-lightning-publisher/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
- > PHP Fatal error
Uncaught Error: Class 'Jorijn\\Bitcoin\\Bolt11\\Exception\\PaymentRequestDecodeException' not found in wp-content/plugins/bitcoin-lightning-publisher/vendor/jorijn/bitcoin-bolt11/src/Exception/SignatureIncorrectOrMissingException.php:16
- > PHP Warning
require(wp-content/plugins/bitcoin-lightning-publisher/vendor/jorijn/bitcoin-bolt11/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/bitcoin-lightning-publisher/vendor/jorijn/bitcoin-bolt11/examples/payment_request_with_expiration_timestamp.php on line 18
- > PHP Warning
require_once(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/bitcoin-lightning-publisher/vendor/octan/btcpay/tests/ClientTest.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'BitWasp\\Buffertools\\Tests\\BinaryTest' not found in wp-content/plugins/bitcoin-lightning-publisher/vendor/bitwasp/buffertools/tests/Types/UintSetTest.php:20
- > PHP Fatal error
Uncaught Error: Interface 'BitWasp\\Bitcoin\\SerializableInterface' not found in wp-content/plugins/bitcoin-lightning-publisher/vendor/protonlabs/bitcoin/src/Script/ScriptInterface.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/bitcoin-lightning-publisher/vendor/pleonasm/merkle-tree/tests/Pleo/Merkle/OneChildDuplicateNodeTest.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Pleo\\Merkle\\ITreeNode' not found in wp-content/plugins/bitcoin-lightning-publisher/vendor/pleonasm/merkle-tree/src/Pleo/Merkle/FixedSizeTree.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/bitcoin-lightning-publisher/vendor/guzzlehttp/psr7/src/MultipartStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\AbstractString' not found in wp-content/plugins/bitcoin-lightning-publisher/vendor/fgrosse/phpasn1/lib/ASN1/Universal/T61String.php:16
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Contributors: Contributors not specified
bitcoin-lightning-publisher/bln-publisher.php 69% from 13 tests
This is the main PHP file of "Bitcoin Lightning Publisher for WordPress" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bitcoin-lightning-publisher.php" instead of "bln-publisher.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 168 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin51,550 lines of code in 786 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 682 | 9,861 | 21,442 | 42,014 |
Markdown | 36 | 1,827 | 0 | 5,139 |
JSON | 29 | 1 | 0 | 2,639 |
JavaScript | 9 | 58 | 67 | 967 |
YAML | 10 | 54 | 7 | 316 |
XML | 7 | 8 | 0 | 167 |
CSS | 5 | 27 | 7 | 165 |
Bourne Shell | 5 | 8 | 0 | 44 |
make | 1 | 14 | 0 | 41 |
Ant | 1 | 5 | 0 | 31 |
Dockerfile | 1 | 11 | 0 | 27 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 204)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 266.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 204.00 |
Code structure | ||
---|---|---|
Namespaces | 138 | |
Interfaces | 97 | |
Traits | 4 | |
Classes | 541 | |
▷ Abstract classes | 28 | 5.18% |
▷ Concrete classes | 513 | 94.82% |
▷ Final classes | 44 | 8.58% |
Methods | 3,549 | |
▷ Static methods | 421 | 11.86% |
▷ Public methods | 3,153 | 88.84% |
▷ Protected methods | 130 | 3.66% |
▷ Private methods | 266 | 7.50% |
Functions | 210 | |
▷ Named functions | 52 | 24.76% |
▷ Anonymous functions | 158 | 75.24% |
Constants | 445 | |
▷ Global constants | 5 | 1.12% |
▷ Class constants | 440 | 98.88% |
▷ Public constants | 421 | 95.68% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 1.09MB with 0.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 124.60KB | 42.29KB | ▼ 66.06% |
assets/img/lnd.png | 3.96KB | 2.21KB | ▼ 44.15% |
assets/screenshot-2.png | 57.99KB | 23.09KB | ▼ 60.17% |
assets/img/satsymbol-black.png | 4.44KB | 2.58KB | ▼ 41.98% |
assets/img/lndhub.png | 19.05KB | 8.83KB | ▼ 53.67% |