10% wp-monero-miner-pro

Code Review | Monero Miner Pro: only 0.2% fee

WordPress plugin Monero Miner Pro: only 0.2% fee scored10%from 54 tests.

About plugin

  • Plugin page: wp-monero-miner-pro
  • Plugin version: 3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2018
  • Latest release: Feb 8, 2018
  • Number of updates: 9
  • Update frequency: every 0.8 days
  • Top authors: heykidwhatsthedeal (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /3,375 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/wp-monero-miner-pro/MoneroMinerPro_Plugin.php+31
    count(): Parameter must be an array or an object that implements Countable

Server metrics [RAM: ▼0.24MB] [CPU: ▼12.12ms] Passed 4 tests

Server-side resources used by Monero Miner Pro: only 0.2% fee
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.295.66 ▼37.86
Dashboard /wp-admin3.42 ▲0.1149.14 ▼1.06
Posts /wp-admin/edit.php3.53 ▲0.1746.84 ▲2.33
Add New Post /wp-admin/post-new.php6.00 ▲0.1182.92 ▼9.48
Media Library /wp-admin/upload.php3.34 ▲0.1136.40 ▼0.06
Monero Miner Pro /wp-admin/plugins.php?page=MoneroMinerPro_PluginSettings2.306.13

Server storage [IO: ▲2.83MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 11 new options
New WordPress options
MoneroMinerPro_Plugin_throttle
can_compress_scripts
widget_theysaidso_widget
MoneroMinerPro_Plugin_wallet
MoneroMinerPro_Plugin_enable_users
widget_recent-posts
MoneroMinerPro_Plugin__version
theysaidso_admin_options
MoneroMinerPro_Plugin__installed
widget_recent-comments
...

Browser metrics Passed 4 tests

Checking browser requirements for Monero Miner Pro: only 0.2% fee
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲13624.69 ▲10.2973.49 ▲71.7042.47 ▼2.32
Dashboard /wp-admin2,210 ▲225.77 ▲0.9097.28 ▼20.5641.97 ▼2.01
Posts /wp-admin/edit.php2,093 ▲42.13 ▲0.1333.31 ▼2.6933.09 ▼0.15
Add New Post /wp-admin/post-new.php1,536 ▲2223.19 ▲5.57679.88 ▼29.5455.92 ▼4.04
Media Library /wp-admin/upload.php1,395 ▲74.20 ▼0.0895.08 ▼5.5841.95 ▼3.67
Monero Miner Pro /wp-admin/plugins.php?page=MoneroMinerPro_PluginSettings9827.18242.4055.74

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 11 options
    • MoneroMinerPro_Plugin_wallet
    • widget_recent-comments
    • MoneroMinerPro_Plugin_enable_users
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • MoneroMinerPro_Plugin__version
    • MoneroMinerPro_Plugin__installed
    • MoneroMinerPro_Plugin_throttle
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/plugins.php?page=MoneroMinerPro_PluginSettings
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the miner-stat handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/plugins.php?page=MoneroMinerPro_PluginSettings
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the plotly handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-monero-miner-pro/monero-miner-pro.php:77

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/plugins.php?page=MoneroMinerPro_PluginSettings
    • > Network (severe)
    http://open-hive-server-1.pp.ua:3000/stats/ - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt is a good inspiration

wp-monero-miner-pro/monero-miner-pro.php 85% from 13 tests

The principal PHP file in "Monero Miner Pro: only 0.2% fee" v. 3.8 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-monero-miner-pro.php" instead of "monero-miner-pro.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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 detected1,207 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript73732639
PHP8209542568

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.83
▷ Minimum class complexity2.00
▷ Maximum class complexity39.00
Average method complexity1.69
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes00.00%
Methods71
▷ Static methods00.00%
▷ Public methods4461.97%
▷ Protected methods2738.03%
▷ Private methods00.00%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin