Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.89MB] [CPU: ▼31.34ms] Passed 4 tests
An overview of server-side resources used by Captcha Garb
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.06 | 38.48 ▼8.31 |
Dashboard /wp-admin | 3.09 ▼0.25 | 25.32 ▼26.43 |
Posts /wp-admin/edit.php | 3.09 ▼0.31 | 28.63 ▼20.28 |
Add New Post /wp-admin/post-new.php | 3.09 ▼2.84 | 25.34 ▼70.35 |
Media Library /wp-admin/upload.php | 3.09 ▼0.18 | 31.24 ▼6.10 |
Captcha Garb /wp-admin/options-general.php?page=captcha-garb/captcha-garb_admin.php | 3.09 | 29.79 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 71 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
cgarb_enable |
cgarb_css |
widget_recent-posts |
captcha_garb_install |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Captcha Garb
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲111 | 13.33 ▼1.23 | 7.66 ▲5.97 | 39.34 ▼4.89 |
Dashboard /wp-admin | 2,199 ▲34 | 5.61 ▲0.03 | 82.92 ▼10.10 | 39.54 ▼5.10 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.00 ▼0.02 | 39.00 ▲1.89 | 36.25 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 18.18 ▼4.58 | 630.97 ▼87.01 | 67.39 ▲8.55 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.23 ▲0.04 | 105.76 ▼8.76 | 40.61 ▼8.87 |
Captcha Garb /wp-admin/options-general.php?page=captcha-garb/captcha-garb_admin.php | 1,848 | 3.95 | 79.49 | 118.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options were found after uninstall: 9 options
- captcha_garb_install
- db_upgraded
- cgarb_enable
- can_compress_scripts
- widget_recent-posts
- cgarb_css
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=captcha-garb/captcha-garb_admin.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=captcha-garb/captcha-garb_admin.php
- > Network (severe)
http://widgets.twimg.com/j/2/widget.js - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/options-general.php?page=captcha-garb/captcha-garb_admin.php
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=captcha-garb%2Fcaptcha-garb_admin.php 537:0 Uncaught ReferenceError: TWTR is not defined
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== captcha-garb ===
) - Screenshots: These screenshots require images: #1 (Captcha Garb puzzle captcha on comment form), #2 (Captcha Garb adminpanel.), #3 (Captcha Garb adminpanel manage puzzle's,)
captcha-garb/captchagarb.php 92% from 13 tests
This is the main PHP file of "Captcha Garb" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("captcha-garb.php" instead of "captchagarb.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 detected520 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 137 | 25 | 520 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.77MB with 0.68MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo.png | 7.19KB | 4.27KB | ▼ 40.64% |
(invalid) puzzle/puzz_16.png | 14.21KB | 0.00KB | ▼ 100.00% |
(invalid) puzzle/puzz_8.png | 6.12KB | 0.00KB | ▼ 100.00% |
(invalid) puzzle/puzz_7.png | 15.96KB | 0.00KB | ▼ 100.00% |
(invalid) puzzle/puzz_12.png | 5.01KB | 0.00KB | ▼ 100.00% |