Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/kcaptcha/kcaptcha.php+155
Undefined variable: login_form
Server metrics [RAM: ▼1.96MB] [CPU: ▼56.63ms] Passed 4 tests
An overview of server-side resources used by Kcaptcha
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 6.48 ▼39.60 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.75 ▼52.15 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.98 ▼40.43 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 7.38 ▼94.35 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.31 ▼29.49 |
Kcaptcha /wp-admin/options-general.php?page=kcaptcha/kcaptcha.php | 2.05 | 7.88 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_kcaptcha_setting |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Kcaptcha: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▼0.00 | 2.20 ▲0.35 | 43.63 ▼3.13 |
Dashboard /wp-admin | 2,196 ▲19 | 5.52 ▼0.14 | 95.28 ▼6.58 | 44.54 ▼0.45 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.98 ▼0.00 | 35.39 ▼0.16 | 34.71 ▼1.67 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 21.04 ▼2.12 | 620.98 ▼24.80 | 59.40 ▼2.74 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.19 ▼0.09 | 104.92 ▲3.60 | 44.45 ▲0.67 |
Kcaptcha /wp-admin/options-general.php?page=kcaptcha/kcaptcha.php | 794 | 2.02 | 26.05 | 27.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/kcaptcha/kcaptcha.php+155
Undefined variable: login_form
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_kcaptcha_setting
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
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
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=kcaptcha/kcaptcha.php
- > Notice in wp-content/plugins/kcaptcha/admin/setting.php+48
Undefined variable: login_form
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=kcaptcha/kcaptcha.php
- > Notice in wp-content/plugins/kcaptcha/admin/setting.php+49
Undefined variable: register_form
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=kcaptcha/kcaptcha.php
- > Notice in wp-content/plugins/kcaptcha/admin/setting.php+51
Undefined variable: comments_form
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=kcaptcha/kcaptcha.php
- > Notice in wp-content/plugins/kcaptcha/admin/setting.php+50
Undefined variable: lost_password_form
- > GET request to /wp-admin/options-general.php?page=kcaptcha/kcaptcha.php
- > Notice in wp-content/plugins/kcaptcha/admin/setting.php+52
Undefined variable: hide_register
SRP 0% 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/kcaptcha/lib/createcaptcha.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/kcaptcha/admin/setting.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kcaptcha/kcaptcha.php:58
- > PHP Warning
Cannot modify header information - headers already sent by (output started at wp-content/plugins/kcaptcha/lib/phptextClass.php:67) in wp-content/plugins/kcaptcha/lib/phptextClass.php on line 68
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: wordpress-captcha-plugin, login-captcha, form-captcha, comment-captcha, anti-spam...
kcaptcha/kcaptcha.php Passed 13 tests
The entry point to "Kcaptcha" version 1.0.1 is a PHP file that has certain tags in its header comment area
62 characters long description:
This is a plugin to add captcha to anywhere in website's form.
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
Good job! No executable or dangerous file extensions detected394 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 55 | 174 | 301 |
CSS | 1 | 0 | 0 | 93 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 40.00% |
▷ Protected methods | 3 | 60.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin