Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼14.31ms] Passed 4 tests
Server-side resources used by Accept Bitcoin & Lightning Network with tinkl.it
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▼0.03 | 35.37 ▼19.39 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.75 ▼6.41 |
Posts /wp-admin/edit.php | 3.36 ▼0.49 | 47.62 ▼6.22 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.85 ▼25.23 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.27 ▲1.95 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Accept Bitcoin & Lightning Network with tinkl.it
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▲0.12 | 1.62 ▼0.17 | 40.34 ▼4.78 |
Dashboard /wp-admin | 2,198 ▲27 | 5.64 ▲0.04 | 94.23 ▼5.57 | 39.17 ▼6.56 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.99 ▲0.04 | 36.77 ▲3.42 | 33.57 ▼3.73 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.38 ▲0.45 | 675.24 ▲45.23 | 66.88 ▲6.76 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.18 ▼0.04 | 97.89 ▲1.00 | 43.59 ▲1.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tinkl-it-woocommerce-payment-gateway/tinklit.php:12
- > PHP Fatal error
Uncaught Error: Class 'Tinklit\\Merchant' not found in wp-content/plugins/tinkl-it-woocommerce-payment-gateway/lib/tinklit/lib/Merchant/Invoice.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 delete some tags, you are using 14 tag instead of maximum 10
tinkl-it-woocommerce-payment-gateway/tinklit.php 92% from 13 tests
Analyzing the main PHP file in "Accept Bitcoin & Lightning Network with tinkl.it" version 1.3.1
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("tinkl-it-woocommerce-payment-gateway.php" instead of "tinklit.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected526 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 110 | 30 | 499 |
Markdown | 1 | 26 | 0 | 27 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 4.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 8 | 34.78% |
▷ Public methods | 20 | 86.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 13.04% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/bitcoin.png | 3.06KB | 2.06KB | ▼ 32.77% |