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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.92ms] Passed 4 tests
This is a short check of server-side resources used by VisualWP Cloudflare Turnstile - Easy Anti-Spam alternative to CAPTCHA
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.62 ▼5.00 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.80 ▼0.96 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.95 ▼3.41 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.33 ▼10.30 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.42 ▲4.03 |
Turnstile /wp-admin/options-general.php?page=vwptn-turnstile | 3.21 | 30.42 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by VisualWP Cloudflare Turnstile - Easy Anti-Spam alternative to CAPTCHA
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲158 | 13.62 ▼0.93 | 8.89 ▲7.17 | 37.33 ▼5.04 |
Dashboard /wp-admin | 2,216 ▲45 | 5.86 ▼0.04 | 97.97 ▼20.02 | 38.80 ▼1.47 |
Posts /wp-admin/edit.php | 2,099 ▲7 | 2.17 ▲0.16 | 40.10 ▼0.58 | 33.61 ▼1.82 |
Add New Post /wp-admin/post-new.php | 1,523 ▼10 | 23.19 ▼0.02 | 615.36 ▼89.55 | 44.61 ▼20.40 |
Media Library /wp-admin/upload.php | 1,401 ▲16 | 4.11 ▼0.13 | 97.02 ▼12.24 | 42.96 ▼2.86 |
Turnstile /wp-admin/options-general.php?page=vwptn-turnstile | 846 | 2.08 | 26.92 | 32.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/visualwp-cloudflare-turnstile/index.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=vwptn-turnstile
- > Console-api (warning) in unknown
https://challenges.cloudflare.com/turnstile/v0/api.js?ver=1 0:7101 "[Cloudflare Turnstile] Unknown parameter passed to api.js: \"?ver=...\", ignoring."
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Screenshots: Add a description for screenshot #1 in visualwp-cloudflare-turnstile/assets to your readme.txt
visualwp-cloudflare-turnstile/visualwp-cloudflare-turnstile.php 85% from 13 tests
The main PHP script in "VisualWP Cloudflare Turnstile - Easy Anti-Spam alternative to CAPTCHA" version 1.0.4 is automatically included on every request by WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 247 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,106 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 130 | 55 | 745 |
PHP | 2 | 121 | 45 | 334 |
JavaScript | 1 | 10 | 3 | 27 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/vwp-logo.png | 6.17KB | 3.20KB | ▼ 48.24% |