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.09MB] [CPU: ▼1.76ms] Passed 4 tests
Server-side resources used by Login Logout Menu
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 44.08 ▲0.94 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.32 ▼5.22 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 47.41 ▼0.61 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 93.82 ▼2.16 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 52.77 ▲17.47 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Login Logout Menu
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.43 | 1.68 ▼0.14 | 44.29 ▲0.54 |
Dashboard /wp-admin | 2,198 ▲18 | 5.59 ▼0.06 | 86.39 ▼7.80 | 39.90 ▼5.17 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.05 | 39.30 ▲2.98 | 36.68 ▲3.20 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 22.69 ▼0.36 | 662.52 ▲11.34 | 58.49 ▲5.40 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.07 | 102.68 ▼5.58 | 43.32 ▼4.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/login-logout-menu/login-logout-menu.php:57
- > PHP Fatal error
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
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #2, #3 in login-logout-menu/assets to your readme.txt
login-logout-menu/login-logout-menu.php Passed 13 tests
"Login Logout Menu" version 1.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
129 characters long description:
Login Logout Menu is a handy plugin which allows you to add login, logout, register and profile menu items in your selected menu.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin327 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 106 | 250 | 327 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 24.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 19 | 86.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 13.64% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin