84% wp-snow

Code Review | WP Snow - Best Snow Effect Plugin

WordPress plugin WP Snow - Best Snow Effect Plugin scored84%from 54 tests.

About plugin

  • Plugin page: wp-snow
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: May 3, 2019
  • Latest release: Sep 25, 2023
  • Number of updates: 9
  • Update frequency: every 178.6 days
  • Top authors: ironikus (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

1,000+ active /20,850 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.21MB] [CPU: ▲0.04ms] Passed 4 tests

A check of server-side resources used by WP Snow - Best Snow Effect Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2343.80 ▼2.57
Dashboard /wp-admin3.52 ▲0.2148.56 ▼0.99
Posts /wp-admin/edit.php3.57 ▲0.2149.43 ▲1.25
Add New Post /wp-admin/post-new.php6.10 ▲0.2199.60 ▲2.46
Media Library /wp-admin/upload.php3.44 ▲0.2141.61 ▲7.42
WP Snow /wp-admin/options-general.php?page=wp-snow3.4537.34

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP Snow - Best Snow Effect Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,011 ▲26513.76 ▼0.5310.88 ▲8.48107.17 ▲59.35
Dashboard /wp-admin2,207 ▲164.85 ▼1.0195.15 ▼8.6238.03 ▼2.14
Posts /wp-admin/edit.php2,090 ▼22.04 ▲0.0238.88 ▼1.6834.91 ▼0.05
Add New Post /wp-admin/post-new.php1,545 ▲1118.38 ▼4.89602.23 ▼81.0063.99 ▲8.28
Media Library /wp-admin/upload.php1,383 ▼54.16 ▼0.0893.18 ▼17.0241.20 ▼4.99
WP Snow /wp-admin/options-general.php?page=wp-snow7,9632.0225.3240.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-snow/core/partials/settings.php:83
    • > PHP Warning
      Use of undefined constant WPSNOW_NAME - assumed 'WPSNOW_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-snow/core/partials/settings.php on line 81

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in wp-snow/assets to your readme.txt
The official readme.txt might help

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

This is the main PHP file of "WP Snow - Best Snow Effect Plugin" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
46 characters long description:
The best (snow)flakes animation for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin479 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP410160408
JavaScript219071

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin