Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.65MB] [CPU: ▼53.86ms] Passed 4 tests
This is a short check of server-side resources used by Better Captcha
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.34 ▼1.12 | 8.73 ▼41.81 |
Dashboard /wp-admin | 2.35 ▼0.95 | 12.61 ▼40.06 |
Posts /wp-admin/edit.php | 2.35 ▼1.00 | 12.59 ▼41.18 |
Add New Post /wp-admin/post-new.php | 2.35 ▼3.53 | 13.69 ▼92.40 |
Media Library /wp-admin/upload.php | 2.35 ▼0.88 | 11.55 ▼29.29 |
Better Captcha /wp-admin/options-general.php?page=better-captcha-settings | 2.35 | 13.82 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Better Captcha
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.19 ▼0.16 | 1.77 ▼0.01 | 41.52 ▼3.12 |
Dashboard /wp-admin | 2,202 ▲28 | 5.59 ▼0.11 | 86.89 ▼6.27 | 37.25 ▼4.49 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▼0.14 | 40.04 ▲0.52 | 37.54 ▲2.16 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.67 ▲0.43 | 683.10 ▼2.35 | 62.35 ▲9.80 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.17 ▲0.04 | 97.85 ▼16.50 | 42.47 ▼6.05 |
Better Captcha /wp-admin/options-general.php?page=better-captcha-settings | 1,052 | 2.01 | 26.96 | 33.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/better-captcha/better-captcha.php+293
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 15 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=better-captcha-settings
- > Notice in wp-content/plugins/better-captcha/better-captcha.php+270
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/better-captcha/better-captcha.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: better, hcaptcha, captcha, maths, recaptcha...
better-captcha/better-captcha.php 85% from 13 tests
The principal PHP file in "Better Captcha" v. 2.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin365 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 52 | 66 | 365 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.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 | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.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 | 34 | |
▷ Named functions | 33 | 97.06% |
▷ Anonymous functions | 1 | 2.94% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
header.png | 10.50KB | 6.82KB | ▼ 35.03% |
icon-36x36.png | 1.35KB | 0.88KB | ▼ 34.62% |