78% snow

Code Review | Snow

WordPress plugin Snow scored 78% from 54 tests.

About plugin

  • Plugin page: snow
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Nov 21, 2016
  • Latest release: Dec 21, 2016
  • Number of updates: 20
  • Update frequency: every 1.5 days
  • Top authors: lowest (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

300+ active / 19,364 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.22ms] Passed 4 tests

Server-side resources used by Snow
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2328.16 ▼16.45
Dashboard /wp-admin3.33 ▲0.0346.08 ▼5.56
Posts /wp-admin/edit.php3.38 ▲0.0249.29 ▲3.51
Add New Post /wp-admin/post-new.php5.91 ▲0.02104.86 ▲3.94
Media Library /wp-admin/upload.php3.25 ▲0.0236.96 ▼2.38
Technical /wp-admin/admin.php?page=snow_technical3.3034.49
Advanced /wp-admin/admin.php?page=snow_advanced3.2234.08
General /wp-admin/admin.php?page=snow3.2232.88

Server storage [IO: ▲0.13MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Snow
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,079 ▲32213.98 ▼0.6120.09 ▲17.8953.60 ▲7.20
Dashboard /wp-admin2,239 ▲685.07 ▼0.79110.04 ▼12.9154.99 ▲7.60
Posts /wp-admin/edit.php2,119 ▲301.99 ▲0.0041.23 ▲6.1842.00 ▲6.14
Add New Post /wp-admin/post-new.php1,564 ▲4218.50 ▼4.55613.10 ▼62.5258.00 ▲9.47
Media Library /wp-admin/upload.php1,421 ▲394.24 ▲0.0796.87 ▲0.2044.16 ▲0.74
Technical /wp-admin/admin.php?page=snow_technical1,1773.4348.0728.57
Advanced /wp-admin/admin.php?page=snow_advanced1,1483.5149.4335.63
General /wp-admin/admin.php?page=snow1,4024.0456.4531.23

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=snow
    • > Notice in wp-content/plugins/snow/inc/header.php+18
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/snow/inc/header.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/snow/inc/footer.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: snow, winter, weather, christmas, snowy...

snow/snow.php 85% from 13 tests

The entry point to "Snow" version 2.0.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("")
  • Domain Path: Please prefix the domain path with a forward slash character ("/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,627 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP62136861,123
JavaScript53722379
CSS200125

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity134.00
▷ Minimum class complexity134.00
▷ Maximum class complexity134.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods35
▷ Static methods925.71%
▷ Public methods3394.29%
▷ Protected methods25.71%
▷ Private methods00.00%
Functions20
▷ Named functions1155.00%
▷ Anonymous functions945.00%
Constants11
▷ Global constants218.18%
▷ Class constants981.82%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin