Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▲0.48ms] Passed 4 tests
This is a short check of server-side resources used by Image Captcha
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 42.10 ▼5.90 |
Dashboard /wp-admin | 3.41 ▲0.10 | 51.85 ▼1.84 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 53.65 ▲7.44 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 100.98 ▲7.95 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.26 ▲2.22 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image Captcha
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲178 | 13.67 ▼0.71 | 8.27 ▲6.49 | 42.85 ▼0.58 |
Dashboard /wp-admin | 2,222 ▲34 | 5.85 ▲0.96 | 95.15 ▼22.59 | 41.94 ▼1.95 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.00 ▲0.00 | 38.71 ▲2.43 | 34.02 ▼0.28 |
Add New Post /wp-admin/post-new.php | 1,555 ▲41 | 19.10 ▲1.58 | 603.85 ▼85.66 | 53.59 ▼5.66 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.17 ▼0.05 | 99.38 ▼4.30 | 43.84 ▼0.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/image-captcha/image-captcha.php:461
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.jpg is the captcha on the comment form.), #2 (screenshot-2.jpg is the captcha on the login form.), #3 (screenshot-3.jpg is the captcha settings on the admin plugins page.)
- Tags: You are using too many tags: 22 tag instead of maximum 10
image-captcha/image-captcha.php Passed 13 tests
"Image Captcha" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
42 characters long description:
Image captcha for login page and comments.
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
No dangerous file extensions were detected518 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 52 | 25 | 414 |
PO File | 2 | 24 | 24 | 86 |
JavaScript | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 56.00 |
▷ Minimum class complexity | 56.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
21 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/refresh.png | 10.93KB | 5.51KB | ▼ 49.59% |
images/06-91.png | 5.43KB | 1.95KB | ▼ 64.17% |
images/06-61.png | 6.16KB | 2.07KB | ▼ 66.41% |
images/06-11.png | 5.76KB | 2.02KB | ▼ 64.90% |
images/06-06.png | 6.35KB | 2.23KB | ▼ 64.85% |