84% snow-storm

Code Review | Snow Storm

WordPress plugin Snow Storm scored84%from 54 tests.

About plugin

  • Plugin page: snow-storm
  • Plugin version: 1.4.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Dec 3, 2010
  • Latest release: Apr 1, 2019
  • Number of updates: 36
  • Update frequency: every 84.5 days
  • Top authors: contrid (100%)

Code review

54 tests

User reviews

41 reviews

Install metrics

300+ active /101,844 total downloads

Benchmarks

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.08MB] [CPU: ▼3.17ms] Passed 4 tests

Analyzing server-side resources used by Snow Storm
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.17 ▼5.36
Dashboard /wp-admin3.37 ▲0.0746.12 ▼2.46
Posts /wp-admin/edit.php3.49 ▲0.1449.86 ▲1.65
Add New Post /wp-admin/post-new.php5.97 ▲0.0992.19 ▼5.57
Media Library /wp-admin/upload.php3.30 ▲0.0735.70 ▲0.72
Snow Storm /wp-admin/options-general.php?page=snow-storm3.3335.00

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 17 new options
New WordPress options
widget_recent-comments
snowstorm_excludeMobile
snowstorm_ratereview_scheduled
snowstorm_flakesMaxActive
snowstorm_snowStick
db_upgraded
snowstorm_useMeltEffect
widget_recent-posts
snowstorm_snowColor
can_compress_scripts
...

Browser metrics Passed 4 tests

Snow Storm: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,284 ▲53814.92 ▲0.3417.94 ▲15.6882.72 ▲38.29
Dashboard /wp-admin2,218 ▲305.26 ▲0.36116.30 ▲0.4538.96 ▼7.12
Posts /wp-admin/edit.php2,144 ▲552.53 ▲0.4854.78 ▲17.7854.24 ▲20.04
Add New Post /wp-admin/post-new.php1,545 ▲2623.24 ▲0.09649.11 ▼30.9436.56 ▼28.15
Media Library /wp-admin/upload.php1,423 ▲354.73 ▲0.53107.64 ▲6.1142.83 ▼4.01
Snow Storm /wp-admin/options-general.php?page=snow-storm1,4673.1463.5059.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 17 options in the database
    • db_upgraded
    • snowstorm_snowColor
    • snowstorm_excludeMobile
    • snowstorm_useTwinkleEffect
    • snowstorm_followMouse
    • widget_recent-comments
    • snowstorm_flakesMax
    • theysaidso_admin_options
    • snowstorm_ratereview_scheduled
    • snowstorm_useMeltEffect
    • ...

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
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/snow-storm/views/admin/metaboxes/settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: christmas, snow storm, falling snow, snow, snow flakes...

snow-storm/snow-storm.php Passed 13 tests

The primary PHP file in "Snow Storm" version 1.4.5 is used by WordPress to initiate all plugin functionality
94 characters long description:
Display falling snow flakes on the front of your WordPress website for a festive presentation.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected541 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP77416423
PO File1293579
JavaScript331535
CSS1004

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/newsletters.png14.32KB6.31KB▼ 55.95%