Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/guroot-captcha/guroot_captcha.php+13
Constant WP_DEBUG already defined
Server metrics [RAM: ▼1.86MB] [CPU: ▼189.03ms] Passed 4 tests
Server-side resources used by Guroot Captcha
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.77 ▼0.95 | 6.11 ▼14.65 |
Dashboard /wp-admin | 1.79 ▼1.27 | 6.82 ▼38.31 |
Posts /wp-admin/edit.php | 1.79 ▼1.32 | 6.06 ▼40.17 |
Add New Post /wp-admin/post-new.php | 1.79 ▼3.65 | 5.94 ▼654.39 |
Media Library /wp-admin/upload.php | 1.79 ▼1.22 | 5.87 ▼23.23 |
Server storage [IO: ▲0.12MB] [DB: ▲0.03MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: 2 new tables, no new options
New tables |
---|
wp_GURCAPTCHA_Images |
wp_GURCAPTCHA_Session |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Guroot Captcha
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,825 ▲229 | 16.27 ▲0.63 | 13.46 ▲4.57 | 52.26 ▼4.19 |
Dashboard /wp-admin | 2,967 ▲36 | 5.89 ▼0.09 | 156.78 ▼10.44 | 115.48 ▲3.97 |
Posts /wp-admin/edit.php | 2,745 ▲6 | 2.73 ▲0.01 | 70.74 ▲0.86 | 89.53 ▲10.64 |
Add New Post /wp-admin/post-new.php | 1,683 ▲79 | 18.32 ▼0.44 | 435.28 ▲22.30 | 116.78 ▲7.12 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.02 ▼0.02 | 165.96 ▲8.88 | 124.44 ▲12.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/guroot-captcha/guroot_captcha.php+13
Constant WP_DEBUG already defined
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/guroot-captcha/guroot_captcha.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/guroot-captcha/GURCAPTCHA_template.php:15
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid url: ""
guroot-captcha/guroot_captcha.php 92% from 13 tests
The principal PHP file in "Guroot Captcha" v. 0.2.4 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("guroot-captcha.php" instead of "guroot_captcha.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin296 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 77 | 82 | 296 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 3 | 11.11% |
▷ Public methods | 18 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 33.33% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 59.45KB | 27.76KB | ▼ 53.31% |