Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.25ms] Passed 4 tests
Analyzing server-side resources used by DevVN Snow
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.68 ▼2.41 |
Dashboard /wp-admin | 3.38 ▲0.07 | 46.56 ▼0.79 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 43.66 ▼4.74 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.44 ▼5.04 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.57 ▼0.10 |
Snow Setting /wp-admin/options-general.php?page=setting-snow | 3.26 | 30.06 |
Server storage [IO: ▲1.67MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by DevVN Snow
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,121 ▲386 | 13.93 ▼0.39 | 13.23 ▲11.40 | 47.44 ▼2.49 |
Dashboard /wp-admin | 2,210 ▲22 | 5.83 ▲0.80 | 110.84 ▼3.90 | 39.66 ▼4.01 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▼0.01 | 36.81 ▼13.03 | 33.72 ▼6.43 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.43 ▲5.07 | 638.90 ▲23.01 | 52.71 ▼1.46 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▲0.01 | 98.32 ▼6.67 | 41.72 ▼0.50 |
Snow Setting /wp-admin/options-general.php?page=setting-snow | 1,112 | 2.52 | 41.10 | 30.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/devvn-snow/devvn-snow.php
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png), #2 (screenshot-2.png)
devvn-snow/devvn-snow.php Passed 13 tests
The primary PHP file in "DevVN Snow" version 1.0.3 is used by WordPress to initiate all plugin functionality
96 characters long description:
Christmas decorations for your website such as snowfall, Christmas bell scene, Christmas tree...
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected606 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 40 | 29 | 606 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 9 | |
▷ Named functions | 9 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 1.64MB with 0.90MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/topright.png | 30.17KB | 9.83KB | ▼ 67.40% |
images/bottomleft.png | 28.35KB | 9.17KB | ▼ 67.65% |
images/ft.png | 40.84KB | 24.95KB | ▼ 38.91% |
images/snow-style.png | 8.92KB | 6.28KB | ▼ 29.60% |
images/snow-1.png | 1.83KB | 0.53KB | ▼ 70.81% |