78% improved-let-it-snow

Code Review | Improved Let It Snow!

WordPress plugin Improved Let It Snow! scored78%from 54 tests.

About plugin

  • Plugin page: improved-let-it-snow
  • Plugin version: 3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5-3.5
  • WordPress version: 6.3.1
  • First release: Dec 28, 2012
  • Latest release: Dec 28, 2012
  • Number of updates: 7
  • Update frequency: every 6.7 days
  • Top authors: codix (85.71%)mohanjith (28.57%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /10,061 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.71ms] Passed 4 tests

This is a short check of server-side resources used by Improved Let It Snow!
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0746.45 ▼1.06
Dashboard /wp-admin3.38 ▲0.0751.78 ▼2.00
Posts /wp-admin/edit.php3.43 ▲0.0750.62 ▼3.49
Add New Post /wp-admin/post-new.php5.96 ▲0.0788.24 ▼8.28
Media Library /wp-admin/upload.php3.30 ▲0.0743.83 ▲6.03
Improved Let It Snow! /wp-admin/options-general.php?page=improved_snow_options3.2733.13

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 21 new options
New WordPress options
theysaidso_admin_options
useTwinkleEffect
flakeBottom
snowStick
followMouse
flakesMax
can_compress_scripts
db_upgraded
freezeOnBlur
animationInterval
...

Browser metrics Passed 4 tests

A check of browser resources used by Improved Let It Snow!
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,220 ▲48513.30 ▼0.9317.07 ▲15.1476.27 ▲30.08
Dashboard /wp-admin2,210 ▲224.82 ▼1.07106.30 ▲3.0140.09 ▼2.00
Posts /wp-admin/edit.php2,096 ▲71.99 ▲0.0238.69 ▼8.1834.25 ▼0.12
Add New Post /wp-admin/post-new.php1,523 ▼1023.08 ▼0.07725.46 ▲78.3282.41 ▲27.56
Media Library /wp-admin/upload.php1,392 ▲44.27 ▲0.12105.83 ▼17.5646.05 ▼3.57
Improved Let It Snow! /wp-admin/options-general.php?page=improved_snow_options1,1522.0523.8128.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 21 options
    • theysaidso_admin_options
    • usePositionFixed
    • flakesMaxActive
    • flakeBottom
    • db_upgraded
    • widget_theysaidso_widget
    • flakesMax
    • snowCharacter
    • widget_recent-comments
    • freezeOnBlur
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=improved_snow_options
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=improved_snow_options
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=improved_snow_options
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
    Trying to get property 'ID' of non-object
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=improved_snow_options
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/improved-let-it-snow/snow.php:204

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: flakes, xmas, christmas, aen, snow

improved-let-it-snow/snow.php 85% from 13 tests

The primary PHP file in "Improved Let It Snow!" version 3.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 215 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("improved-let-it-snow.php" instead of "snow.php")

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
No dangerous file extensions were detected225 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12113224
JavaScript1181

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin