Benchmarks
Plugin footprint 83% 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.29MB] [CPU: ▼5.24ms] Passed 4 tests
An overview of server-side resources used by WP Similar Basic Auth
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 38.06 ▼2.23 |
Dashboard /wp-admin | 3.64 ▲0.33 | 46.06 ▼15.12 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 51.31 ▼1.84 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 94.83 ▼1.77 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 47.02 ▲13.13 |
WP Similar Basic Auth /wp-admin/options-general.php?page=hax-wsba-submenu | 3.48 | 32.73 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: no new tables, 10 new options
New WordPress options |
---|
hax_wsba_user_name |
widget_theysaidso_widget |
db_upgraded |
hax_wsba_password |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
hax_wsba_message |
widget_recent-comments |
hax_wsba_title |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Similar Basic Auth
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.19 ▼1.19 | 1.52 ▼0.54 | 42.65 ▼4.48 |
Dashboard /wp-admin | 2,210 ▲22 | 4.82 ▼1.21 | 107.36 ▼9.47 | 40.31 ▼5.97 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.02 | 40.20 ▲2.67 | 36.49 ▲4.32 |
Add New Post /wp-admin/post-new.php | 1,517 ▼3 | 17.77 ▼5.34 | 670.71 ▲1.95 | 58.65 ▼0.28 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.21 ▼0.03 | 95.66 ▼8.09 | 42.17 ▲0.34 |
WP Similar Basic Auth /wp-admin/options-general.php?page=hax-wsba-submenu | 867 | 2.06 | 24.73 | 25.05 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to get property 'naming_text_domain' of non-object in wp-content/plugins/wp-similar-basic-auth/includes/admin/admin-plugins-page.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-similar-basic-auth/includes/admin/views/html-admin-options-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-similar-basic-auth/wsba-config.php:21
- > PHP Fatal error
Uncaught Error: Call to a member function get_error_message() on null in wp-content/plugins/wp-similar-basic-auth/includes/public/views/html-login-page.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-similar-basic-auth/wp-similar-basic-auth.php:78
- > PHP Fatal error
Uncaught Error: Class 'WP_Error' not found in wp-content/plugins/wp-similar-basic-auth/includes/public/login-page.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-similar-basic-auth/includes/admin/admin-options-page.php:17
- > PHP Notice
Trying to get property 'naming_text_domain' of non-object in wp-content/plugins/wp-similar-basic-auth/includes/admin/admin-plugins-page.php on line 13
- > PHP Notice
Trying to get property 'errors' of non-object in wp-content/plugins/wp-similar-basic-auth/includes/public/views/html-login-page.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-similar-basic-auth/includes/admin/admin-plugins-page.php:16
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI ("none")
wp-similar-basic-auth/wp-similar-basic-auth.php Passed 13 tests
The principal PHP file in "WP Similar Basic Auth" v. 0.1.1 is loaded by WordPress automatically on each request
69 characters long description:
Protect WordPress admin page on similar Basic Auth without .htaccess.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin4,415 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 386 | 910 | 3,166 |
Markdown | 1 | 182 | 0 | 1,150 |
PO File | 1 | 18 | 29 | 51 |
CSS | 1 | 5 | 0 | 25 |
JavaScript | 2 | 4 | 28 | 23 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 28.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 109 | |
▷ Static methods | 4 | 3.67% |
▷ Public methods | 59 | 54.13% |
▷ Protected methods | 50 | 45.87% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 10 | 76.92% |
▷ Anonymous functions | 3 | 23.08% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin