Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/xmas-widget/xmas-widget.php+382
Methods with the same name as their class will not be constructors in a future version of PHP; xmas_widget has a deprecated constructor
Server metrics [RAM: ▲0.01MB] [CPU: ▼149.48ms] Passed 4 tests
A check of server-side resources used by Xmas Widget Little Elf
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 35.44 ▲10.97 |
Dashboard /wp-admin | 3.08 ▲0.02 | 48.86 ▼1.48 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 49.68 ▼29.31 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 89.92 ▼567.99 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 35.58 ▲0.88 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_xmas_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Xmas Widget Little Elf
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.81 ▲0.31 | 9.58 ▲0.60 | 43.68 ▼13.39 |
Dashboard /wp-admin | 2,967 ▲36 | 5.94 ▼0.06 | 137.83 ▼24.12 | 116.54 ▼2.43 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 58.82 ▼14.81 | 90.59 ▼18.31 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.80 ▲0.13 | 379.72 ▼58.23 | 108.54 ▼3.81 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▼0.02 | 157.25 ▲2.57 | 121.40 ▼3.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/xmas-widget/xmas-widget.php+157
Undefined index: activated
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_xmas_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/xmas-widget/xmas-widget.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Donate link: Please fix this invalid url: ""
- Screenshots: Add images for these screenshots: #2 (banner-772x250.jpg), #3 (icon-128x128.jpg), #4 (banner-1544x500.jpg)
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
xmas-widget/xmas-widget.php Passed 13 tests
The main file in "Xmas Widget Little Elf" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Add personalized Christmas greetings to your site!
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 detected929 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 84 | 7 | 444 |
PHP | 2 | 131 | 33 | 436 |
JavaScript | 2 | 10 | 10 | 49 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 21 | |
▷ Static methods | 17 | 80.95% |
▷ Public methods | 21 | 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 | 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
25 compressed PNG files occupy 0.35MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/xmas-body-wrapping-paper-4.png | 20.82KB | 21.54KB | 0.00% |
images/xmas-pin-4.png | 5.63KB | 2.31KB | ▼ 58.99% |
images/xmas-snow-big.png | 4.87KB | 5.02KB | 0.00% |
images/xmas-body-wrapping-paper-3.png | 49.90KB | 52.47KB | 0.00% |
images/xmas-paperclip.png | 1.16KB | 1.18KB | 0.00% |