Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼143.24ms] Passed 4 tests
An overview of server-side resources used by Stats Dashboard for Coinpayments
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.15 | 37.96 ▲17.62 |
Dashboard /wp-admin | 3.13 ▲0.07 | 44.78 ▼5.78 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 43.88 ▼4.42 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 95.71 ▼569.13 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 35.91 ▲6.37 |
Coinpayments /wp-admin/options-general.php?page=stats-dashboard-for-coinpayments | 3.04 | 34.98 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Stats Dashboard for Coinpayments: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲167 | 15.77 ▲0.19 | 11.11 ▲1.73 | 47.64 ▼6.78 |
Dashboard /wp-admin | 3,017 ▲83 | 5.92 ▼0.03 | 145.16 ▼4.17 | 128.27 ▲5.98 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.68 ▼0.02 | 71.85 ▲3.13 | 95.16 ▼5.79 |
Add New Post /wp-admin/post-new.php | 1,503 ▼101 | 18.54 ▼0.21 | 384.31 ▼11.09 | 117.71 ▲6.46 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▼0.04 | 155.09 ▼9.25 | 130.94 ▼6.19 |
Coinpayments /wp-admin/options-general.php?page=stats-dashboard-for-coinpayments | 1,057 | 2.09 | 61.93 | 87.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/stats-dashboard-for-coinpayments/stats-dashboard-for-coinpayments.php:91
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stats-dashboard-for-coinpayments/src/settings-page.php:38
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tested up to: Version format is invalid
stats-dashboard-for-coinpayments/stats-dashboard-for-coinpayments.php Passed 13 tests
The main PHP file in "Stats Dashboard for Coinpayments" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
49 characters long description:
A plugin to display stats from coinpayments.net .
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin342 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 75 | 316 | 338 |
Markdown | 1 | 3 | 0 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 24 | |
▷ Static methods | 9 | 37.50% |
▷ Public methods | 23 | 95.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.17% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
7 PNG files occupy 0.35MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 62.33KB | 17.38KB | ▼ 72.12% |
assets/icon-256x256.png | 13.07KB | 4.46KB | ▼ 65.91% |
assets/icon-128x128.png | 6.80KB | 2.82KB | ▼ 58.54% |
assets/banner-772x250.png | 26.63KB | 8.55KB | ▼ 67.89% |
assets/screenshot-1.png | 72.51KB | 24.28KB | ▼ 66.51% |