84% happy-snowman

Code Review | Happy Snowman

WordPress plugin Happy Snowman scored84%from 54 tests.

About plugin

  • Plugin page: happy-snowman
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.9
  • WordPress version: 6.3.1
  • First release: Nov 27, 2015
  • Latest release: Nov 9, 2017
  • Number of updates: 13
  • Update frequency: every 54.9 days
  • Top authors: WPManiax (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /5,690 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by Happy Snowman
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.36 ▼2.20
Dashboard /wp-admin3.31 ▲0.0144.58 ▼2.00
Posts /wp-admin/edit.php3.36 ▲0.0146.06 ▼12.26
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.71 ▼15.27
Media Library /wp-admin/upload.php3.24 ▲0.0136.74 ▲2.29

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Happy Snowman
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,980 ▲24514.00 ▼0.304.49 ▲2.6745.89 ▼3.08
Dashboard /wp-admin2,210 ▲225.79 ▲0.94101.53 ▼11.6940.61 ▲0.06
Posts /wp-admin/edit.php2,093 ▲12.05 ▼0.0138.75 ▼1.7234.67 ▼2.79
Add New Post /wp-admin/post-new.php1,532 ▲1823.11 ▲5.56661.94 ▲4.7062.97 ▲6.89
Media Library /wp-admin/upload.php1,395 ▲74.22 ▼0.13101.77 ▼0.4344.82 ▼0.79

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/happy-snowman/admin/partials/happy-snowman-admin-display.php
    • > /wp-content/plugins/happy-snowman/public/partials/happy-snowman-public-display.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: winter, christmas, show, snowman

happy-snowman/happy-snowman.php Passed 13 tests

The main file in "Happy Snowman" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

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
Everything looks great! No dangerous files found in this plugin792 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS2418565
PHP12116543221
JavaScript24546

PHP code Passed 2 tests

An short overview of 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.06
Average class complexity1.29
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.08
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin