Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.01MB] [CPU: ▲4.48ms] Passed 4 tests
An overview of server-side resources used by Captcha by BestWebSoft - Spam Protection, Security Plugin for WordPress Forms
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.54 ▲1.08 | 49.16 ▲7.17 |
Dashboard /wp-admin | 4.35 ▲1.00 | 59.58 ▼8.64 |
Posts /wp-admin/edit.php | 4.40 ▲1.05 | 58.67 ▲17.46 |
Add New Post /wp-admin/post-new.php | 6.89 ▲1.00 | 101.63 ▲6.45 |
Media Library /wp-admin/upload.php | 4.21 ▲0.98 | 47.03 ▲12.93 |
Server storage [IO: ▲8.70MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 338 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_cptch_packages |
wp_cptch_images |
wp_cptch_responses |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
bstwbsftwppdtplgns_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
cptch_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Captcha by BestWebSoft - Spam Protection, Security Plugin for WordPress Forms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,882 ▲136 | 14.44 ▼0.12 | 1.69 ▼0.04 | 43.39 ▲1.53 |
Dashboard /wp-admin | 2,242 ▲62 | 5.61 ▼0.04 | 96.88 ▲9.63 | 50.78 ▲15.50 |
Posts /wp-admin/edit.php | 2,202 ▲102 | 2.21 ▲0.23 | 35.38 ▼2.70 | 30.62 ▼7.36 |
Add New Post /wp-admin/post-new.php | 1,633 ▲98 | 23.13 ▲4.71 | 676.81 ▲72.48 | 51.61 ▼11.32 |
Media Library /wp-admin/upload.php | 1,450 ▲47 | 4.21 ▲0.01 | 97.12 ▲1.11 | 42.96 ▲1.90 |
Allow List /wp-admin/captcha-allowlist.php | 26 | 0.42 | 0.10 | 14.77 |
Settings /wp-admin/captcha.php | 26 | 0.42 | 0.09 | 7.28 |
Packages /wp-admin/captcha-packages.php | 26 | 0.42 | 0.11 | 7.81 |
BWS Panel /wp-admin/captcha.php?page=cptch-bws-panel | 26 | 0.42 | 0.06 | 6.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_cptch_responses
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/captcha-bws/bws_menu/product_list.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/captcha-bws/captcha-bws.php:1985
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/captcha-bws/bws_menu/class-bws-settings.php:1453
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/captcha-bws/includes/class-cptch-settings-tabs.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/captcha-allowlist.php
- > Network (severe)
wp-admin/captcha-allowlist.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/captcha.php
- > Network (severe)
wp-admin/captcha.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/captcha-packages.php
- > Network (severe)
wp-admin/captcha-packages.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/captcha.php?page=cptch-bws-panel
- > Network (severe)
wp-admin/captcha.php?page=cptch-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Login form with Captcha.), #2 (Registration form with Captcha.), #3 (Lost password form with Captcha.), #4 (Comments form with Captcha.), #5 (Contact form with Captcha.), #6 (Login form with Optical Character Recognition Captcha Type.), #7 (Login form with Slide Captcha Type.), #8 (Captcha Settings page.), #9 (Captcha Packages page.), #10 (Captcha Allow List page.)
- Tags: You are using too many tags: 12 tag instead of maximum 10
captcha-bws/captcha-bws.php Passed 13 tests
The primary PHP file in "Captcha by BestWebSoft - Spam Protection, Security Plugin for WordPress Forms" version 5.1.8 is used by WordPress to initiate all plugin functionality
63 characters long description:
#1 super security anti-spam captcha plugin for WordPress forms.
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 detected75,754 lines of code in 97 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 52 | 21,013 | 34,833 | 45,705 |
JSON | 3 | 0 | 0 | 14,967 |
PHP | 14 | 848 | 1,173 | 8,063 |
CSS | 13 | 169 | 283 | 5,842 |
JavaScript | 11 | 124 | 167 | 1,010 |
SVG | 4 | 0 | 0 | 167 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 82.67 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 8.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 56.52% |
▷ Protected methods | 1 | 1.45% |
▷ Private methods | 29 | 42.03% |
Functions | 124 | |
▷ Named functions | 124 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
182 PNG files occupy 3.60MB with 1.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
images/package/arabic_bw/5.png | 2.05KB | 1.41KB | ▼ 31.19% |
images/package/arabic_bw/0.png | 2.44KB | 1.68KB | ▼ 31.25% |
images/package/dots_bt/7.png | 3.36KB | 2.39KB | ▼ 28.82% |
screenshot-4.png | 59.65KB | 22.44KB | ▼ 62.38% |