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.12MB] [CPU: ▼294.81ms] Passed 4 tests
An overview of server-side resources used by Still BE Widgets
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.21 | 56.56 ▲5.43 |
Dashboard /wp-admin | 3.56 ▲0.15 | 35.45 ▲2.52 |
Posts /wp-admin/edit.php | 3.78 ▲0.15 | 39.29 ▼3.05 |
Add New Post /wp-admin/post-new.php | 7.03 ▲0.06 | 95.02 ▼1,178.40 |
Media Library /wp-admin/upload.php | 3.44 ▲0.14 | 25.18 ▼0.30 |
Insta Widget /wp-admin/admin.php?page=stillbe-widgets-settings_insta-widget | 3.38 | 26.15 |
Still BE Widgets /wp-admin/admin.php?page=stillbe-widgets-settings | 3.41 | 23.54 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_stillbe_widgets-insta_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Still BE Widgets
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,815 ▲61 | 15.93 ▲0.27 | 5.90 ▲0.00 | 2.28 ▼0.56 |
Dashboard /wp-admin | 2,928 ▲74 | 6.15 ▼0.07 | 117.85 ▼23.34 | 152.09 ▼24.76 |
Posts /wp-admin/edit.php | 2,733 ▲42 | 3.37 ▲0.14 | 64.19 ▼2.05 | 142.44 ▼5.75 |
Add New Post /wp-admin/post-new.php | 1,689 ▼63 | 15.92 ▼5.08 | 413.09 ▼54.25 | 159.05 ▼0.10 |
Media Library /wp-admin/upload.php | 1,738 ▲40 | 5.54 ▲0.04 | 132.29 ▼10.12 | 185.81 ▲4.52 |
Insta Widget /wp-admin/admin.php?page=stillbe-widgets-settings_insta-widget | 1,256 | 2.57 | 61.20 | 170.48 |
Still BE Widgets /wp-admin/admin.php?page=stillbe-widgets-settings | 1,013 | 2.73 | 52.97 | 99.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- widget_stillbe_widgets-insta_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=stillbe-widgets-settings_insta-widget
- > Notice in wp-content/plugins/still-be-widget/still-be-widgets.php+145
Undefined index: ig
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=stillbe-widgets-settings_insta-widget
- > Notice in wp-content/plugins/still-be-widget/still-be-widgets.php+149
Trying to access array offset on value of type null
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (assets/screenshots/widget_image.png), #2 (assets/screenshots/widget_setting.png), #3 (assets/screenshots/user_management.png)
still-be-widget/still-be-widgets.php 85% from 13 tests
The entry point to "Still BE Widgets" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("still-be-widget.php" instead of "still-be-widgets.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,313 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 131 | 176 | 573 |
JavaScript | 2 | 123 | 258 | 419 |
CSS | 1 | 5 | 11 | 241 |
PO File | 1 | 34 | 0 | 80 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 36.67 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 11.70 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 9 | |
▷ Global constants | 2 | 22.22% |
▷ Class constants | 7 | 77.78% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.27MB with 0.17MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/screenshots/user_management.png | 48.24KB | 20.48KB | ▼ 57.56% |
asset/screenshots/widget_setting.png | 28.53KB | 11.33KB | ▼ 60.29% |
asset/screenshots/widget_image.png | 197.97KB | 64.27KB | ▼ 67.53% |