Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▲0.32ms] Passed 4 tests
Server-side resources used by .htaccess Login block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 54.17 ▲11.32 |
Dashboard /wp-admin | 3.41 ▲0.10 | 55.97 ▲3.21 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 55.32 ▲3.67 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 96.52 ▼4.53 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.84 ▼1.05 |
.htaccess login block /wp-admin/options-general.php?page=htaccess_login_block | 3.29 | 41.73 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
It is recommended to fix the following issues
- There were 1 file (0.82KB) illegally modified outside of "wp-content/plugins/htaccess-login-block/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 5 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_slbl_log |
wp_slbl_blocks |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for .htaccess Login block
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲4 | 13.30 ▼1.10 | 5.60 ▲3.89 | 44.62 ▼0.24 |
Dashboard /wp-admin | 2,204 ▼2 | 5.84 ▼0.01 | 107.26 ▼9.21 | 39.75 ▼8.09 |
Posts /wp-admin/edit.php | 2,096 ▲8 | 1.97 ▼0.08 | 40.40 ▲2.35 | 35.42 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 23.37 ▲5.86 | 676.30 ▼16.83 | 59.24 ▲6.41 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.18 ▼0.04 | 96.01 ▼15.20 | 41.09 ▼8.23 |
.htaccess login block /wp-admin/options-general.php?page=htaccess_login_block | 1,009 | 2.15 | 25.85 | 29.06 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/htaccess-login-block/htaccess-login-block.php
- > /wp-content/plugins/htaccess-login-block/class.htaccess_login_block.php
- > /wp-content/plugins/htaccess-login-block/class.htaccess_login_block.admin.php
- > /wp-content/plugins/htaccess-login-block/class.htaccess_login_block.base.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== htaccess-login-block ===
)
htaccess-login-block/htaccess-login-block.php Passed 13 tests
The main PHP script in ".htaccess Login block" version 0.98 is automatically included on every request by WordPress
78 characters long description:
Simple and fast security plugin to block login hijackers using .htaccess file.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin578 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 199 | 37 | 578 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 35.33 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 29 | |
▷ Static methods | 29 | 100.00% |
▷ Public methods | 27 | 93.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.90% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin