Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.85ms] Passed 4 tests
Analyzing server-side resources used by Mighty CAPTCHA
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.51 ▼2.87 |
Dashboard /wp-admin | 3.37 ▲0.07 | 56.90 ▲2.13 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 50.05 ▼7.66 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 88.93 ▼11.01 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.19 ▲4.32 |
Mighty CAPTCHA /wp-admin/plugins.php?page=mighty-captcha | 3.26 | 32.68 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 13 new options
New WordPress options |
---|
can_compress_scripts |
mighty_captcha_site_key |
mighty_captcha_login_compact |
widget_recent-posts |
mighty_captcha_sign_up_compact |
mighty_captcha_comment_form |
mighty_captcha_login_panel |
db_upgraded |
mighty_captcha_sign_up |
mighty_captcha_secret_key |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mighty CAPTCHA
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲73 | 14.18 ▼0.11 | 8.69 ▲6.94 | 43.61 ▲0.66 |
Dashboard /wp-admin | 2,193 ▲16 | 5.53 ▼0.14 | 84.93 ▼3.08 | 39.12 ▼2.05 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▼0.01 | 33.54 ▼8.88 | 36.19 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.42 ▲0.41 | 647.30 ▼45.60 | 53.14 ▼1.18 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.24 ▼0.06 | 95.87 ▼5.58 | 44.43 ▼0.23 |
Mighty CAPTCHA /wp-admin/plugins.php?page=mighty-captcha | 877 | 2.12 | 22.16 | 30.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- mighty_captcha_login_compact
- can_compress_scripts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/mighty-captcha/mighty-captcha.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/mighty-captcha/uninstall.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: login, register, comments, user, google...
mighty-captcha/mighty-captcha.php 92% from 13 tests
The main PHP file in "Mighty CAPTCHA" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 251 characters long)
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
Success! There were no dangerous files found in this plugin358 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 42 | 119 | 237 |
PO File | 1 | 22 | 23 | 83 |
CSS | 2 | 18 | 44 | 38 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
No PNG images were found in this plugin