78% weather-effect

Code Review | Weather Effect - Christmas, Santa, Snow Falling, Snowflake Effect

WordPress plugin Weather Effect - Christmas, Santa, Snow Falling, Snowflake Effect scored78%from 54 tests.

About plugin

  • Plugin page: weather-effect
  • Plugin version: 1.4.8
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Dec 18, 2016
  • Latest release: Oct 20, 2023
  • Number of updates: 104
  • Update frequency: every 24.1 days
  • Top authors: awordpresslife (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

4,000+ active /147,681 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼9.00ms] 75% from 4 tests

This is a short check of server-side resources used by Weather Effect - Christmas, Santa, Snow Falling, Snowflake Effect
The following require your attention
  • CPU: Total CPU usage should be kept under 500.00ms (currently 634.44ms on /wp-admin/admin.php?page=we-featured-plugins)
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3331.35 ▼10.85
Dashboard /wp-admin3.41 ▲0.1147.94 ▼1.43
Posts /wp-admin/edit.php3.46 ▲0.1146.40 ▼1.18
Add New Post /wp-admin/post-new.php5.99 ▲0.1180.07 ▼17.85
Media Library /wp-admin/upload.php3.33 ▲0.1133.16 ▼5.86
More Free Plugins /wp-admin/admin.php?page=we-featured-plugins3.51634.44
Weather Effect /wp-admin/admin.php?page=weather-effects-setting3.4534.89

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 103 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
weather_effect_settings
widget_theysaidso_widget

Browser metrics Passed 4 tests

Weather Effect - Christmas, Santa, Snow Falling, Snowflake Effect: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲17013.49 ▼0.698.27 ▲6.3442.25 ▼2.07
Dashboard /wp-admin2,222 ▲455.49 ▼0.1788.69 ▲4.2638.86 ▼6.22
Posts /wp-admin/edit.php2,127 ▲242.03 ▲0.0032.53 ▼1.4034.60 ▼1.90
Add New Post /wp-admin/post-new.php1,548 ▲2223.08 ▲0.11658.64 ▼22.3252.14 ▼1.29
Media Library /wp-admin/upload.php1,427 ▲304.19 ▼0.0796.13 ▼1.4442.03 ▼1.41
More Free Plugins /wp-admin/admin.php?page=we-featured-plugins3,9751.1628.6282.97
Weather Effect /wp-admin/admin.php?page=weather-effects-setting9,6713.2083.21115.21

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • weather_effect_settings
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Please fix the following items
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/weather-effect/settings/rainy-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/weather-effect/featured-plugins/featured-plugins.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/weather-effect/settings/spring-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/weather-effect/output.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/weather-effect/settings/christmas-snow-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/weather-effect/settings/halloween-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/weather-effect/settings/autumn-settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/weather-effect/weather-effect.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/weather-effect/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/weather-effect/settings/valentine-settings.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=weather-effects-setting
    • > Javascript (severe) in unknown
    /wp-content/plugins/weather-effect/assets/js/bootstrap.js?ver=6.3.1 1794:3 Uncaught SyntaxError: Unexpected token 'else'

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: weather effect, snow falling, winter effect, christmas effect, valentine effect

weather-effect/weather-effect.php Passed 13 tests

The main PHP file in "Weather Effect - Christmas, Santa, Snow Falling, Snowflake Effect" ver. 1.4.8 adds more information about the plugin and also serves as the entry point for this plugin
30 characters long description:
This is Weather Effect Widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected30,282 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
CSS71,5811,78721,228
PHP141492124,733
JavaScript96393222,654
SVG200973
PO File2340434694

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
56 compressed PNG files occupy 0.61MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/newyear/newyear_balloon5.png9.87KB9.68KB▼ 1.90%
assets/images/spring/spring-leaf1.png21.97KB21.93KB0.20%
assets/images/halloween/witch1.png2.07KB2.07KB0.00%
assets/images/christmas/candy3.png13.28KB13.14KB▼ 0.99%
assets/images/christmas/ribbon1.png3.99KB4.19KB0.00%