Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼264.08ms] Passed 4 tests
A check of server-side resources used by Xmas Decoration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 40.76 ▲17.07 |
Dashboard /wp-admin | 3.06 ▲0.01 | 36.62 ▼10.26 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 44.49 ▼2.04 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 90.89 ▼1,039.26 |
Media Library /wp-admin/upload.php | 3.01 ▼0.00 | 34.13 ▼4.75 |
Xmas Decoration /wp-admin/options-general.php?page=xmas_decoration | 3.01 | 27.51 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 3 new options
New WordPress options |
---|
xmas_decoration_bar_type |
xmas_decoration_body_date_range |
xmas_decoration_body_padding_top |
Browser metrics Passed 4 tests
A check of browser resources used by Xmas Decoration
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,978 ▲1,372 | 16.83 ▲1.34 | 13.63 ▲4.36 | 51.08 ▲1.68 |
Dashboard /wp-admin | 2,935 ▲85 | 6.00 ▲0.18 | 132.02 ▲2.01 | 106.29 ▲7.87 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.69 ▼0.00 | 66.35 ▼4.87 | 101.07 ▲2.34 |
Add New Post /wp-admin/post-new.php | 1,580 ▼71 | 18.41 ▲1.24 | 341.91 ▼21.52 | 114.01 ▲2.51 |
Media Library /wp-admin/upload.php | 1,777 ▲2 | 5.01 ▲0.01 | 157.87 ▼3.59 | 115.17 ▲0.84 |
Xmas Decoration /wp-admin/options-general.php?page=xmas_decoration | 1,414 | 2.47 | 61.28 | 84.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 3 options in the database
- xmas_decoration_body_date_range
- xmas_decoration_bar_type
- xmas_decoration_body_padding_top
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/xmas-decoration/xmas-decoration.php
- > /wp-content/plugins/xmas-decoration/site/tmpl/default.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/xmas-decoration/admin/tmpl/default.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/xmas-decoration/site/tmpl/default.php:442
- > PHP Fatal error
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 errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (Xmas Decoration)
xmas-decoration/xmas-decoration.php Passed 13 tests
The primary PHP file in "Xmas Decoration" version 1.3 is used by WordPress to initiate all plugin functionality
32 characters long description:
This plugin adds Xmas Decoration
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected851 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 17 | 11 | 577 |
CSS | 1 | 51 | 0 | 263 |
JavaScript | 2 | 0 | 7 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
site/assets/images/b-ball_i2.png | 4.04KB | 2.36KB | ▼ 41.47% |
site/assets/images/b-ball_i3.png | 2.61KB | 1.83KB | ▼ 29.73% |
site/assets/images/b-ball_i1.png | 4.89KB | 2.50KB | ▼ 48.98% |
site/assets/images/b-ball_n7.png | 8.44KB | 3.01KB | ▼ 64.33% |
site/assets/images/b-ball_n5.png | 4.41KB | 2.60KB | ▼ 41.09% |