89% db-falling-snowflakes

Code Review | DB Falling Snowflakes

WordPress plugin DB Falling Snowflakes scored89%from 54 tests.

About plugin

  • Plugin page: db-falling-snowfl...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Sep 13, 2023
  • Latest release: Sep 14, 2023
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: bisteinoff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /55 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.00ms] Passed 4 tests

Server-side resources used by DB Falling Snowflakes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.19 ▼0.95
Dashboard /wp-admin3.37 ▲0.0250.64 ▼14.51
Posts /wp-admin/edit.php3.42 ▲0.0650.77 ▼2.30
Add New Post /wp-admin/post-new.php5.95 ▲0.0789.93 ▼14.22
Media Library /wp-admin/upload.php3.29 ▲0.0640.92 ▲1.39

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 19 new options
New WordPress options

Browser metrics Passed 4 tests

DB Falling Snowflakes: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲19413.46 ▼0.981.74 ▼0.3946.52 ▼1.64
Dashboard /wp-admin2,349 ▲1615.14 ▲0.24113.90 ▲7.1940.64 ▼6.93
Posts /wp-admin/edit.php2,234 ▲1452.33 ▲0.2839.63 ▼0.0534.55 ▼2.79
Add New Post /wp-admin/post-new.php1,544 ▲2523.33 ▲0.26693.93 ▲87.2237.21 ▼16.89
Media Library /wp-admin/upload.php1,532 ▲1444.53 ▲0.30102.39 ▼0.7544.25 ▼2.83

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 19 options in the database
    • db_snow_color_1
    • db_snow_max_size
    • db_snow_color_3
    • db_snow_finish_month
    • can_compress_scripts
    • db_snow_start_month
    • widget_recent-comments
    • theysaidso_admin_options
    • db_snow_speed
    • db_upgraded
    • ...

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: snowflakes, falling snow, its snowing, snow effect, snow...

db-falling-snowflakes/bisteinoff-snow.php 85% from 13 tests

The entry point to "DB Falling Snowflakes" version 1.5.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("db-falling-snowflakes.php" instead of "bisteinoff-snow.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 198 characters long)

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 detected635 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions1100.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin