78% smooth-snow

Code Review | Smooth Snow

WordPress plugin Smooth Snow scored78%from 54 tests.

About plugin

  • Plugin page: smooth-snow
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6
  • WordPress version: 6.3.1
  • First release: Dec 16, 2020
  • Latest release: Dec 16, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: codextgmbh (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /6,330 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
Install script ran successfully

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

Server-side resources used by Smooth Snow
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.58 ▼5.21
Dashboard /wp-admin3.31 ▲0.0155.14 ▲4.06
Posts /wp-admin/edit.php3.36 ▲0.0056.72 ▲7.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.76 ▲0.94
Media Library /wp-admin/upload.php3.23 ▲0.0034.74 ▼1.00

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Smooth Snow
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲7013.20 ▼1.491.86 ▼0.3441.23 ▲1.51
Dashboard /wp-admin2,206 ▲245.83 ▼0.0299.67 ▼5.6639.54 ▼2.01
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0639.91 ▼4.1631.38 ▼6.83
Add New Post /wp-admin/post-new.php1,533 ▲1923.08 ▲5.61652.33 ▼39.7254.20 ▲2.90
Media Library /wp-admin/upload.php1,385 ▲34.19 ▲0.06104.98 ▼3.4144.35 ▼0.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/smooth-snow/index.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smooth-snow/smooth-snow.php:30

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (Snow Screenshot)
The official readme.txt is a good inspiration

smooth-snow/smooth-snow.php 92% from 13 tests

The principal PHP file in "Smooth Snow" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 plugin101 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS112081
PHP262320

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 1.26MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/snow-small-1ecd03b1fce08c24e064ff8c0a72c519-min.png1.15KB1.16KB0.00%
assets/screenshot-1.png1,270.38KB398.46KB▼ 68.63%
images/snow-large-075d267ecbc42e3564c8ed43516dd557-min.png0.72KB0.73KB0.00%
assets/icon-128x128.png13.76KB7.07KB▼ 48.63%
images/snow-medium-0b8a5e0732315b68e1f54185be7a1ad9-min.png1.78KB1.79KB0.00%