84% devvn-snow

Code Review | DevVN Snow

WordPress plugin DevVN Snow scored84%from 54 tests.

About plugin

  • Plugin page: devvn-snow
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 21, 2021
  • Latest release: Dec 24, 2022
  • Number of updates: 6
  • Update frequency: every 61.5 days
  • Top authors: levantoan (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,500 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.68 ▼2.41
Dashboard /wp-admin3.38 ▲0.0746.56 ▼0.79
Posts /wp-admin/edit.php3.43 ▲0.0743.66 ▼4.74
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.44 ▼5.04
Media Library /wp-admin/upload.php3.30 ▲0.0734.57 ▼0.10
Snow Setting /wp-admin/options-general.php?page=setting-snow3.2630.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,121 ▲38613.93 ▼0.3913.23 ▲11.4047.44 ▼2.49
Dashboard /wp-admin2,210 ▲225.83 ▲0.80110.84 ▼3.9039.66 ▼4.01
Posts /wp-admin/edit.php2,093 ▲12.00 ▼0.0136.81 ▼13.0333.72 ▼6.43
Add New Post /wp-admin/post-new.php1,536 ▼623.43 ▲5.07638.90 ▲23.0152.71 ▼1.46
Media Library /wp-admin/upload.php1,392 ▲14.20 ▲0.0198.32 ▼6.6741.72 ▼0.50
Snow Setting /wp-admin/options-general.php?page=setting-snow1,1122.5241.1030.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)
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP14029606

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 code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/topright.png30.17KB9.83KB▼ 67.40%
images/bottomleft.png28.35KB9.17KB▼ 67.65%
images/ft.png40.84KB24.95KB▼ 38.91%
images/snow-style.png8.92KB6.28KB▼ 29.60%
images/snow-1.png1.83KB0.53KB▼ 70.81%