Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.52MB] [CPU: ▼290.79ms] Passed 4 tests
An overview of server-side resources used by WP Monero Miner
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.59 | 60.69 ▲10.08 |
Dashboard /wp-admin | 3.94 ▲0.53 | 43.08 ▲10.11 |
Posts /wp-admin/edit.php | 4.16 ▲0.52 | 47.69 ▲7.54 |
Add New Post /wp-admin/post-new.php | 7.41 ▲0.44 | 98.68 ▼1,181.80 |
Media Library /wp-admin/upload.php | 3.91 ▲0.61 | 27.16 ▲1.03 |
WP Monero Miner /wp-admin/options-general.php?page=wp-coin-hive | 3.89 | 25.99 |
Server storage [IO: ▲4.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 801 new files
Database: no new tables, 9 new options
New WordPress options |
---|
wp_monero_miner_secret_key |
wp_monero_miner_captcha_login_enabled |
wp_monero_miner_captcha_autostart |
wp_monero_miner_captcha_registration_enabled |
wp_monero_miner_enabled |
wp_monero_miner_site_key |
widget_monero-miner-for-coin-hive |
wp_monero_miner_captcha_hashes |
wp_monero_miner_log |
Browser metrics Passed 4 tests
WP Monero Miner: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,948 ▲222 | 16.38 ▲0.43 | 10.76 ▲5.04 | 2.70 ▲0.66 |
Dashboard /wp-admin | 2,913 ▲55 | 6.18 ▲0.03 | 115.36 ▼17.22 | 152.87 ▼2.10 |
Posts /wp-admin/edit.php | 2,683 ▼8 | 3.38 ▲0.14 | 65.75 ▼0.31 | 138.20 ▼6.32 |
Add New Post /wp-admin/post-new.php | 1,692 ▲24 | 19.74 ▲0.78 | 374.20 ▼10.86 | 168.82 ▲17.10 |
Media Library /wp-admin/upload.php | 1,723 ▲28 | 5.56 ▲0.04 | 122.61 ▼29.98 | 186.38 ▼2.47 |
WP Monero Miner /wp-admin/options-general.php?page=wp-coin-hive | 1,326 | 2.86 | 62.07 | 168.57 |
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 were found after uninstall: 9 options
- wp_monero_miner_captcha_registration_enabled
- wp_monero_miner_captcha_hashes
- wp_monero_miner_log
- wp_monero_miner_enabled
- wp_monero_miner_captcha_autostart
- wp_monero_miner_captcha_login_enabled
- widget_monero-miner-for-coin-hive
- wp_monero_miner_site_key
- wp_monero_miner_secret_key
Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-monero-miner-using-coin-hive/vendor/mustache/mustache/bin/build_bootstrap.php
- > /wp-content/plugins/wp-monero-miner-using-coin-hive/vendor/mobiledetect/mobiledetectlib/export/exportToJSON.php
- 64× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-monero-miner-using-coin-hive/vendor/mustache/mustache/test/Mustache/Test/HelperCollectionTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-monero-miner-using-coin-hive/vendor/mustache/mustache/test/Mustache/Test/SpecTestCase.php:12
- > PHP Fatal error
Uncaught Error: Class 'Mustache_Test_SpecTestCase' not found in wp-content/plugins/wp-monero-miner-using-coin-hive/vendor/mustache/mustache/test/Mustache/Test/Functional/MustacheSpecTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-monero-miner-using-coin-hive/vendor/mustache/mustache/test/Mustache/Test/CompilerTest.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Logger' not found in wp-content/plugins/wp-monero-miner-using-coin-hive/vendor/mustache/mustache/src/Mustache/Logger/AbstractLogger.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-monero-miner-using-coin-hive/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/LambdaHelperTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-monero-miner-using-coin-hive/vendor/mustache/mustache/test/Mustache/Test/Loader/FilesystemLoaderTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-monero-miner-using-coin-hive/vendor/mustache/mustache/test/Mustache/Test/Loader/ArrayLoaderTest.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/wp-monero-miner-using-coin-hive/vendor/mustache/mustache/src/Mustache/Loader/CascadingLoader.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-monero-miner-using-coin-hive/vendor/mustache/mustache/test/Mustache/Test/Exception/UnknownFilterExceptionTest.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
3 plugin tags: monero, mining, monetization
wp-monero-miner-using-coin-hive/wp-coin-hive.php 92% from 13 tests
The entry point to "WP Monero Miner" version 4.1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-monero-miner-using-coin-hive.php" instead of "wp-coin-hive.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Please make sure to remedy the following
- Do not distribute dangerous files with your plugin
- .ms - Maxwell Script in Maxwell Render
- ☣ wp-content/plugins/wp-monero-miner-using-coin-hive/vendor/mustache/mustache/test/fixtures/templates/alpha.ms
- ☣ wp-content/plugins/wp-monero-miner-using-coin-hive/vendor/mustache/mustache/test/fixtures/templates/beta.ms
- .ms - Maxwell Script in Maxwell Render
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 295 | 7,219 | 5,627 | 63,616 |
HTML | 174 | 3,620 | 9 | 21,919 |
PHP | 142 | 1,834 | 4,322 | 8,132 |
CSS | 68 | 487 | 250 | 2,673 |
Markdown | 6 | 595 | 0 | 1,156 |
JSON | 7 | 0 | 0 | 234 |
PO File | 4 | 48 | 48 | 176 |
Mustache | 37 | 4 | 0 | 164 |
XML | 2 | 47 | 78 | 79 |
YAML | 3 | 6 | 0 | 32 |
SVG | 1 | 0 | 0 | 19 |
Bourne Shell | 1 | 0 | 1 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 145 | |
▷ Abstract classes | 5 | 3.45% |
▷ Concrete classes | 140 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 612 | |
▷ Static methods | 41 | 6.70% |
▷ Public methods | 529 | 86.44% |
▷ Protected methods | 23 | 3.76% |
▷ Private methods | 60 | 9.80% |
Functions | 40 | |
▷ Named functions | 4 | 10.00% |
▷ Anonymous functions | 36 | 90.00% |
Constants | 76 | |
▷ Global constants | 1 | 1.32% |
▷ Class constants | 75 | 98.68% |
▷ Public constants | 75 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/js/codemirror/doc/logo.png | 9.09KB | 4.10KB | ▼ 54.95% |
admin/js/codemirror/doc/yinyang.png | 4.52KB | 2.03KB | ▼ 55.19% |