68% snowball

Code Review | Snowball

WordPress plugin Snowball scored68%from 54 tests.

About plugin

  • Plugin page: snowball
  • Plugin version: 0.4.20
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.2
  • WordPress version: 6.3.1
  • First release: Nov 3, 2015
  • Latest release: Aug 14, 2019
  • Number of updates: 55
  • Update frequency: every 25.8 days
  • Top authors: thomaspark (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /15,128 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▲2.86ms] Passed 4 tests

Analyzing server-side resources used by Snowball
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3048.06 ▲4.61
Dashboard /wp-admin3.46 ▲0.1256.24 ▼6.00
Posts /wp-admin/edit.php3.57 ▲0.2160.46 ▲9.15
Add New Post /wp-admin/post-new.php6.04 ▲0.16100.36 ▲6.00
Media Library /wp-admin/upload.php3.38 ▲0.1544.71 ▲6.83
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=snowball3.3750.71
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=snowball3.3739.67

Server storage [IO: ▲4.43MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 469 new files
Database: 2 new tables, 8 new options
New tables
wp_snowball_blocks
wp_snowball_articles
New WordPress options
widget_recent-posts
widget_recent-comments
category_children
widget_theysaidso_widget
can_compress_scripts
snowball_db_version
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Snowball
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9214.38 ▲0.161.77 ▼0.2440.28 ▼11.74
Dashboard /wp-admin2,233 ▲565.66 ▼0.0390.22 ▼4.2140.58 ▼3.06
Posts /wp-admin/edit.php2,135 ▲352.05 ▲0.0239.31 ▼1.3935.18 ▲1.41
Add New Post /wp-admin/post-new.php1,575 ▲4321.04 ▼2.12668.90 ▼9.6958.66 ▲4.90
Media Library /wp-admin/upload.php1,435 ▲354.17 ▲0.0497.21 ▼20.6847.12 ▼2.25
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=snowball1,4902.1528.2032.05
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=snowball1,3512.1728.9531.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_snowball_blocks
    • wp_snowball_articles
  • The uninstall procedure has failed, leaving 8 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • category_children
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • snowball_db_version

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
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/snowball/inc/snowball-options.php
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function setup_postdata() in wp-content/plugins/snowball/inc/snowball-editor.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/snowball/snowball.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snowball/inc/snowball-enqueue.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function setup_postdata() in wp-content/plugins/snowball/inc/snowball-settings.php:337
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snowball/inc/snowball-config.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function setup_postdata() in wp-content/plugins/snowball/snowball-template.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/snowball/inc/snowball-template-theme.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snowball/inc/snowball-database.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/snowball/inc/snowball-template-default.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
  • Plugin Name: You should set the name of your plugin on the first line ( === snowball === )
Please take inspiration from this readme.txt

snowball/snowball.php Passed 13 tests

"Snowball" version 0.4.20's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
74 characters long description:
A block-based editor for authoring modern, immersive longform web articles

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin20,120 lines of code in 416 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript621,6381,27912,125
HTML4933432,122
JSON268101,907
CSS20188711,708
PHP10224109979
SVG300811
Markdown31430390
Sass16378

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.28
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%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected