Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.17MB] [CPU: ▼42.81ms] Passed 4 tests
Server-side resources used by Honey Coinhive Locker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.80 ▼0.66 | 13.93 ▼29.96 |
Dashboard /wp-admin | 2.84 ▼0.46 | 16.50 ▼33.94 |
Posts /wp-admin/edit.php | 2.84 ▼0.51 | 16.95 ▼31.73 |
Add New Post /wp-admin/post-new.php | 2.84 ▼3.04 | 17.30 ▼75.59 |
Media Library /wp-admin/upload.php | 2.84 ▼0.39 | 18.12 ▼16.01 |
Coinhive Content Locker /wp-admin/options-general.php?page=chcl | 2.84 | 16.70 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/honey-coinhive-locker/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 11 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
chcl_site_key |
chcl_bootstrap_button |
theysaidso_admin_options |
can_compress_scripts |
chcl_color_setting |
db_upgraded |
chcl_hashes |
chcl_secret_key |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Honey Coinhive Locker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲159 | 13.82 ▼0.55 | 6.68 ▲4.67 | 26.35 ▼16.24 |
Dashboard /wp-admin | 2,245 ▲39 | 5.06 ▼0.86 | 105.90 ▲5.88 | 47.08 ▲9.48 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.35 ▲0.33 | 38.78 ▲0.82 | 40.17 ▲5.23 |
Add New Post /wp-admin/post-new.php | 1,703 ▲157 | 22.75 ▼0.39 | 650.68 ▼37.61 | 44.07 ▼13.21 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.53 ▲0.33 | 101.94 ▼1.89 | 53.61 ▲5.10 |
Coinhive Content Locker /wp-admin/options-general.php?page=chcl | 996 | 2.52 | 41.13 | 41.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5737
Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.
- The uninstall procedure has failed, leaving 11 options in the database
- chcl_color_setting
- chcl_bootstrap_button
- chcl_site_key
- widget_recent-posts
- chcl_secret_key
- chcl_hashes
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=chcl
- > User deprecated in wp-includes/functions.php+5737
Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.
- > GET request to /wp-admin/options-general.php?page=chcl
- > Notice in wp-content/plugins/honey-coinhive-locker/honey_locker.php+270
Undefined variable: current_user
- > GET request to /wp-admin/options-general.php?page=chcl
- > Notice in wp-content/plugins/honey-coinhive-locker/honey_locker.php+270
Trying to get property 'user_login' of non-object
- > GET request to /wp-admin/options-general.php?page=chcl
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=chcl
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function write_log() in wp-content/plugins/honey-coinhive-locker/honey_locker.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=chcl
- > Network (severe)
http://authedmine.com/lib/authedmine.min.js?ver=6.3.1 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/options-general.php?page=chcl
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: CoinHive is not defined" "ReferenceError: CoinHive is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/honey-coinhive-locker/js/honey_locker.js?v1&ver=6.3.1:5:11)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=chcl
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: CoinHive is not defined
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- License uri: Please fix this invalid url: "URI: http://www.gnu.org/licenses/gpl-2.0.html"
honey-coinhive-locker/honey_locker.php 92% from 13 tests
"Honey Coinhive Locker" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("honey-coinhive-locker.php" instead of "honey_locker.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected482 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 35 | 17 | 320 |
JavaScript | 2 | 8 | 0 | 108 |
PO File | 1 | 19 | 19 | 53 |
CSS | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/honeylogo.png | 38.97KB | 5.05KB | ▼ 87.04% |