Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.06MB] [CPU: ▲1.79ms] Passed 4 tests
Analyzing server-side resources used by Wordfence Login Security
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.54 ▲1.07 | 44.93 ▲7.04 |
Dashboard /wp-admin | 4.38 ▲1.03 | 52.71 ▼4.41 |
Posts /wp-admin/edit.php | 4.49 ▲1.14 | 52.72 ▲10.26 |
Add New Post /wp-admin/post-new.php | 6.96 ▲1.07 | 86.40 ▼3.37 |
Media Library /wp-admin/upload.php | 4.30 ▲1.07 | 44.13 ▲7.90 |
Server storage [IO: ▲1.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 123 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_wfls_role_counts |
wp_wfls_2fa_secrets |
wp_wfls_settings |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
wordfence_ls_version |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Wordfence Login Security: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲87 | 14.35 ▲0.22 | 1.69 ▲0.13 | 38.09 ▲0.32 |
Dashboard /wp-admin | 2,227 ▲50 | 5.53 ▼0.13 | 93.32 ▼10.02 | 68.64 ▲26.04 |
Posts /wp-admin/edit.php | 2,150 ▲53 | 1.97 ▲0.02 | 37.87 ▲1.10 | 35.40 ▲2.90 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 23.36 ▲0.29 | 697.47 ▲11.07 | 54.93 ▲2.80 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.08 ▼0.04 | 98.02 ▲3.57 | 68.59 ▲27.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_wfls_settings
- wp_wfls_role_counts
- wp_wfls_2fa_secrets
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
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 | 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 take a closer look at the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WordfenceLS\\Model_Asset' not found in wp-content/plugins/wordfence-login-security/classes/model/style.php:5
- > PHP Fatal error
Uncaught Error: Class 'WordfenceLS\\Model_Settings' not found in wp-content/plugins/wordfence-login-security/classes/model/settings/wpoptions.php:7
- > PHP Fatal error
Uncaught Error: Interface 'WordfenceLS\\Utility_Lock' not found in wp-content/plugins/wordfence-login-security/classes/utility/databaselock.php:7
- > PHP Fatal error
Uncaught Error: Interface 'WordfenceLS\\Utility_Lock' not found in wp-content/plugins/wordfence-login-security/classes/utility/nulllock.php:8
- > PHP Fatal error
Uncaught Error: Class 'WordfenceLS\\Model_Asset' not found in wp-content/plugins/wordfence-login-security/classes/model/script.php:5
- > PHP Fatal error
Uncaught Error: Class 'WordfenceLS\\Model_Settings' not found in wp-content/plugins/wordfence-login-security/classes/model/settings/db.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: 2fa, security, captcha, login security, mfa...
wordfence-login-security/wordfence-login-security.php Passed 13 tests
"Wordfence Login Security" version 1.1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
24 characters long description:
Wordfence Login Security
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
Good job! No executable or dangerous file extensions detected9,895 lines of code in 107 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 85 | 1,079 | 1,294 | 7,785 |
JavaScript | 9 | 362 | 216 | 2,084 |
SVG | 1 | 0 | 0 | 14 |
CSS | 12 | 0 | 11 | 12 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 26.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 233.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 44 | |
▷ Abstract classes | 4 | 9.09% |
▷ Concrete classes | 40 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 411 | |
▷ Static methods | 77 | 18.73% |
▷ Public methods | 319 | 77.62% |
▷ Protected methods | 29 | 7.06% |
▷ Private methods | 63 | 15.33% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.00% |
Constants | 134 | |
▷ Global constants | 15 | 11.19% |
▷ Class constants | 119 | 88.81% |
▷ Public constants | 119 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
img/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
img/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
img/loading_background.png | 0.15KB | 0.15KB | ▼ 0.64% |
img/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |