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.02MB] [CPU: ▼2.13ms] Passed 4 tests
This is a short check of server-side resources used by LoginBox Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 45.07 ▲0.24 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.84 ▲1.52 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.93 ▼3.64 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 88.05 ▼3.95 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.14 ▼1.15 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_geosn0w_loginboxwidget |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LoginBox Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.10 | 1.81 ▼0.06 | 45.25 ▲0.40 |
Dashboard /wp-admin | 2,200 ▲15 | 5.82 ▼0.03 | 101.84 ▼1.65 | 37.28 ▼5.75 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.06 ▲0.06 | 34.69 ▼7.14 | 31.41 ▼6.81 |
Add New Post /wp-admin/post-new.php | 1,514 ▼21 | 17.48 ▼5.68 | 657.05 ▲14.23 | 53.45 ▲4.98 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.29 ▲0.13 | 100.31 ▼8.21 | 41.68 ▼0.04 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_geosn0w_loginboxwidget
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
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 items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loginbox-widget/LoginBoxWidget.php:11
- > 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 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Contributors: Plugin contributors not specified
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The widget when the user is authenticated.), #2 (The widget when the user is not authenticated and did not yet click the authenticate button.), #3 (The widget when the user is not authenticated but clicked the authenticate button.)
loginbox-widget/LoginBoxWidget.php 77% from 13 tests
The main PHP script in "LoginBox Widget" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 163 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("loginbox-widget.php" instead of "LoginBoxWidget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin37 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 7 | 11 | 37 |
PHP code Passed 2 tests
Analyzing 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.12 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Screenshot-2.PNG | 11.63KB | 5.83KB | ▼ 49.89% |
Screenshot-3.PNG | 16.51KB | 7.69KB | ▼ 53.41% |
Screenshot-1.PNG | 13.09KB | 6.25KB | ▼ 52.22% |