Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼294.17ms] Passed 4 tests
This is a short check of server-side resources used by Genesis Widget Background
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.51 | 55.67 ▲32.60 |
Dashboard /wp-admin | 3.49 ▲0.08 | 33.05 ▼0.83 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 38.99 ▲1.29 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.00 | 97.77 ▼1,171.83 |
Media Library /wp-admin/upload.php | 3.37 ▲0.07 | 23.85 ▼5.30 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_genesis-widget-background |
Browser metrics Passed 4 tests
An overview of browser requirements for Genesis Widget Background
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,765 ▲21 | 16.20 ▲0.53 | 6.25 ▲0.49 | 2.34 ▼0.08 |
Dashboard /wp-admin | 2,895 ▲34 | 6.15 ▼0.02 | 119.78 ▼15.73 | 155.53 ▼5.97 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.25 ▲0.01 | 62.00 ▼1.54 | 140.20 ▼4.83 |
Add New Post /wp-admin/post-new.php | 1,661 ▼91 | 15.98 ▼5.78 | 386.26 ▼81.94 | 154.43 ▼3.16 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.51 ▼0.01 | 145.62 ▲6.18 | 185.28 ▼3.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- widget_genesis-widget-background
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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:
- Screenshots: Please add an image for screenshot #1 (screenshot-1.jpg)
genesis-widget-background/genesis-widget-background.php Passed 13 tests
The main PHP file in "Genesis Widget Background" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
68 characters long description:
Adds the featured image or custom image as background of the widget.
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
There were no executable files found in this plugin443 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 87 | 77 | 264 |
CSS | 2 | 6 | 0 | 70 |
PO File | 1 | 18 | 18 | 57 |
JavaScript | 1 | 17 | 12 | 52 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 8.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 | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner-772x250.png | 17.09KB | 5.08KB | ▼ 70.27% |