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: ▲0.10MB] [CPU: ▼5.64ms] Passed 4 tests
An overview of server-side resources used by htaccess protect
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 41.39 ▼8.37 |
Dashboard /wp-admin | 3.40 ▲0.10 | 45.95 ▲0.78 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.94 ▲2.33 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 85.80 ▼17.29 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 37.15 ▲4.66 |
htaccess protect /wp-admin/options-general.php?page=zotya-htaccess-protect | 3.29 | 32.32 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
zotya_hp_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for htaccess protect
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.75 ▲0.37 | 1.84 ▼0.21 | 44.14 ▼2.30 |
Dashboard /wp-admin | 2,214 ▲26 | 4.88 ▼1.01 | 102.81 ▼11.12 | 39.96 ▼4.37 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.02 ▲0.01 | 40.98 ▲0.14 | 33.97 ▼3.85 |
Add New Post /wp-admin/post-new.php | 1,536 ▲5 | 23.46 ▲5.12 | 682.42 ▲72.50 | 50.79 ▼10.08 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.22 ▼0.03 | 98.77 ▲0.83 | 43.91 ▼1.85 |
htaccess protect /wp-admin/options-general.php?page=zotya-htaccess-protect | 969 | 1.85 | 24.20 | 30.82 |
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
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/zotya-htaccess-protect/class.htaccess.php+367
file_get_contents(wp-admin/.htaccess): failed to open stream: No such file or directory
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zotya-htaccess-protect/settings-page.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zotya-htaccess-protect/settings-page.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
7 plugin tags: protection, htaccess, security, wp-login, htpasswd...
zotya-htaccess-protect/zotya-htaccess-protect.php Passed 13 tests
This is the main PHP file of "htaccess protect" version 0.7.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
48 characters long description:
Protect your login or admin pages with password.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin622 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 53 | 165 | 421 |
PO File | 1 | 38 | 40 | 101 |
CSS | 1 | 12 | 0 | 77 |
Markdown | 1 | 8 | 0 | 18 |
JavaScript | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 65.00 |
▷ Minimum class complexity | 65.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin