Benchmarks
Plugin footprint 82% 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.05MB] [CPU: ▼1.70ms] 75% from 4 tests
Analyzing server-side resources used by Traum Captcha
It is recommended to improve the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 904.11ms on /wp-admin/admin.php?page=traum_captcha_update)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.41 ▲1.99 |
Dashboard /wp-admin | 3.36 ▲0.05 | 51.18 ▼3.07 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 50.51 ▲1.53 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 94.83 ▼7.25 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 44.00 ▲8.45 |
Update /wp-admin/admin.php?page=traum_captcha_update | 3.24 | 904.11 |
Database /wp-admin/admin.php?page=traum_captcha_database | 3.22 | 34.36 |
Traum Captcha /wp-admin/admin.php?page=traum_captcha | 3.24 | 31.05 |
Captcha Settings /wp-admin/admin.php?page=traum_captcha_setting | 3.24 | 32.67 |
Server storage [IO: ▲6.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
recovery_mode_email_last_sent |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Traum Captcha
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 13.17 ▼1.21 | 1.65 ▼0.35 | 39.29 ▼6.75 |
Dashboard /wp-admin | 2,241 ▲53 | 4.87 ▲0.02 | 103.40 ▼3.22 | 41.07 ▼1.13 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.02 ▼0.02 | 40.78 ▲4.40 | 37.57 ▲0.96 |
Add New Post /wp-admin/post-new.php | 1,571 ▲57 | 18.15 ▲0.64 | 623.14 ▼40.42 | 58.21 ▲5.91 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.21 ▲0.00 | 96.54 ▼10.81 | 44.75 ▼1.14 |
Update /wp-admin/admin.php?page=traum_captcha_update | 711 | 1.53 | 6.93 | 17.77 |
Database /wp-admin/admin.php?page=traum_captcha_database | 827 | 2.06 | 26.85 | 35.22 |
Traum Captcha /wp-admin/admin.php?page=traum_captcha | 808 | 1.99 | 32.72 | 47.76 |
Captcha Settings /wp-admin/admin.php?page=traum_captcha_setting | 762 | 2.03 | 25.32 | 25.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=traum_captcha_update
- > Error in wp-content/plugins/traum-captcha/functions.php+209
Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/traum-captcha/functions.php:209
Stack trace:
#0 wp-content/plugins/traum-captcha/options.php(144): traum_captcha_update()
#1 wp-includes/class-wp-hook.php(310): traum_captcha_update_display()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown- > GET request to /wp-admin/admin.php?page=traum_captcha_database
- > Warning in wp-admin/includes/template.php+1771
call_user_func() expects parameter 1 to be a valid callback, function 'traum_captcha_database' not found or invalid function name
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/traum-captcha/functions.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/traum-captcha/options.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Screenshot #1 (none) image not found
traum-captcha/functions.php 92% from 13 tests
The entry point to "Traum Captcha" version 1.0.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("traum-captcha.php" instead of "functions.php")
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
No dangerous file extensions were detected64,508 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SQL | 1 | 20 | 32 | 63,754 |
PHP | 6 | 96 | 167 | 676 |
PO File | 1 | 26 | 34 | 78 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 4 | 17.39% |
▷ Private methods | 1 | 4.35% |
Functions | 17 | |
▷ Named functions | 17 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/bg.png | 1.55KB | 0.14KB | ▼ 90.79% |