Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▲2.25ms] Passed 4 tests
An overview of server-side resources used by DoLogin Security
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 41.48 ▼0.27 |
Dashboard /wp-admin | 3.77 ▲0.47 | 51.96 ▲4.07 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 47.98 ▲4.66 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.41 | 93.87 ▲0.53 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 43.01 ▲9.25 |
DoLogin Security /wp-admin/options-general.php?page=dologin | 3.67 | 46.53 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 50 new files
Database: 3 new tables, 22 new options
New tables |
---|
wp_dologin_failure |
wp_dologin_sms |
wp_dologin_pswdless |
New WordPress options |
---|
dologin.gg |
dologin.max_retries |
dologin._ver |
dologin.gg_priv_key |
widget_recent-posts |
dologin.recapt_forget |
dologin.2fa_force |
widget_theysaidso_widget |
theysaidso_admin_options |
dologin.whitelist |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DoLogin Security
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲171 | 13.60 ▼0.60 | 1.53 ▼0.23 | 32.31 ▼8.10 |
Dashboard /wp-admin | 2,282 ▲94 | 4.83 ▼1.21 | 105.36 ▼0.44 | 42.17 ▲0.55 |
Posts /wp-admin/edit.php | 2,072 ▼17 | 2.01 ▲0.01 | 35.64 ▼3.33 | 30.56 ▼1.99 |
Add New Post /wp-admin/post-new.php | 1,547 ▲13 | 18.54 ▼4.64 | 625.82 ▲12.48 | 76.35 ▲14.42 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▼0.02 | 98.36 ▼5.77 | 41.54 ▼4.60 |
DoLogin Security /wp-admin/options-general.php?page=dologin | 1,527 | 1.86 | 27.13 | 42.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 22 options in the database
- dologin._ver
- dologin.blacklist
- dologin.sms_force
- dologin.recapt_register
- can_compress_scripts
- dologin.max_retries
- db_upgraded
- dologin.recapt_forget
- dologin.gg_pub_key
- dologin.gg_priv_key
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: login security, geolocation login limit, limit login attempts, passwordless login, 2fa login
dologin/dologin.php 85% from 13 tests
The main PHP file in "DoLogin Security" ver. 3.7.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 241 characters long)
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "1.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin4,337 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 762 | 1,196 | 3,355 |
CSS | 1 | 184 | 133 | 804 |
JavaScript | 2 | 21 | 9 | 136 |
SQL | 3 | 0 | 0 | 32 |
SVG | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 24.73 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 1 | 4.55% |
▷ Concrete classes | 21 | 95.45% |
▷ Final classes | 0 | 0.00% |
Methods | 175 | |
▷ Static methods | 56 | 32.00% |
▷ Public methods | 146 | 83.43% |
▷ Protected methods | 7 | 4.00% |
▷ Private methods | 22 | 12.57% |
Functions | 8 | |
▷ Named functions | 6 | 75.00% |
▷ Anonymous functions | 2 | 25.00% |
Constants | 50 | |
▷ Global constants | 26 | 52.00% |
▷ Class constants | 24 | 48.00% |
▷ Public constants | 24 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.55MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wp_assets/screenshot-8.png | 63.59KB | 23.69KB | ▼ 62.75% |
wp_assets/icon-256x256.png | 19.41KB | 5.48KB | ▼ 71.77% |
wp_assets/screenshot-3.png | 51.20KB | 18.52KB | ▼ 63.84% |
wp_assets/screenshot-4.png | 36.30KB | 10.15KB | ▼ 72.05% |
wp_assets/screenshot-2.png | 82.89KB | 29.73KB | ▼ 64.14% |