90% snowflakes

Code Review | Snowflakes

WordPress plugin Snowflakes scored90%from 54 tests.

About plugin

  • Plugin page: snowflakes
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Nov 28, 2016
  • Latest release: Dec 20, 2016
  • Number of updates: 10
  • Update frequency: every 2.5 days
  • Top authors: pderas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,870 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.01MB] [CPU: ▲0.31ms] Passed 4 tests

A check of server-side resources used by Snowflakes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.54 ▲1.70
Dashboard /wp-admin3.31 ▲0.0150.05 ▼0.25
Posts /wp-admin/edit.php3.36 ▲0.0150.53 ▼0.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0198.04 ▲3.72
Media Library /wp-admin/upload.php3.23 ▲0.0137.35 ▲0.57

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Snowflakes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,289 ▲52815.49 ▲1.1454.71 ▲52.8264.33 ▲21.84
Dashboard /wp-admin2,192 ▲125.51 ▼0.1782.52 ▼6.1538.77 ▼2.38
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0141.58 ▲4.8237.97 ▼5.27
Add New Post /wp-admin/post-new.php1,537 ▲1118.13 ▼5.00620.52 ▼4.5367.93 ▲9.28
Media Library /wp-admin/upload.php1,403 ▲34.19 ▲0.01100.00 ▼7.6144.43 ▲0.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Screenshots: Add a description for screenshot #1 in snowflakes/assets to your readme.txt
The official readme.txt might help

snowflakes/snowflakes.php Passed 13 tests

The principal PHP file in "Snowflakes" v. 1.1 is loaded by WordPress automatically on each request
51 characters long description:
Creates a falling snow graphic across your website.

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 plugin98 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript143263
PHP275025
CSS121010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
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 Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
25 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/snowflake-7.png3.89KB2.58KB▼ 33.68%
assets/images/snowflake-22.png3.76KB2.49KB▼ 33.83%
assets/images/snowflake-10.png3.76KB2.51KB▼ 33.32%
assets/images/snowflake-1.png4.01KB2.63KB▼ 34.40%
assets/images/snowflake-15.png3.95KB2.59KB▼ 34.43%