Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▲3.90ms] Passed 4 tests
A check of server-side resources used by User and Login Management
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.53 | 49.56 ▲7.60 |
Dashboard /wp-admin | 3.72 ▲0.41 | 59.21 ▲6.41 |
Posts /wp-admin/edit.php | 3.77 ▲0.42 | 57.75 ▲11.11 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 89.86 ▼2.06 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 43.07 ▲3.64 |
User and Login Management /wp-admin/admin.php?page=mouserloginmanagement | 3.40 | 26.12 |
Pricing Plans /wp-admin/admin.php?page=moul-mg-pricing | 3.57 | 47.22 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 74 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_moul_mg_users_online |
New WordPress options |
---|
moul_mg_default_api_key |
widget_recent-posts |
moul_mg_default_customer_key |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
moul_mg_timeout_value |
Browser metrics Passed 4 tests
A check of browser resources used by User and Login Management
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,001 ▲255 | 15.32 ▲0.94 | 2.03 ▲0.17 | 43.54 ▼3.00 |
Dashboard /wp-admin | 2,382 ▲191 | 6.57 ▲0.70 | 125.00 ▲8.92 | 77.73 ▲35.30 |
Posts /wp-admin/edit.php | 2,291 ▲202 | 3.49 ▲1.47 | 47.99 ▲9.84 | 55.77 ▲21.36 |
Add New Post /wp-admin/post-new.php | 1,702 ▲169 | 21.68 ▼1.33 | 671.67 ▲29.97 | 33.99 ▼21.51 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.24 ▲0.03 | 85.02 ▼20.30 | 77.99 ▲29.27 |
User and Login Management /wp-admin/admin.php?page=mouserloginmanagement | 4,585 | 3.29 | 50.93 | 110.27 |
Pricing Plans /wp-admin/admin.php?page=moul-mg-pricing | 4,705 | 3.46 | 48.17 | 136.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- theysaidso_admin_options
- moul_mg_default_customer_key
- widget_theysaidso_widget
- moul_mg_timeout_value
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- moul_mg_default_api_key
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function moul_mg_show_subnavbar() in wp-content/plugins/user-and-login-management/views/moul-mg-profile-picture.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function moul_mg_show_subnavbar() in wp-content/plugins/user-and-login-management/views/moul-mg-admin-notification-email.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function moul_mg_show_subnavbar() in wp-content/plugins/user-and-login-management/views/moul-mg-roles-capabilities.php:13
- > 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 93% 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 need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
user-and-login-management/user-login-management.php 92% from 13 tests
Analyzing the main PHP file in "User and Login Management" version 1.0.3
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("user-and-login-management.php" instead of "user-login-management.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,396 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 246 | 580 | 2,379 |
SVG | 1 | 0 | 0 | 10 |
CSS | 4 | 0 | 0 | 4 |
JavaScript | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 47 | |
▷ Static methods | 3 | 6.38% |
▷ Public methods | 35 | 74.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 25.53% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 17 | 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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/icons/logo.png | 3.21KB | 1.99KB | ▼ 37.87% |