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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.79MB] [CPU: ▲4.10ms] Passed 4 tests
A check of server-side resources used by SVG Captcha
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.30 ▲0.83 | 52.98 ▲13.14 |
Dashboard /wp-admin | 4.13 ▲0.82 | 58.94 ▲8.87 |
Posts /wp-admin/edit.php | 4.18 ▲0.82 | 56.18 ▲2.99 |
Add New Post /wp-admin/post-new.php | 6.64 ▲0.76 | 90.88 ▼8.59 |
Media Library /wp-admin/upload.php | 3.99 ▲0.76 | 51.28 ▲15.15 |
Captcha /wp-admin/options-general.php?page=svg_captcha_settings | 3.98 | 44.73 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
svg_captcha_version |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by SVG Captcha
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲152 | 13.95 ▼0.43 | 10.35 ▲8.32 | 41.54 ▼3.25 |
Dashboard /wp-admin | 2,218 ▲27 | 4.87 ▼0.02 | 99.20 ▼5.99 | 42.25 ▲1.73 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.03 ▼0.03 | 36.32 ▼4.61 | 35.76 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 18.24 ▲0.15 | 619.32 ▼24.80 | 70.51 ▲15.92 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.26 ▲0.07 | 102.30 ▼2.40 | 46.15 ▲1.22 |
Captcha /wp-admin/options-general.php?page=svg_captcha_settings | 1,057 | 3.35 | 50.24 | 26.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- svg_captcha_version
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Contributors: The plugin contributors field is missing
- Screenshots: Add images for these screenshots: #1 (SVG Captcha for comments), #2 (SVG Captcha for login form), #3 (SVG Captcha general settings), #4 (SVG Captcha location settings), #5 (SVG Captcha customizations)
svg-captcha/svg-captcha.php Passed 13 tests
"SVG Captcha" version 1.0.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
51 characters long description:
Validate your forms with a self hosted SVG Captcha.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,269 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 589 | 1,165 | 2,133 |
JavaScript | 7 | 33 | 25 | 130 |
JSON | 1 | 0 | 0 | 4 |
Markdown | 1 | 0 | 0 | 2 |
CSS | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 40.86 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 105 | |
▷ Static methods | 5 | 4.76% |
▷ Public methods | 75 | 71.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 30 | 28.57% |
Functions | 15 | |
▷ Named functions | 8 | 53.33% |
▷ Anonymous functions | 7 | 46.67% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 38.80KB | 14.43KB | ▼ 62.82% |
screenshot-3.png | 18.68KB | 7.12KB | ▼ 61.88% |
screenshot-4.png | 21.51KB | 8.08KB | ▼ 62.43% |
screenshot-2.png | 22.86KB | 9.28KB | ▼ 59.40% |
screenshot-1.png | 11.31KB | 10.52KB | ▼ 6.94% |