Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼2.59ms] Passed 4 tests
Analyzing server-side resources used by Coin Miner - Coin Hive, and CoinImp monero miner
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 38.63 ▼4.54 |
Dashboard /wp-admin | 3.46 ▲0.15 | 50.67 ▼0.50 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 52.97 ▲3.41 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 85.31 ▼8.74 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 42.40 ▲6.83 |
Coin-Miner /wp-admin/options-general.php?page=coin-miner | 3.35 | 33.60 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: 2 new tables, 22 new options
New tables |
---|
wp_coin_hive |
wp_coin_imp |
New WordPress options |
---|
widget_recent-comments |
ci_delayed_miner_time |
ch_delayed_miner_time |
theysaidso_admin_options |
can_compress_scripts |
ci_disable |
ci_public_key |
ch_mobile_disable |
ch_public_key |
ci_miner_speed |
... |
Browser metrics Passed 4 tests
Coin Miner - Coin Hive, and CoinImp monero miner: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲112 | 13.75 ▼0.61 | 7.76 ▲5.51 | 42.19 ▼2.92 |
Dashboard /wp-admin | 2,220 ▲46 | 5.59 ▲0.06 | 88.54 ▼6.40 | 40.57 ▼3.55 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 1.96 ▼0.03 | 36.27 ▼0.63 | 38.01 ▲2.74 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.23 ▼0.11 | 684.78 ▲6.14 | 55.15 ▼5.67 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.20 ▲0.01 | 96.73 ▼8.23 | 45.46 ▼2.48 |
Coin-Miner /wp-admin/options-general.php?page=coin-miner | 1,169 | 2.00 | 24.74 | 42.05 |
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 did not uninstall successfully, leaving 22 options in the database
- ch_secret_key
- ci_disable
- widget_theysaidso_widget
- ci_mobile_disable
- ci_public_key
- db_upgraded
- ci_miner_speed
- ci_delayed_miner_time
- ch_user_concent_needed
- widget_recent-posts
- ...
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: monero, coinhive, coinimp, mining, monetization...
coin-miner/coin-miner.php Passed 13 tests
The principal PHP file in "Coin Miner - Coin Hive, and CoinImp monero miner" v. 1.0.0 is loaded by WordPress automatically on each request
10 characters long description:
Coin-Miner
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
No dangerous file extensions were detected1,164 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 64 | 76 | 853 |
CSS | 1 | 19 | 7 | 192 |
JavaScript | 1 | 2 | 3 | 119 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 7.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 compressed PNG files occupy 0.12MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/coin-hive-3.png | 6.82KB | 7.25KB | 0.00% |
img/coin-imp-5.png | 13.81KB | 13.83KB | 0.00% |
img/coin-imp-4.png | 24.22KB | 24.47KB | 0.00% |
img/coin-imp-1.png | 10.07KB | 10.70KB | 0.00% |
img/coin-imp-3.png | 3.50KB | 3.49KB | 0.42% |