Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼3.86ms] 75% from 4 tests
An overview of server-side resources used by Captcha.eu
It is recommended to improve the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 652.91ms on /wp-admin/admin.php?page=captcha-eu)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.41 | 44.23 ▲1.20 |
Dashboard /wp-admin | 3.71 ▲0.36 | 50.07 ▼8.52 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 50.05 ▲4.82 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 84.90 ▼12.95 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 47.64 ▲14.36 |
Overview /wp-admin/admin.php?page=captcha-eu | 3.62 | 652.91 |
Settings /wp-admin/admin.php?page=captcha-eu-settings | 3.66 | 136.77 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 236 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Captcha.eu
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,002 ▲241 | 14.33 ▼0.23 | 1.77 ▼0.02 | 37.87 ▼6.84 |
Dashboard /wp-admin | 2,278 ▲101 | 5.57 ▼0.15 | 84.01 ▼4.28 | 42.23 ▼2.37 |
Posts /wp-admin/edit.php | 2,169 ▲69 | 2.05 ▲0.11 | 33.64 ▼3.32 | 38.37 ▲1.35 |
Add New Post /wp-admin/post-new.php | 1,555 ▲18 | 23.32 ▲4.99 | 655.40 ▲22.34 | 58.00 ▼10.57 |
Media Library /wp-admin/upload.php | 1,463 ▲63 | 4.21 ▼0.08 | 95.57 ▼0.89 | 43.03 ▲0.61 |
Overview /wp-admin/admin.php?page=captcha-eu | 1,142 | 6.40 | 121.06 | 23.91 |
Settings /wp-admin/admin.php?page=captcha-eu-settings | 1,605 | 6.57 | 119.47 | 33.28 |
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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 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 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
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/captcha-eu/src/partials/chat.php
- > /wp-content/plugins/captcha-eu/tests/phpunit/bootstrap.php
- 132× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\Test\\PolyfillTestCase' not found in wp-content/plugins/captcha-eu/vendor/composer/installers/tests/Composer/Installers/Test/TestCase.php:21
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/captcha-eu/vendor/composer/installers/tests/Composer/Installers/Test/MauticInstallerTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/captcha-eu/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/captcha-eu/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/captcha-eu/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/captcha-eu/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/captcha-eu/vendor/composer/installers/src/Composer/Installers/KnownInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/captcha-eu/vendor/composer/installers/tests/Composer/Installers/Test/PimcoreInstallerTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/captcha-eu/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php:12
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/captcha-eu/vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php:4
- > PHP Fatal error
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 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: gdpr, form, anti-bot, contact, protection...
captcha-eu/wp-captcha.php 77% from 13 tests
The main PHP script in "Captcha.eu" version 1.0.26 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("captcha-eu.php" instead of "wp-captcha.php")
- Git Repository: A Git repository was detected inside this plugin
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/languages.")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected8,597 lines of code in 206 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 152 | 1,157 | 1,840 | 6,523 |
Markdown | 3 | 73 | 0 | 386 |
CSS | 1 | 25 | 21 | 334 |
JavaScript | 17 | 73 | 64 | 334 |
JSON | 3 | 0 | 0 | 324 |
YAML | 8 | 54 | 6 | 226 |
SVG | 19 | 0 | 1 | 217 |
PO File | 1 | 60 | 4 | 130 |
Bourne Shell | 1 | 36 | 33 | 97 |
XML | 1 | 3 | 0 | 26 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 3.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 142 | |
▷ Abstract classes | 4 | 2.82% |
▷ Concrete classes | 138 | 97.18% |
▷ Final classes | 1 | 0.72% |
Methods | 363 | |
▷ Static methods | 62 | 17.08% |
▷ Public methods | 296 | 81.54% |
▷ Protected methods | 46 | 12.67% |
▷ Private methods | 21 | 5.79% |
Functions | 12 | |
▷ Named functions | 3 | 25.00% |
▷ Anonymous functions | 9 | 75.00% |
Constants | 8 | |
▷ Global constants | 4 | 50.00% |
▷ Class constants | 4 | 50.00% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.61MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/elementor.png | 21.09KB | 7.53KB | ▼ 64.29% |
.wordpress-org/icon-256x256.png | 11.39KB | 4.35KB | ▼ 61.83% |
.wordpress-org/screenshot-1.png | 24.12KB | 12.18KB | ▼ 49.49% |
.wordpress-org/banner-1544x500.png | 95.20KB | 33.57KB | ▼ 64.74% |
assets/img/woocommerce.png | 9.90KB | 3.58KB | ▼ 63.81% |