Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.20MB] [CPU: ▼0.29ms] Passed 4 tests
Server-side resources used by WP Guardian
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 47.06 ▲4.74 |
Dashboard /wp-admin | 3.51 ▲0.17 | 57.03 ▼4.36 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 49.27 ▲0.23 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 101.12 ▲3.50 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 37.21 ▼0.53 |
Security /wp-admin/admin.php?page=dtjwpg_guardian | 3.43 | 35.00 |
Settings /wp-admin/admin.php?page=dtjwpg_settings | 3.40 | 36.36 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 33 new files
Database: 2 new tables, 34 new options
New tables |
---|
wp_dtjwpg_logins |
wp_dtjwpg_lockouts |
New WordPress options |
---|
dtjwpg_backend_redirect_option |
widget_recent-comments |
dtjwpg_update_plugins_option |
dtjwpg_lockout_logins_option |
dtjwpg_update_l10n_option |
dtjwpg_version_option |
db_upgraded |
can_compress_scripts |
dtjwpg_lockout_logins_time_option |
dtjwpg_verify_option |
... |
Browser metrics Passed 4 tests
WP Guardian: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.35 ▲0.06 | 1.74 ▲0.08 | 43.16 ▲1.50 |
Dashboard /wp-admin | 2,231 ▲57 | 5.66 ▲0.04 | 91.91 ▲5.77 | 40.10 ▼4.66 |
Posts /wp-admin/edit.php | 2,136 ▲33 | 2.06 ▲0.05 | 38.93 ▼3.33 | 36.30 ▼5.85 |
Add New Post /wp-admin/post-new.php | 1,568 ▲40 | 18.30 ▼4.55 | 657.76 ▲0.50 | 71.38 ▲17.95 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.31 ▲0.10 | 100.71 ▼13.41 | 43.10 ▼4.74 |
Security /wp-admin/admin.php?page=dtjwpg_guardian | 1,773 | 2.11 | 24.68 | 32.93 |
Settings /wp-admin/admin.php?page=dtjwpg_settings | 933 | 2.06 | 24.18 | 29.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_dtjwpg_lockouts
- wp_dtjwpg_logins
- Zombie WordPress options detected upon uninstall: 34 options
- dtjwpg_lockout_logins_threshold_option
- can_compress_scripts
- dtjwpg_auto_updates_option
- dtjwpg_verify_option
- dtjwpg_lockout_logins_option
- db_upgraded
- dtjwpg_backend_token_option
- dtjwpg_backup_email_option
- dtjwpg_wp_wpssl_option
- dtjwpg_wp_unfilter_option
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-guardian/assets/templates/guardian-version.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-guardian/assets/templates/guardian-verify.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-guardian/assets/templates/guardian-server.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-guardian/assets/templates/guardian-lockouts.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-guardian/assets/templates/guardian-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-guardian/assets/templates/guardian-backend.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-guardian/assets/templates/guardian-backups.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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: backups, adopt-me, lockouts, login, security
wp-guardian/wp-guardian.php Passed 13 tests
The main PHP file in "WP Guardian" ver. 1.3.4 adds more information about the plugin and also serves as the entry point for this plugin
58 characters long description:
An easy way to harden your website's security effectively.
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
Success! There were no dangerous files found in this plugin2,217 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 934 | 734 | 1,745 |
CSS | 1 | 55 | 3 | 262 |
JavaScript | 2 | 81 | 46 | 156 |
Markdown | 2 | 34 | 0 | 54 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 50 | |
▷ Named functions | 50 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 28 | |
▷ Global constants | 28 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin