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.07MB] [CPU: ▼6.46ms] Passed 4 tests
Server-side resources used by Login-Logout
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.05 ▼2.60 |
Dashboard /wp-admin | 3.37 ▲0.07 | 44.90 ▼7.67 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 43.56 ▼10.23 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 90.34 ▼5.32 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.97 ▲5.55 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_login_logout |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Login-Logout
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.19 ▼1.45 | 1.70 ▼0.12 | 43.74 ▼4.77 |
Dashboard /wp-admin | 2,206 ▲15 | 5.85 ▲0.93 | 113.76 ▲12.34 | 42.25 ▲1.68 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.05 ▲0.02 | 33.73 ▼5.76 | 35.62 ▼2.77 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 23.26 ▲0.17 | 590.47 ▼73.43 | 64.28 ▲17.73 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.21 ▼0.01 | 93.41 ▼11.10 | 41.40 ▼1.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_login_logout
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/login-logout/login-logout.php:14
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Login-Logout widget), #2 (Widget output when user is not logged in), #3 (Widget output when user is logged in), #4 (Widget output when user is logged in and inline option is on)
login-logout/login-logout.php Passed 13 tests
The main file in "Login-Logout" v. 3.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
105 characters long description:
Show login or logout link. Show register or site-admin link. The replacement for the default Meta widget.
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
Success! There were no dangerous files found in this plugin559 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 5 | 110 | 130 | 316 |
PHP | 1 | 25 | 12 | 243 |
PHP code Passed 2 tests
An short overview of 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.22 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 7.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 20.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 1.45KB | 1.41KB | ▼ 2.76% |
screenshot-1.png | 10.97KB | 10.91KB | ▼ 0.55% |
screenshot-2.png | 0.92KB | 0.88KB | ▼ 4.15% |
screenshot-4.png | 1.37KB | 1.33KB | ▼ 2.92% |