Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/login-logout-shortcode-simple/LoginLogoutShortcodeSimple_Plugin.php+30
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.27ms] Passed 4 tests
This is a short check of server-side resources used by Login Logout Shortcode Simple
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.55 ▲3.90 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.25 ▼6.46 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 44.81 ▼1.84 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 78.51 ▼11.44 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.57 ▼1.35 |
Login Logout Shortcode Simple /wp-admin/plugins.php?page=LoginLogoutShortcodeSimple_PluginSettings | 3.22 | 29.07 |
Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 11 new options
New WordPress options |
---|
LoginLogoutShortcodeSimple_Plugin__installed |
widget_recent-comments |
widget_theysaidso_widget |
LoginLogoutShortcodeSimple_Plugin__version |
theysaidso_admin_options |
LoginLogoutShortcodeSimple_Plugin_PageRedirect |
can_compress_scripts |
widget_recent-posts |
LoginLogoutShortcodeSimple_Plugin_CanSeeSpecialData |
db_upgraded |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Login Logout Shortcode Simple
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.36 | 1.87 ▲0.21 | 47.25 ▲10.41 |
Dashboard /wp-admin | 2,199 ▲24 | 5.55 ▼0.15 | 81.16 ▼22.07 | 37.87 ▼6.59 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.03 ▲0.06 | 38.76 ▲3.34 | 36.39 ▼2.05 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.61 ▲0.32 | 694.54 ▲55.00 | 64.68 ▲6.00 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.20 ▲0.09 | 96.54 ▼9.21 | 45.90 ▲0.42 |
Login Logout Shortcode Simple /wp-admin/plugins.php?page=LoginLogoutShortcodeSimple_PluginSettings | 885 | 2.13 | 23.41 | 29.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% 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
- The uninstall procedure has failed, leaving 11 options in the database
- LoginLogoutShortcodeSimple_Plugin_PageRedirect
- widget_recent-posts
- can_compress_scripts
- LoginLogoutShortcodeSimple_Plugin_UsersCanRegister
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- LoginLogoutShortcodeSimple_Plugin_CanSeeSpecialData
- LoginLogoutShortcodeSimple_Plugin__version
- ...
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)
Good news, no errors were detected
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_dir_url() in wp-content/plugins/login-logout-shortcode-simple/login-logout-shortcode-simple.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Screenshots: A description for screenshot #1 is missing in login-logout-shortcode-simple/assets to your readme.txt
login-logout-shortcode-simple/login-logout-shortcode-simple.php Passed 13 tests
"Login Logout Shortcode Simple" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
75 characters long description:
Protect your pages by just adding a shortcode. No need to know programming.
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
Good job! No executable or dangerous file extensions detected701 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 195 | 580 | 623 |
PO File | 1 | 22 | 22 | 69 |
Perl | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 2 | 25.00% |
▷ Concrete classes | 6 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 45 | 61.64% |
▷ Protected methods | 28 | 38.36% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 2 | 100.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