84% snowy

Code Review | Snowy

WordPress plugin Snowy scored84%from 54 tests.

About plugin

  • Plugin page: snowy
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.7.1
  • WordPress version: 6.3.1
  • First release: Dec 7, 2013
  • Latest release: Dec 7, 2013
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: show-ko (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /3,795 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Snowy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.28 ▼4.99
Dashboard /wp-admin3.31 ▲0.0146.04 ▼8.87
Posts /wp-admin/edit.php3.36 ▲0.0044.40 ▼3.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.97 ▼8.76
Media Library /wp-admin/upload.php3.24 ▲0.0036.18 ▲2.11

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Snowy
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.39 ▼0.902.77 ▲0.4945.52 ▼4.47
Dashboard /wp-admin2,209 ▲215.85 ▲0.0496.14 ▼20.8138.72 ▼3.15
Posts /wp-admin/edit.php2,089 ▲32.15 ▲0.1633.49 ▼2.6533.82 ▼1.05
Add New Post /wp-admin/post-new.php1,514 ▼1917.57 ▼5.75590.60 ▼45.8952.21 ▼2.58
Media Library /wp-admin/upload.php1,388 ▲34.20 ▲0.0499.96 ▼6.7539.79 ▼3.91

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 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/snowy/snowy.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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (The blue building is called Tokyo Sky Tree in Japan.)
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can look at the official readme.txt

snowy/snowy.php Passed 13 tests

The main PHP script in "Snowy" version 1.0.0 is automatically included on every request by WordPress
69 characters long description:
This plugin will be activated, creates a snowing effect on your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin54 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript261648
PHP16256

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
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%
Functions1
▷ Named functions1100.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 were not PNG files found in your plugin