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
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.83ms] Passed 4 tests
An overview of server-side resources used by Slider CAPTCHA
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 41.01 ▼0.67 |
Dashboard /wp-admin | 3.43 ▲0.08 | 49.53 ▼14.99 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 49.16 ▲3.69 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 89.97 ▼3.34 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 38.20 ▲4.83 |
Slider CAPTCHA /wp-admin/options-general.php?page=slider-captcha-settings | 3.29 | 30.54 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
slider_captcha_last_version |
slider-captcha-sliders |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Slider CAPTCHA
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲211 | 13.75 ▼0.64 | 7.63 ▲5.70 | 42.98 ▲1.09 |
Dashboard /wp-admin | 2,261 ▲73 | 5.03 ▲0.17 | 113.55 ▲7.03 | 38.84 ▼7.24 |
Posts /wp-admin/edit.php | 2,145 ▲56 | 2.25 ▲0.24 | 37.80 ▲2.21 | 35.73 ▼1.95 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.37 ▲0.20 | 651.58 ▼27.35 | 60.06 ▲6.15 |
Media Library /wp-admin/upload.php | 1,463 ▲75 | 4.27 ▲0.06 | 97.88 ▲1.75 | 44.48 ▲0.16 |
Slider CAPTCHA /wp-admin/options-general.php?page=slider-captcha-settings | 23,357 | 4.22 | 270.35 | 59.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- theysaidso_admin_options
- slider_captcha_last_version
- db_upgraded
- widget_theysaidso_widget
- slider-captcha-sliders
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
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)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=slider-captcha-settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=slider-captcha-settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=slider-captcha-settings
- > Notice in wp-content/plugins/slider-captcha/views/slider-captcha-admin.php+139
Undefined variable: i
- 26 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=slider-captcha-settings
- > Notice in wp-content/plugins/slider-captcha/views/slider-captcha-admin.php+161
Undefined index: type
- 16 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=slider-captcha-settings
- > Notice in wp-content/plugins/slider-captcha/views/slider-captcha-admin.php+163
Undefined index: textFeedbackAnimation
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=slider-captcha-settings
- > Notice in wp-content/plugins/slider-captcha/views/slider-captcha-admin.php+175
Undefined index: width
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=slider-captcha-settings
- > Notice in wp-content/plugins/slider-captcha/views/slider-captcha-admin.php+178
Undefined index: height
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=slider-captcha-settings
- > Notice in wp-content/plugins/slider-captcha/views/slider-captcha-admin.php+184
Undefined index: hintText
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=slider-captcha-settings
- > Notice in wp-content/plugins/slider-captcha/views/slider-captcha-admin.php+188
Undefined index: hintTextAfterUnlock
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=slider-captcha-settings
- > Notice in wp-content/plugins/slider-captcha/views/slider-captcha-admin.php+269
Undefined index: styles
- 3486 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=slider-captcha-settings
- > Notice in wp-content/plugins/slider-captcha/views/slider-captcha-admin.php+269
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=slider-captcha-settings
- > Notice in wp-content/plugins/slider-captcha/views/slider-captcha-admin.php+200
Undefined index: hintTextSize
- 1152 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=slider-captcha-settings
- > Notice in wp-content/plugins/slider-captcha/views/slider-captcha-admin.php+264
Undefined index: face
- 2356 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=slider-captcha-settings
- > Notice in wp-content/plugins/slider-captcha/views/slider-captcha-admin.php+269
Trying to access array offset on value of type bool
SRP 50% 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
The following issues need your attention
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/slider-captcha/slider-captcha.php:14
- > PHP Fatal error
Uncaught Error: Class 'sliderCaptchaModule' not found in wp-content/plugins/slider-captcha/modules/shortcode.php:4
- > PHP Fatal error
Uncaught Error: Class 'sliderCaptchaModule' not found in wp-content/plugins/slider-captcha/modules/mailpress.php:3
- > PHP Fatal error
Uncaught Error: Class 'sliderCaptchaModule' not found in wp-content/plugins/slider-captcha/modules/contact-form-7.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/slider-captcha/views/slider-captcha-admin.php:118
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/slider-captcha/font_face_options.php:1
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: There are too many tags (18 tag instead of maximum 10)
slider-captcha/slider-captcha.php 92% from 13 tests
"Slider CAPTCHA" version 1.4.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
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
There were no executable files found in this plugin5,965 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 711 | 846 | 2,704 |
CSS | 3 | 408 | 306 | 1,305 |
PHP | 8 | 206 | 129 | 1,218 |
SVG | 1 | 0 | 0 | 295 |
PO File | 1 | 60 | 67 | 172 |
Sass | 2 | 32 | 2 | 122 |
Bourne Shell | 1 | 19 | 0 | 53 |
Markdown | 1 | 22 | 0 | 52 |
JSON | 2 | 0 | 0 | 44 |
PHP code Passed 2 tests
A short 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.52 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 52 | 98.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.89% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
js/select2/select2.png | 0.60KB | 0.99KB | 0.00% |