Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼15.37ms] Passed 4 tests
A check of server-side resources used by Lightweb Media Basic Authentication
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 45.70 ▲3.58 |
Dashboard /wp-admin | 3.37 ▲0.02 | 50.69 ▼41.12 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 51.25 ▼3.31 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.05 | 86.51 ▼20.64 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.82 ▲4.42 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
lwmba_auth_settings |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Lightweb Media Basic Authentication
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.72 ▲0.54 | 1.60 ▼0.22 | 42.44 ▼1.53 |
Dashboard /wp-admin | 2,211 ▲34 | 5.63 ▼0.03 | 87.02 ▼4.42 | 40.61 ▼1.18 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.04 ▲0.08 | 36.12 ▼6.26 | 38.51 ▲0.14 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 18.34 ▼5.09 | 668.35 ▼0.45 | 76.36 ▲28.75 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.22 ▼0.03 | 98.99 ▼11.92 | 45.57 ▼0.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- db_upgraded
- lwmba_auth_settings
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lwm-basic-auth/mu-plugin/lwm-mu-basic-auth.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/lwm-basic-auth/lwm-basic-auth.php:19
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Donate link: Invalid URI ("")
lwm-basic-auth/lwm-basic-auth.php Passed 13 tests
The main file in "Lightweb Media Basic Authentication" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
81 characters long description:
Basic Authentication for protected your development WordPress site like .htpasswd
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected265 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 77 | 76 | 265 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.56% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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 were not PNG files found in your plugin