Benchmarks
Plugin footprint 83% 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.47MB] [CPU: ▼6.28ms] Passed 4 tests
A check of server-side resources used by HTTP Basic Auth
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 46.49 ▼5.91 |
Dashboard /wp-admin | 3.81 ▲0.51 | 50.07 ▲0.90 |
Posts /wp-admin/edit.php | 3.86 ▲0.51 | 50.24 ▼1.39 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.45 | 96.43 ▼18.73 |
Media Library /wp-admin/upload.php | 3.67 ▲0.45 | 41.05 ▲8.38 |
Basic Auth /wp-admin/options-general.php?page=http-basic-auth-settings | 3.69 | 44.68 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
http_basic_auth_settings |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for HTTP Basic Auth
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.56 ▼0.79 | 1.81 ▼0.06 | 40.38 ▼4.18 |
Dashboard /wp-admin | 2,210 ▲19 | 4.84 ▼0.04 | 108.07 ▼2.18 | 43.54 ▼0.14 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▼0.04 | 40.95 ▼2.14 | 35.81 ▼1.33 |
Add New Post /wp-admin/post-new.php | 1,517 ▼17 | 17.57 ▼5.66 | 671.78 ▲66.41 | 61.50 ▲11.07 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.17 ▼0.07 | 97.37 ▼4.65 | 46.41 ▲1.77 |
Basic Auth /wp-admin/options-general.php?page=http-basic-auth-settings | 1,172 | 3.89 | 61.65 | 28.62 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- http_basic_auth_settings
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/http-basic-auth/classes/views/settings-script.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WPDesk_Plugin_1_9' not found in wp-content/plugins/http-basic-auth/classes/class-http-basic-auth-plugin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (Configuration)
http-basic-auth/http-basic-auth.php Passed 13 tests
The entry point to "HTTP Basic Auth" version 1.1.0 is a PHP file that has certain tags in its header comment area
42 characters long description:
Basic Auth form login, admin or whole site
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
Success! There were no dangerous files found in this plugin2,675 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 619 | 1,174 | 2,348 |
PO File | 2 | 89 | 189 | 162 |
CSS | 6 | 14 | 16 | 91 |
JavaScript | 2 | 18 | 13 | 74 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 46.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 167.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 168 | |
▷ Static methods | 2 | 1.19% |
▷ Public methods | 158 | 94.05% |
▷ Protected methods | 1 | 0.60% |
▷ Private methods | 9 | 5.36% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/repository/screenshot-1.png | 47.49KB | 17.89KB | ▼ 62.33% |