Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/i-am-human/iamhuman_options.php+417
Use of undefined constant IAMHUMAN_OPTION_COLOUR_ONE - assumed 'IAMHUMAN_OPTION_COLOUR_ONE' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.96MB] [CPU: ▼50.26ms] Passed 4 tests
A check of server-side resources used by I am Human
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.71 ▼35.45 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.54 ▼44.25 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.52 ▼41.03 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.00 ▼80.32 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.55 ▼27.84 |
I am human options /wp-admin/options-general.php?page=i-am-human-options | 2.05 | 6.83 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by I am Human
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲215 | 14.15 ▼0.23 | 7.03 ▲5.20 | 42.19 ▲0.56 |
Dashboard /wp-admin | 2,226 ▲38 | 5.25 ▼0.57 | 107.28 ▼11.36 | 41.77 ▼5.70 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.34 ▲0.29 | 40.10 ▲2.76 | 33.94 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.26 ▲5.72 | 606.27 ▼66.35 | 35.47 ▼19.54 |
Media Library /wp-admin/upload.php | 1,408 ▲26 | 4.47 ▲0.28 | 95.26 ▼3.80 | 43.97 ▲2.20 |
I am human options /wp-admin/options-general.php?page=i-am-human-options | 6,568 | 4.63 | 103.64 | 26.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/i-am-human/iamhuman_options.php+417
Use of undefined constant IAMHUMAN_OPTION_COLOUR_ONE - assumed 'IAMHUMAN_OPTION_COLOUR_ONE' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=i-am-human-options
- > Warning in wp-content/plugins/i-am-human/iamhuman_options.php+417
Use of undefined constant IAMHUMAN_OPTION_COLOUR_ONE - assumed 'IAMHUMAN_OPTION_COLOUR_ONE' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=i-am-human-options
- > Warning in wp-content/plugins/i-am-human/iamhuman_options.php+417
Use of undefined constant IAMHUMAN_OPTION_COLOUR_TWO - assumed 'IAMHUMAN_OPTION_COLOUR_TWO' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=i-am-human-options
- > Warning in wp-content/plugins/i-am-human/iamhuman_options.php+417
Use of undefined constant IAMHUMAN_OPTION_COLOUR_HOVER - assumed 'IAMHUMAN_OPTION_COLOUR_HOVER' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=i-am-human-options
- > Warning in wp-content/plugins/i-am-human/iamhuman_options.php+417
Use of undefined constant IAMHUMAN_OPTION_GRID_SIZE - assumed 'IAMHUMAN_OPTION_GRID_SIZE' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=i-am-human-options
- > Warning in wp-content/plugins/i-am-human/iamhuman_options.php+417
Use of undefined constant IAMHUMAN_OPTION_BACKGROUND_COLOUR - assumed 'IAMHUMAN_OPTION_BACKGROUND_COLOUR' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=i-am-human-options
- > Warning in wp-content/plugins/i-am-human/iamhuman_options.php+417
Use of undefined constant IAMHUMAN_OPTION_DESCRIPTION_TITLE - assumed 'IAMHUMAN_OPTION_DESCRIPTION_TITLE' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=i-am-human-options
- > Warning in wp-content/plugins/i-am-human/iamhuman_options.php+417
Use of undefined constant IAMHUMAN_OPTION_DESCRIPTION_TEXT - assumed 'IAMHUMAN_OPTION_DESCRIPTION_TEXT' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=i-am-human-options
- > Warning in wp-content/plugins/i-am-human/iamhuman_options.php+417
Use of undefined constant IAMHUMAN_OPTION_INCORRECT_ATTEMPT_MESSAGE - assumed 'IAMHUMAN_OPTION_INCORRECT_ATTEMPT_MESSAGE' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=i-am-human-options
- > Warning in wp-content/plugins/i-am-human/iamhuman_options.php+417
Use of undefined constant IAMHUMAN_OPTION_QUESTION_COLOUR_ONE_STRING - assumed 'IAMHUMAN_OPTION_QUESTION_COLOUR_ONE_STRING' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=i-am-human-options
- > Warning in wp-content/plugins/i-am-human/iamhuman_options.php+417
Use of undefined constant IAMHUMAN_OPTION_QUESTION_COLOUR_TWO_STRING - assumed 'IAMHUMAN_OPTION_QUESTION_COLOUR_TWO_STRING' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=i-am-human-options
- > Warning in wp-content/plugins/i-am-human/iamhuman_options.php+417
Use of undefined constant IAMHUMAN_OPTION_ANSWER_COLOUR_ONE_STRING - assumed 'IAMHUMAN_OPTION_ANSWER_COLOUR_ONE_STRING' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=i-am-human-options
- > Warning in wp-content/plugins/i-am-human/iamhuman_options.php+417
Use of undefined constant IAMHUMAN_OPTION_ANSWER_COLOUR_TWO_STRING - assumed 'IAMHUMAN_OPTION_ANSWER_COLOUR_TWO_STRING' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=i-am-human-options
- > Warning in wp-content/plugins/i-am-human/iamhuman_options.php+417
Use of undefined constant IAMHUMAN_OPTION_ENABLE_POST_COMMENTS - assumed 'IAMHUMAN_OPTION_ENABLE_POST_COMMENTS' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/i-am-human/iamhuman_options.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/i-am-human/iamhuman_options.php:54
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: fun, human verification, captcha, spam
i-am-human/iamhuman.php 92% from 13 tests
The primary PHP file in "I am Human" version 1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("i-am-human.php" instead of "iamhuman.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
There were no executable files found in this plugin678 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 184 | 89 | 528 |
JavaScript | 1 | 44 | 12 | 117 |
CSS | 1 | 10 | 4 | 33 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.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 | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.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 | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 13 | 100.00% |
▷ Public constants | 13 | 100.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
There are no PNG files in this plugin