Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.35MB] [CPU: ▼0.31ms] Passed 4 tests
A check of server-side resources used by 2BC Form Security
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.33 | 46.11 ▲0.44 |
Dashboard /wp-admin | 49.54 ▲46.15 | 9,537,312.48 ▲9,537,245.09 |
Posts /wp-admin/edit.php | 3.80 ▲0.40 | 57.35 ▼1.24 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.34 | 100.13 ▼6.38 |
Media Library /wp-admin/upload.php | 3.61 ▲0.34 | 43.11 ▲5.93 |
2BC Form Security /wp-admin/options-general.php?page=twobc_formsecurity | 3.58 | 40.00 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_twobc_formsecurity_log |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
twobc_formsecurity_options |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by 2BC Form Security
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲202 | 14.35 ▲0.00 | 1.58 ▼0.24 | 33.62 ▼10.33 |
Dashboard /wp-admin | 2,359 ▲185 | 5.67 ▲0.09 | 97.18 ▼5.49 | 46.04 ▼1.72 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.98 ▲0.03 | 43.21 ▲4.78 | 36.54 ▲3.34 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.10 ▲0.13 | 681.69 ▼42.11 | 56.41 ▼2.09 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.17 ▲0.10 | 97.43 ▼7.68 | 42.50 ▼3.64 |
2BC Form Security /wp-admin/options-general.php?page=twobc_formsecurity | 1,090 | 2.50 | 38.18 | 34.09 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 13 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twobc_formsecurity
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 13 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twobc_formsecurity
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (17 tag instead of maximum 10)
2bc-form-security/2bc-form-security.php Passed 13 tests
The principal PHP file in "2BC Form Security" v. 2.0.1 is loaded by WordPress automatically on each request
134 characters long description:
Increase security and reduce spam by adding a honeypot and Google reCAPTCHA V2 to the log in form, registration form, and comment form
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,738 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 403 | 677 | 1,954 |
PO File | 1 | 102 | 103 | 291 |
CSS | 2 | 37 | 9 | 285 |
JavaScript | 1 | 9 | 1 | 208 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 125)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 165.50 |
▷ Minimum class complexity | 125.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 6.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 125.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 52 | 91.23% |
▷ Public methods | 43 | 75.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 24.56% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/buddypress.png | 1.40KB | 1.20KB | ▼ 14.25% |