Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.19ms] Passed 4 tests
A check of server-side resources used by Honey Coinhive Captcha
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.04 | 41.91 ▼1.00 |
Dashboard /wp-admin | 3.34 ▲0.04 | 54.90 ▲2.86 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 50.54 ▼0.86 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 99.36 ▼5.17 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 37.40 ▼1.74 |
Coinhive Captcha /wp-admin/options-general.php?page=coinhive-captcha-options | 3.24 | 34.10 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_honey_captcha |
wp_honey_captcha_tokens |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
chc_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Honey Coinhive Captcha
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲119 | 13.33 ▼1.06 | 1.74 ▲0.05 | 44.35 ▲1.97 |
Dashboard /wp-admin | 2,229 ▲47 | 5.08 ▲0.17 | 114.72 ▲7.25 | 39.58 ▼6.14 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.32 ▲0.26 | 40.35 ▼1.49 | 35.71 ▲1.75 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.53 ▲0.42 | 688.04 ▲14.59 | 39.21 ▼15.73 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.46 ▲0.23 | 98.02 ▼1.28 | 43.68 ▲0.51 |
Coinhive Captcha /wp-admin/options-general.php?page=coinhive-captcha-options | 1,028 | 2.41 | 43.72 | 25.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_honey_captcha_tokens
- wp_honey_captcha
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- chc_db_version
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/honey-coinhive-captcha/honey_captcha.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- License uri: Please fix this invalid url: "URI: http://www.gnu.org/licenses/gpl-2.0.html"
honey-coinhive-captcha/honey_captcha.php 92% from 13 tests
The main file in "Honey Coinhive Captcha" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("honey-coinhive-captcha.php" instead of "honey_captcha.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected697 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 73 | 24 | 454 |
JavaScript | 2 | 28 | 1 | 243 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 40 | |
▷ Named functions | 40 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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% |