Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼5.45ms] Passed 4 tests
This is a short check of server-side resources used by Block wp-login
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 37.19 ▼3.42 |
Dashboard /wp-admin | 3.51 ▲0.20 | 45.50 ▼7.05 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 42.73 ▼3.55 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 90.04 ▼7.78 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.25 ▼1.05 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Block wp-login
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲52 | 14.72 ▲0.11 | 1.84 ▲0.19 | 54.00 ▲10.64 |
Dashboard /wp-admin | 2,204 ▲24 | 5.64 ▼0.02 | 93.83 ▼6.95 | 44.58 ▲2.70 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.03 ▲0.01 | 40.22 ▼0.29 | 38.90 ▲2.72 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 18.24 ▼4.82 | 614.18 ▼91.69 | 74.04 ▲15.25 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.20 ▼0.05 | 98.75 ▼6.15 | 41.92 ▼3.08 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- bwpl_slug
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/block-wp-login/block-wp-login.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: security, block hackers, security plugin, login security, secure
block-wp-login/block-wp-login.php Passed 13 tests
"Block wp-login" version 1.5.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
87 characters long description:
This plugin completely blocks access to wp-login.php and creates a new secret login URL
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin843 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 577 | 16 | 831 |
JavaScript | 1 | 5 | 3 | 12 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.66 |
Average class complexity | 68.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 5.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 27 | 60.00% |
▷ Public methods | 43 | 95.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.44% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin