84% big-snow-flakes

Code Review | Big Snow Flakes

WordPress plugin Big Snow Flakes scored84%from 54 tests.

About plugin

  • Plugin page: big-snow-flakes
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.9
  • WordPress version: 6.3.1
  • First release: Dec 1, 2015
  • Latest release: Nov 9, 2017
  • Number of updates: 8
  • Update frequency: every 88.6 days
  • Top authors: WPManiax (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /5,089 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.95ms] Passed 4 tests

Analyzing server-side resources used by Big Snow Flakes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.18 ▼2.88
Dashboard /wp-admin3.35 ▲0.0547.32 ▼2.87
Posts /wp-admin/edit.php3.46 ▲0.1148.41 ▼3.35
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.97 ▼26.71
Media Library /wp-admin/upload.php3.27 ▲0.0435.75 ▼0.55

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Big Snow Flakes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,251 ▲46514.31 ▼0.4220.59 ▲18.34311.35 ▲269.22
Dashboard /wp-admin2,199 ▲225.54 ▼0.1092.54 ▼0.1038.53 ▼6.55
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0134.93 ▼1.1436.07 ▼0.67
Add New Post /wp-admin/post-new.php1,530 ▲423.23 ▼0.01688.80 ▼22.2066.92 ▲5.56
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.06115.43 ▼3.7152.36 ▲3.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • 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 everything seems fine, this is not 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 perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/big-snow-flakes/admin/partials/big-snow-flakes-admin-display.php
    • > /wp-content/plugins/big-snow-flakes/public/partials/big-snow-flakes-public-display.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: snow flake, christmas, snow flakes, show, snowing...

big-snow-flakes/big-snow-flakes.php Passed 13 tests

Analyzing the main PHP file in "Big Snow Flakes" version 1.0.1
83 characters long description:
Add Big Animated Snow Flakes to your Wordpress site and enjoy winter and Christmas.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin341 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33931175
PHP12116543166
CSS2080

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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%
Methods24
▷ Static methods28.33%
▷ Public methods1979.17%
▷ Protected methods00.00%
▷ Private methods520.83%
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
No PNG files were detected