Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.54ms] Passed 4 tests
Server-side resources used by WP view login only
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.98 ▼2.93 |
Dashboard /wp-admin | 3.33 ▲0.02 | 53.08 ▲1.58 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.41 ▼1.89 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.87 ▼21.20 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.21 ▼0.12 |
WP View Login Only /wp-admin/options-general.php?page=vlo | 3.22 | 33.91 |
Server storage [IO: ▲1.65MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP view login only
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.35 ▼0.24 | 1.96 ▲0.29 | 44.16 ▲2.41 |
Dashboard /wp-admin | 2,202 ▲22 | 5.67 ▲0.08 | 92.47 ▲1.84 | 42.22 ▼6.60 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.04 | 34.36 ▼4.47 | 37.26 ▼3.97 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.02 ▲5.49 | 659.68 ▲1.28 | 52.97 ▼0.45 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.18 ▼0.05 | 110.09 ▲11.50 | 49.85 ▲5.20 |
WP View Login Only /wp-admin/options-general.php?page=vlo | 799 | 2.06 | 26.28 | 24.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-view-login-only/wp-view-login-only.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: lock, redirect, login, secret
wp-view-login-only/wp-view-login-only.php Passed 13 tests
The main file in "WP view login only" v. 1.2.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
74 characters long description:
If you view a website without log in, WordPress redirect to the login page
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 detected176 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 16 | 43 | 95 |
YAML | 2 | 6 | 10 | 34 |
XML | 1 | 4 | 7 | 25 |
Markdown | 1 | 12 | 0 | 22 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 1.63MB with 1.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/banner-1554x500.png | 1,284.36KB | 462.39KB | ▼ 64.00% |
.wordpress-org/banner-772x250.png | 382.95KB | 133.40KB | ▼ 65.17% |