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
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/captcha-for-widgets/captcha-for-widgets.php+248
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.88MB] [CPU: ▼53.60ms] Passed 4 tests
Server-side resources used by Captcha for Widgets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.35 | 5.05 ▼34.57 |
Dashboard /wp-admin | 2.13 ▼1.17 | 5.84 ▼44.02 |
Posts /wp-admin/edit.php | 2.14 ▼1.22 | 6.75 ▼37.96 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 5.49 ▼97.83 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 6.11 ▼29.15 |
Captcha for Widgets Settings /wp-admin/options-general.php?page=captcha_for_widgets_options | 2.14 | 5.39 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Captcha for Widgets
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲152 | 13.97 ▼0.34 | 8.41 ▲6.66 | 41.21 ▼6.25 |
Dashboard /wp-admin | 2,218 ▲30 | 4.90 ▲0.03 | 112.62 ▼4.13 | 38.84 ▼7.23 |
Posts /wp-admin/edit.php | 2,101 ▲15 | 2.05 ▼0.00 | 47.32 ▲9.95 | 34.46 ▲0.40 |
Add New Post /wp-admin/post-new.php | 1,524 ▲10 | 23.57 ▲0.11 | 671.87 ▲5.33 | 60.19 ▼3.12 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.28 ▲0.12 | 103.54 ▲4.08 | 41.72 ▼4.76 |
Captcha for Widgets Settings /wp-admin/options-general.php?page=captcha_for_widgets_options | 993 | 2.16 | 30.20 | 30.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/captcha-for-widgets/captcha-for-widgets.php+248
Array and string offset access syntax with curly braces is deprecated
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=captcha_for_widgets_options
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/captcha-for-widgets/captcha-for-widgets.php+248
Array and string offset access syntax with curly braces is deprecated
SRP 0% 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 output text when accessed directly:
- > /wp-content/plugins/captcha-for-widgets/captcha-for-widgets.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/captcha-for-widgets/admin/realperson-settings.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/captcha-for-widgets/admin/options.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/captcha-for-widgets/admin/recaptcha-settings.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 75% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Contributors: The plugin contributors field is not present
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== captcha-for-widgets ===
) - Screenshots: These screenshots do not have images: #1 (The admin panel for reCAPTCHA.), #2 (The admin panel for Realperson.)
- Contributors: Please add at least on tag
captcha-for-widgets/captcha-for-widgets.php 92% from 13 tests
The entry point to "Captcha for Widgets" version 0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 177 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected857 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 110 | 130 | 501 |
JavaScript | 8 | 36 | 23 | 234 |
CSS | 6 | 8 | 2 | 122 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
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 | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.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
3 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 80.82KB | 32.97KB | ▼ 59.20% |
admin/css/realperson-icon.png | 1.26KB | 1.36KB | 0.00% |
assets/screenshot-2.png | 52.45KB | 28.04KB | ▼ 46.53% |