84% christmas-snow-3d

Code Review | Christmas Snow 3D - Snowfalling, Snowflake Effect and Christmas mood

WordPress plugin Christmas Snow 3D - Snowfalling, Snowflake Effect and Christmas mood scored84%from 54 tests.

About plugin

  • Plugin page: christmas-snow-3d
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 10, 2022
  • Latest release: Dec 10, 2022
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: fnpen (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

20+ active /1,361 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.45ms] Passed 4 tests

An overview of server-side resources used by Christmas Snow 3D - Snowfalling, Snowflake Effect and Christmas mood
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.71 ▼3.94
Dashboard /wp-admin3.31 ▲0.0043.56 ▼1.51
Posts /wp-admin/edit.php3.36 ▲0.0047.02 ▲1.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.88 ▼6.53
Media Library /wp-admin/upload.php3.23 ▲0.0036.26 ▼1.80

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Christmas Snow 3D - Snowfalling, Snowflake Effect and Christmas mood: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6118.70 ▲4.1490.54 ▲89.0341.89 ▲0.66
Dashboard /wp-admin2,203 ▲155.79 ▼0.1195.61 ▼9.5335.70 ▼4.26
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0035.75 ▼0.4633.90 ▲0.15
Add New Post /wp-admin/post-new.php1,546 ▲2722.77 ▼0.44623.82 ▼38.3152.66 ▲1.95
Media Library /wp-admin/upload.php1,388 ▼04.25 ▼0.15106.11 ▲9.8145.88 ▲2.12

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ChristmasSnow3d\\add_action() in wp-content/plugins/christmas-snow-3d/christmas-snow-3d.php:37

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: christmas, snow falling, snow, winter, snowflakes

christmas-snow-3d/christmas-snow-3d.php 92% from 13 tests

Analyzing the main PHP file in "Christmas Snow 3D - Snowfalling, Snowflake Effect and Christmas mood" version 1.0.1
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.4" instead of "5.7")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin70 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
Markdown123041
PHP253118
JSON10010
JavaScript1001

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.25
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
Namespaces1
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 1.19MB with 0.79MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png116.60KB42.10KB▼ 63.89%
assets/banner-772x250.png244.17KB80.53KB▼ 67.02%
assets/banner-1544x500.png854.86KB276.71KB▼ 67.63%