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
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼3.33ms] Passed 4 tests
An overview of server-side resources used by Christmas Greetings
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 44.28 ▲7.43 |
Dashboard /wp-admin | 3.48 ▲0.18 | 47.89 ▼0.66 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.61 ▲1.58 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 82.86 ▼19.18 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.72 ▲4.96 |
Server storage [IO: ▲6.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 81 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
genral_settings |
db_upgraded |
christmas_display_on |
advance_settings |
can_compress_scripts |
display_on_pages |
widget_recent-comments |
Browser metrics Passed 4 tests
Christmas Greetings: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 13.31 ▼1.07 | 1.92 ▲0.07 | 42.56 ▲0.60 |
Dashboard /wp-admin | 2,234 ▲43 | 5.79 ▼0.09 | 97.59 ▼4.21 | 80.48 ▲35.25 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.01 ▲0.01 | 38.64 ▼4.03 | 34.22 ▼1.00 |
Add New Post /wp-admin/post-new.php | 1,531 ▲12 | 17.55 ▼5.43 | 706.59 ▲77.28 | 57.70 ▲6.87 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.22 ▲0.05 | 94.76 ▼3.05 | 73.77 ▲29.58 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 10 options in the database
- genral_settings
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- display_on_pages
- widget_recent-comments
- can_compress_scripts
- advance_settings
- widget_theysaidso_widget
- christmas_display_on
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: snowflakes, christmas, christmas snow, christmas holiday, santa-claus...
christmas-greetings/christmas_greetings.php 85% from 13 tests
The main file in "Christmas Greetings" v. 1.2.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("christmas-greetings.php" instead of "christmas_greetings.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 196 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin6,222 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 43 | 48 | 2,444 |
JavaScript | 8 | 132 | 95 | 1,953 |
PHP | 3 | 1 | 10 | 1,825 |
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.37 |
Average class complexity | 32.33 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 11.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
42 compressed PNG files occupy 1.09MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/santa.png | 1.30KB | 1.34KB | 0.00% |
new-year/img/baloon.png | 14.52KB | 15.02KB | 0.00% |
css/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
new-year/img/goldan-baloon.png | 7.44KB | 3.47KB | ▼ 53.30% |
img/decoration.png | 178.42KB | 188.57KB | 0.00% |