73% wp-snow-effect

Code Review | WP Snow Effect

WordPress plugin WP Snow Effect scored73%from 54 tests.

About plugin

  • Plugin page: wp-snow-effect
  • Plugin version: 1.1.15
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.5.3
  • WordPress version: 6.3.1
  • First release: Dec 14, 2011
  • Latest release: Dec 10, 2020
  • Number of updates: 60
  • Update frequency: every 54.7 days
  • Top authors: d3wp (100%)

Code review

54 tests

User reviews

361 reviews

Install metrics

2,000+ active /224,335 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.18MB] [CPU: ▼9.63ms] Passed 4 tests

Analyzing server-side resources used by WP Snow Effect
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1636.04 ▼4.00
Dashboard /wp-admin3.50 ▲0.1544.63 ▼20.61
Posts /wp-admin/edit.php3.61 ▲0.2550.21 ▲6.94
Add New Post /wp-admin/post-new.php6.10 ▲0.2186.44 ▼17.00
Media Library /wp-admin/upload.php3.43 ▲0.1937.14 ▲3.10
WP Snow Effect /wp-admin/options-general.php?page=snoweffect-settings3.4031.07

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
wp_snow_effect_activation_date
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

WP Snow Effect: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,184 ▲43814.05 ▼0.3424.30 ▲22.57165.62 ▲119.97
Dashboard /wp-admin2,214 ▲234.85 ▼0.02111.61 ▲13.0141.86 ▲3.70
Posts /wp-admin/edit.php2,094 ▲22.01 ▲0.0336.38 ▼4.7032.74 ▼3.98
Add New Post /wp-admin/post-new.php1,521 ▼1323.36 ▲0.30665.54 ▲68.1866.88 ▲16.30
Media Library /wp-admin/upload.php1,396 ▲54.23 ▲0.0194.62 ▼4.7638.63 ▼4.30
WP Snow Effect /wp-admin/options-general.php?page=snoweffect-settings1,2001.9138.4447.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • wp_snow_effect_activation_date
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-snow-effect/public/partials/wp-snow-effect-public-display.php
    • > /wp-content/plugins/wp-snow-effect/admin/partials/wp-snow-effect-admin-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-snow-effect/admin/settings/settings.php:23

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=snoweffect-settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=snoweffect-settings:154:52)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=snoweffect-settings
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

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

The main PHP file in "WP Snow Effect" ver. 1.1.15 adds more information about the plugin and also serves as the entry point for this plugin
90 characters long description:
Add nice looking animation effect of falling snow to your Wordpress site and enjoy winter.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,029 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP14311717823
JavaScript652180
CSS20526

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.75
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods49
▷ Static methods24.08%
▷ Public methods4387.76%
▷ Protected methods00.00%
▷ Private methods612.24%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/info.png1.08KB0.88KB▼ 18.04%