Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'LOGINMANDATORYPAGES_plugin_activate' not found or invalid function name
Server metrics [RAM: ▼0.30MB] [CPU: ▼19.00ms] Passed 4 tests
This is a short check of server-side resources used by Login Mandatory Pages
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▼0.01 | 34.12 ▼16.68 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.90 ▼0.75 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 52.30 ▲0.77 |
Add New Post /wp-admin/post-new.php | 4.63 ▼1.25 | 44.54 ▼59.34 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 41.67 ▲3.93 |
About Login Mandatory Pages /wp-admin/admin.php?page=about_login_mandatory_pages | 3.23 | 34.53 |
Login Mandatory Pages Settings /wp-admin/admin.php?page=ls_settings | 3.21 | 32.67 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 10 new options
New WordPress options |
---|
selected_pages |
theysaidso_admin_options |
widget_recent-comments |
login_restrictions_settings |
widget_theysaidso_widget |
widget_recent-posts |
lr_message |
lr_button |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Login Mandatory Pages
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.34 ▼0.38 | 1.63 ▼0.28 | 41.01 ▲2.70 |
Dashboard /wp-admin | 2,214 ▲37 | 5.52 ▼0.08 | 87.46 ▼1.36 | 67.37 ▲24.01 |
Posts /wp-admin/edit.php | 2,128 ▲31 | 1.98 ▼0.03 | 38.86 ▲1.44 | 37.51 ▼1.44 |
Add New Post /wp-admin/post-new.php | 1,704 ▲164 | 22.30 ▲4.28 | 705.50 ▲83.91 | 55.00 ▼5.97 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 4.20 ▼0.02 | 101.08 ▼2.88 | 75.50 ▲30.44 |
About Login Mandatory Pages /wp-admin/admin.php?page=about_login_mandatory_pages | 819 | 1.99 | 23.58 | 27.93 |
Login Mandatory Pages Settings /wp-admin/admin.php?page=ls_settings | 1,570 | 6.72 | 136.90 | 117.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'LOGINMANDATORYPAGES_plugin_activate' not found or invalid function name
- Zombie WordPress options were found after uninstall: 10 options
- lr_message
- widget_recent-comments
- theysaidso_admin_options
- lr_button
- widget_recent-posts
- widget_theysaidso_widget
- login_restrictions_settings
- db_upgraded
- can_compress_scripts
- selected_pages
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ls_settings
- > Warning in wp-content/plugins/login-mandatory-pages/login-mandatory-pages.php+77
in_array() expects parameter 2 to be array, string given
- > GET request to /wp-admin/admin.php?page=ls_settings
- > Notice in wp-content/plugins/login-mandatory-pages/login-mandatory-pages.php+81
Undefined variable: checked
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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/login-mandatory-pages/includes/about.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: force login, login page, user access control, login pages, control pages...
login-mandatory-pages/login-mandatory-pages.php 85% from 13 tests
The main PHP script in "Login Mandatory Pages" version 1.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
There were no executable files found in this plugin283 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 14 | 39 | 159 |
CSS | 1 | 1 | 0 | 124 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/lmp.png | 0.77KB | 0.88KB | 0.00% |