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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.25MB] [CPU: ▲1.90ms] Passed 4 tests
This is a short check of server-side resources used by reCAPTCHA and Cloudflare Turnstile For All Pages, to Block Spam and Hackers Attack, Block Visitors from China
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 47.14 ▲6.58 |
Dashboard /wp-admin | 3.65 ▲0.30 | 60.86 ▼1.94 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 57.57 ▲9.73 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 93.16 ▼6.35 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 43.66 ▲9.30 |
reCAPTCHA for all /wp-admin/tools.php?page=recaptcha_for_all_admin_page | 3.52 | 41.45 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
recaptcha_for_all_was_activated |
widget_recent-posts |
bill_show_warnings |
recaptcha_last_feedback |
recaptcha_for_all_string_whitelist |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
reCAPTCHA and Cloudflare Turnstile For All Pages, to Block Spam and Hackers Attack, Block Visitors from China: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,364 ▲613 | 17.77 ▲3.09 | 32.89 ▲31.19 | 42.69 ▼2.35 |
Dashboard /wp-admin | 2,419 ▲239 | 6.97 ▲1.42 | 119.06 ▲20.97 | 48.26 ▲3.49 |
Posts /wp-admin/edit.php | 2,357 ▲257 | 4.02 ▲2.02 | 58.40 ▲16.49 | 34.14 ▼6.64 |
Add New Post /wp-admin/post-new.php | 1,572 ▲42 | 23.55 ▲0.32 | 665.78 ▲21.12 | 40.12 ▼10.62 |
Media Library /wp-admin/upload.php | 1,487 ▲90 | 4.74 ▲0.54 | 87.23 ▼14.28 | 43.05 ▼3.00 |
reCAPTCHA for all /wp-admin/tools.php?page=recaptcha_for_all_admin_page | 1,180 | 3.65 | 50.26 | 66.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- recaptcha_last_feedback
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 12× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/recaptcha-for-all/dashboard/dashboard-pages.php
- > /wp-content/plugins/recaptcha-for-all/recaptcha.php
- > /wp-content/plugins/recaptcha-for-all/includes/checkup/class_bill_catch_errors.php
- > /wp-content/plugins/recaptcha-for-all/dashboard/dashboard-whitelist.php
- > /wp-content/plugins/recaptcha-for-all/dashboard/dashboard-settings.php
- > /wp-content/plugins/recaptcha-for-all/dashboard/dashboard-container.php
- > /wp-content/plugins/recaptcha-for-all/dashboard/dashboard.php
- > /wp-content/plugins/recaptcha-for-all/includes/checkup/bill_class_diagnose.php
- > /wp-content/plugins/recaptcha-for-all/dashboard/dashboard-keys.php
- > /wp-content/plugins/recaptcha-for-all/dashboard/dashboard-message.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/recaptcha-for-all/template.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Initial Page box), #2 (Dashboard)
recaptcha-for-all/recaptcha.php 92% from 13 tests
"reCAPTCHA and Cloudflare Turnstile For All Pages, to Block Spam and Hackers Attack, Block Visitors from China" version 1.30's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("recaptcha-for-all.php" instead of "recaptcha.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected4,619 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 715 | 396 | 2,868 |
PO File | 3 | 281 | 304 | 947 |
CSS | 4 | 48 | 17 | 432 |
JavaScript | 5 | 87 | 69 | 372 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 5 | 20.83% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.33% |
Functions | 51 | |
▷ Named functions | 51 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 51 | |
▷ Global constants | 51 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.56MB with 0.31MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/checkup/bell.png | 1.07KB | 0.27KB | ▼ 74.45% |
screenshot-2.png | 134.79KB | 50.99KB | ▼ 62.17% |
screenshot-1.png | 432.57KB | 242.03KB | ▼ 44.05% |
images/logo.png | 5.96KB | 3.65KB | ▼ 38.72% |