Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼140.66ms] Passed 4 tests
Server-side resources used by LITEPAY Bitcoin Merchant plugin for WordPress WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 35.82 ▲14.96 |
Dashboard /wp-admin | 3.06 ▲0.01 | 45.59 ▲1.10 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 42.71 ▼1.00 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 85.90 ▼560.73 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 30.65 ▼1.99 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by LITEPAY Bitcoin Merchant plugin for WordPress WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.98 ▲0.53 | 8.76 ▼0.84 | 42.26 ▼7.23 |
Dashboard /wp-admin | 2,973 ▲42 | 5.92 ▼0.31 | 132.05 ▼6.84 | 109.71 ▼7.45 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.70 ▲0.00 | 64.02 ▼1.65 | 87.31 ▲2.74 |
Add New Post /wp-admin/post-new.php | 1,872 ▲268 | 19.19 ▲0.36 | 373.87 ▲14.18 | 99.89 ▼3.65 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.02 ▲0.00 | 156.79 ▲3.79 | 116.37 ▲0.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/litepay/litepay.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% 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
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in litepay/assets to your readme.txt
litepay/litepay.php Passed 13 tests
The main file in "LITEPAY Bitcoin Merchant plugin for WordPress WooCommerce" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
116 characters long description:
This module integrates LitePay Merchant API with Wordpress's Woocommerce plugin to accept Bitcoin/Litecoin payments.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin334 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 64 | 100 | 334 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 22 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 12.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
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/images/litepay.png | 4.18KB | 3.27KB | ▼ 21.71% |