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
These installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/ultimate-captcha/classes/ultimatecaptcha.class.php+1157
Undefined index: email_password_change_staff
Server metrics [RAM: ▼1.19MB] [CPU: ▼48.38ms] Passed 4 tests
Analyzing server-side resources used by Ultimate Captcha reCAPTCHA Plugin for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.80 ▼0.66 | 9.80 ▼28.83 |
Dashboard /wp-admin | 2.82 ▼0.48 | 11.36 ▼38.70 |
Posts /wp-admin/edit.php | 2.82 ▼0.54 | 11.55 ▼39.83 |
Add New Post /wp-admin/post-new.php | 2.82 ▼3.07 | 10.73 ▼86.15 |
Media Library /wp-admin/upload.php | 2.82 ▼0.41 | 12.48 ▼18.94 |
More Functionality! /wp-admin/admin.php?page=ultimatecaptcha&tab=pro | 2.82 | 10.53 |
Ultimate Captcha /wp-admin/admin.php?page=ultimatecaptcha | 2.82 | 11.21 |
Server storage [IO: ▲2.90MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 209 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
ultimatecaptcha_ini_setup |
db_upgraded |
widget_recent-posts |
ultimatecaptcha_pro_active |
can_compress_scripts |
widget_recent-comments |
ultimatecaptcha_options |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Ultimate Captcha reCAPTCHA Plugin for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,063 ▲302 | 15.86 ▲1.45 | 26.39 ▲24.74 | 42.86 ▼4.91 |
Dashboard /wp-admin | 2,240 ▲63 | 5.82 ▲0.14 | 91.81 ▲4.38 | 76.97 ▲31.18 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 2.85 ▲0.84 | 46.95 ▲11.21 | 36.33 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,574 ▲44 | 24.11 ▲1.10 | 650.74 ▼44.56 | 97.44 ▲35.49 |
Media Library /wp-admin/upload.php | 1,456 ▲56 | 5.40 ▲1.15 | 97.59 ▼13.08 | 86.22 ▲38.29 |
More Functionality! /wp-admin/admin.php?page=ultimatecaptcha&tab=pro | 925 | 2.75 | 30.57 | 34.99 |
Ultimate Captcha /wp-admin/admin.php?page=ultimatecaptcha | 869 | 2.70 | 34.29 | 32.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/ultimate-captcha/classes/ultimatecaptcha.class.php+1157
Undefined index: email_password_change_staff
- This plugin did not uninstall successfully, leaving 9 options in the database
- ultimatecaptcha_ini_setup
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- ultimatecaptcha_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- ultimatecaptcha_pro_active
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ultimatecaptcha
- > Notice in wp-content/plugins/ultimate-captcha/classes/ultimatecaptcha.class.php+1157
Undefined index: email_password_change_staff
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ultimatecaptcha
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ultimate_captchastyle handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ultimatecaptcha
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ultimate_captchastyle handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ultimatecaptcha
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ultimatecaptcha_recaptcha_js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ultimatecaptcha
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ultimatecaptcha_recaptcha_js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ultimatecaptcha
- > Notice in wp-content/plugins/ultimate-captcha/classes/ultimatecaptcha.class.php+1245
Undefined variable: custom_badge
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ultimatecaptcha
- > Notice in wp-content/plugins/ultimate-captcha/classes/ultimatecaptcha.class.php+1512
Undefined property: UltimateCaptchaPlugin::$valid_c
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
Please take a closer look at the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'UltimateCaptchaCommon' not found in wp-content/plugins/ultimate-captcha/classes/ultimatecaptcha.class.php:2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/ultimate-captcha/addons/profiles/admin/admin.php on line 14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-captcha/addons/profiles/admin/admin.php on line 14
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/ultimate-captcha/addons/profiles/admin/admin.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ultimate-captcha/addons/profiles/index.php:4
- > PHP Fatal error
Uncaught Error: Class 'UltimateCaptchaCommon' not found in wp-content/plugins/ultimate-captcha/classes/ultimatecaptcha.messaging.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ultimatecaptcha
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/ultimate-captcha/admin/scripts/admin.js:107:55)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&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,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ultimatecaptcha
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (reCaptcha on Login Form), #2 (reCaptcha on Registration Form), #3 (reCaptcha on Popup Registration Form), #4 (reCaptcha on Custom Login Form (Pro)), #5 (reCaptcha on Custom Registration Form (Pro)), #6 (reCaptcha on Custom Password Reset Form (Pro)), #7 (Password Strength (Pro))
ultimate-captcha/index.php 92% from 13 tests
The primary PHP file in "Ultimate Captcha reCAPTCHA Plugin for WordPress" version 1.0.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ultimate-captcha.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin26,300 lines of code in 123 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 13 | 1,281 | 202 | 6,735 |
JavaScript | 42 | 557 | 1,040 | 6,131 |
PHP | 18 | 2,352 | 343 | 4,277 |
SVG | 3 | 0 | 0 | 3,158 |
Sass | 23 | 50 | 48 | 2,649 |
LESS | 23 | 50 | 64 | 2,635 |
PO File | 1 | 312 | 355 | 715 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 82.40 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 215.00 |
Average method complexity | 4.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 134 | |
▷ Static methods | 1 | 0.75% |
▷ Public methods | 134 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
53 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/imagcropper/img/cut_icon.png | 3.93KB | 0.82KB | ▼ 79.23% |
admin/images/logo-welcome.png | 23.63KB | 4.17KB | ▼ 82.33% |
admin/images/Star.png | 4.04KB | 1.35KB | ▼ 66.63% |
admin/img/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
admin/img/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |