Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼293.79ms] Passed 4 tests
Server-side resources used by Button Widget by Loomisoft
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.24 | 59.54 ▲2.86 |
Dashboard /wp-admin | 3.49 ▲0.08 | 46.31 ▲8.75 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 47.05 ▲6.16 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.03 | 104.70 ▼1,182.64 |
Media Library /wp-admin/upload.php | 3.35 ▲0.05 | 29.55 ▼1.55 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 2 new options
New WordPress options |
---|
ls_bw_option |
widget_ls_button_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Button Widget by Loomisoft
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,854 ▲100 | 16.01 ▲0.36 | 5.64 ▼0.12 | 2.25 ▼0.21 |
Dashboard /wp-admin | 2,976 ▲118 | 6.88 ▲0.72 | 115.66 ▼14.25 | 214.60 ▲57.12 |
Posts /wp-admin/edit.php | 2,778 ▲84 | 3.66 ▲0.30 | 67.44 ▲5.09 | 187.44 ▲46.99 |
Add New Post /wp-admin/post-new.php | 1,732 ▲36 | 18.69 ▼3.12 | 400.79 ▼59.99 | 186.92 ▲20.57 |
Media Library /wp-admin/upload.php | 1,779 ▲84 | 5.91 ▲0.39 | 128.32 ▼15.13 | 246.17 ▲56.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 2 options
- widget_ls_button_widget
- ls_bw_option
Smoke tests Passed 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 everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== Button Widget by Loomisoft===
)
loomisoft-button-widget/loomisoft-button-widget.php 92% from 13 tests
The entry point to "Button Widget by Loomisoft" version 1.2.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 428 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin4,390 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 120 | 62 | 4,121 |
CSS | 2 | 39 | 8 | 213 |
JavaScript | 1 | 8 | 8 | 56 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 50.50 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 5.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 24 | |
▷ Static methods | 19 | 79.17% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
2 PNG files occupy 0.08MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ls-wp-menu-icon.png | 19.81KB | 0.46KB | ▼ 97.67% |
images/ls-wp-admin-branding.png | 65.37KB | 2.53KB | ▼ 96.13% |