83% christmas-snow-fall

Code Review | Christmas Snow Fall

WordPress plugin Christmas Snow Fall scored83%from 54 tests.

About plugin

  • Plugin page: christmas-snow-fall
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Dec 4, 2015
  • Latest release: Dec 4, 2015
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: Md. Shiddikur Rahman (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /4,611 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.17ms] Passed 4 tests

An overview of server-side resources used by Christmas Snow Fall
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.01 ▼4.28
Dashboard /wp-admin3.33 ▼0.0248.29 ▼15.21
Posts /wp-admin/edit.php3.38 ▲0.0256.17 ▲4.92
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.14 ▼13.39
Media Library /wp-admin/upload.php3.25 ▲0.0237.71 ▲0.21
Christmas Snow Fall Options /wp-admin/options-general.php?page=snow-fall-settings3.2236.15

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Christmas Snow Fall
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲15813.83 ▼0.984.82 ▲3.0042.45 ▼0.39
Dashboard /wp-admin2,226 ▲445.06 ▼0.81106.41 ▼3.6341.62 ▲1.63
Posts /wp-admin/edit.php2,117 ▲282.32 ▲0.3045.50 ▲10.8034.94 ▲2.12
Add New Post /wp-admin/post-new.php1,533 ▼023.17 ▼0.14678.89 ▲5.8737.32 ▼30.83
Media Library /wp-admin/upload.php1,405 ▲174.48 ▲0.28101.45 ▼12.6846.89 ▼1.57
Christmas Snow Fall Options /wp-admin/options-general.php?page=snow-fall-settings9652.5447.5728.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/christmas-snow-fall/christmas_snow_fall_main.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Contributors: Contributors not specified
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add an image for screenshot #1 (Demo Screenshots.)
Please take inspiration from this readme.txt

christmas-snow-fall/christmas_snow_fall_main.php 85% from 13 tests

The main PHP file in "Christmas Snow Fall" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 245 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("christmas-snow-fall.php" instead of "christmas_snow_fall_main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected381 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21417280
PHP17518101

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Constants1
▷ Global constants1100.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
8 PNG files occupy 0.28MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Screenshot-1.png140.61KB45.94KB▼ 67.33%
img/snowflake.png1.39KB1.24KB▼ 10.96%
screenshot-3.png47.79KB15.17KB▼ 68.26%
img/snowflake_2.png1.26KB1.13KB▼ 10.58%
img/snowflake_1.png1.10KB1.05KB▼ 4.53%