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.01MB] [CPU: ▼1.15ms] Passed 4 tests
An overview of server-side resources used by My Login Logout Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.04 ▼0.81 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.74 ▲4.11 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.98 ▼0.54 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.91 ▼5.47 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.05 ▲2.22 |
My Login/logout /wp-admin/options-general.php?page=my-loginlogout/adminpage.php | 3.26 | 35.21 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_mylogin |
wp_mylocation |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for My Login Logout Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲51 | 13.22 ▼1.16 | 1.66 ▼0.50 | 43.77 ▼1.12 |
Dashboard /wp-admin | 2,211 ▲23 | 5.79 ▼0.07 | 106.93 ▲4.65 | 38.20 ▼3.02 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.02 ▼0.03 | 40.65 ▼1.46 | 33.66 ▼0.74 |
Add New Post /wp-admin/post-new.php | 1,521 ▲2 | 23.23 ▼0.13 | 659.87 ▼15.23 | 53.12 ▼1.01 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.26 ▲0.02 | 108.66 ▲4.20 | 46.89 ▲1.75 |
My Login/logout /wp-admin/options-general.php?page=my-loginlogout/adminpage.php | 1,009 | 2.04 | 23.87 | 29.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
Please fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined index: page in wp-content/plugins/my-loginlogout/adminpage.php on line 5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/my-loginlogout/login_logout.php on line 33
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/my-loginlogout/login_logout.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function get_mylogin_logoutLinks() in wp-content/plugins/my-loginlogout/adminpage.php:38
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/my-loginlogout/login_logout.php on line 39
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
my-loginlogout/login_logout.php 85% from 13 tests
Analyzing the main PHP file in "My Login Logout Plugin" version 2.4
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 302 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("my-loginlogout.php" instead of "login_logout.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin435 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 94 | 51 | 393 |
CSS | 1 | 0 | 12 | 25 |
JavaScript | 2 | 5 | 3 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 19 | |
▷ Named functions | 19 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.67MB with 0.43MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
defult_menu_list.png | 130.78KB | 45.96KB | ▼ 64.86% |
Custom_menu.png | 134.01KB | 47.93KB | ▼ 64.23% |
custom_url.png | 211.90KB | 76.99KB | ▼ 63.67% |
admin_setting.png | 210.49KB | 80.30KB | ▼ 61.85% |