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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 5.66 ▼37.86 |
Dashboard /wp-admin | 3.42 ▲0.11 | 49.14 ▼1.06 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 46.84 ▲2.33 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 82.92 ▼9.48 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.40 ▼0.06 |
Monero Miner Pro /wp-admin/plugins.php?page=MoneroMinerPro_PluginSettings | 2.30 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,882 ▲136 | 24.69 ▲10.29 | 73.49 ▲71.70 | 42.47 ▼2.32 |
Dashboard /wp-admin | 2,210 ▲22 | 5.77 ▲0.90 | 97.28 ▼20.56 | 41.97 ▼2.01 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.13 ▲0.13 | 33.31 ▼2.69 | 33.09 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.19 ▲5.57 | 679.88 ▼29.54 | 55.92 ▼4.04 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.20 ▼0.08 | 95.08 ▼5.58 | 41.95 ▼3.67 |
Monero Miner Pro /wp-admin/plugins.php?page=MoneroMinerPro_PluginSettings | 982 | 7.18 | 242.40 | 55.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
- > PHP Fatal error
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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 37 | 32 | 639 |
PHP | 8 | 209 | 542 | 568 |
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 code | 0.32 |
Average class complexity | 9.83 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 61.97% |
▷ Protected methods | 27 | 38.03% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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