84% screen-snow

Code Review | Screen Snow

WordPress plugin Screen Snow scored84%from 54 tests.

About plugin

  • Plugin page: screen-snow
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 22, 2015
  • Latest release: Jul 22, 2015
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: Haandvaerkeren (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,164 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.95ms] Passed 4 tests

Analyzing server-side resources used by Screen Snow
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0446.43 ▲8.36
Dashboard /wp-admin3.34 ▲0.0349.65 ▼2.48
Posts /wp-admin/edit.php3.39 ▲0.0349.97 ▼0.52
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.21 ▼15.33
Media Library /wp-admin/upload.php3.26 ▲0.0336.11 ▼9.45

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Screen Snow
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲17813.24 ▼1.167.79 ▲6.0851.58 ▲8.28
Dashboard /wp-admin2,210 ▲225.84 ▲0.95121.39 ▲2.9678.11 ▲35.96
Posts /wp-admin/edit.php2,114 ▲251.99 ▼0.0138.27 ▼1.3734.60 ▲1.96
Add New Post /wp-admin/post-new.php1,531 ▲1717.58 ▲0.10756.02 ▲132.9757.94 ▲3.88
Media Library /wp-admin/upload.php1,410 ▲224.22 ▲0.0194.14 ▼9.9174.45 ▲33.26

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

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 everything seems fine, this is not 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
The following issues need your attention
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/screen-snow/js/index.php
    • > /wp-content/plugins/screen-snow/imgs/index.php
    • > /wp-content/plugins/screen-snow/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: snow effect, snow, screen snow, site snow, christmas

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

The main file in "Screen Snow" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
Screen Snow is a plugin that add snow effect to the wordpress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,010 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript313938837
PHP71222162
CSS20011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions9
▷ Named functions9100.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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/hs.png2.62KB7.54KB0.00%
js/hv.png2.80KB7.32KB0.00%
imgs/menuicon.png3.15KB0.78KB▼ 75.09%
imgs/snow.png7.78KB3.03KB▼ 61.08%