78% snow-time

Code Review | Snow Time

WordPress plugin Snow Time scored78%from 54 tests.

About plugin

  • Plugin page: snow-time
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Dec 10, 2017
  • Latest release: Dec 23, 2017
  • Number of updates: 5
  • Update frequency: every 2.6 days
  • Top authors: veradeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,046 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.62ms] Passed 4 tests

A check of server-side resources used by Snow Time
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0722.78 ▼15.24
Dashboard /wp-admin3.32 ▼0.0244.84 ▼17.30
Posts /wp-admin/edit.php3.37 ▲0.0245.45 ▼1.23
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.78 ▼4.71
Media Library /wp-admin/upload.php3.24 ▲0.0237.70 ▲4.26
Snow Time /wp-admin/options-general.php?page=snow_time_settings3.1928.33

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

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

Browser metrics Passed 4 tests

Snow Time: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,083 ▲33714.25 ▼0.189.21 ▲7.5155.58 ▲16.40
Dashboard /wp-admin2,239 ▲505.31 ▼0.55107.24 ▼14.8839.24 ▼10.78
Posts /wp-admin/edit.php2,124 ▲352.43 ▲0.3741.60 ▲4.6037.12 ▲2.08
Add New Post /wp-admin/post-new.php1,444 ▼8422.52 ▼0.65531.18 ▼140.9728.65 ▼22.67
Media Library /wp-admin/upload.php1,421 ▲334.63 ▲0.45100.72 ▼0.0337.18 ▼9.18
Snow Time /wp-admin/options-general.php?page=snow_time_settings1,2242.4149.6360.53

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 did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • snowt_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=snow_time_settings
    • > Notice in wp-content/plugins/snow-time/index.php+121
    Undefined index: snowt_character_more
    • > GET request to /wp-admin/options-general.php?page=snow_time_settings
    • > Notice in wp-content/plugins/snow-time/index.php+111
    Undefined index: snowt_color
    • > GET request to /wp-admin/options-general.php?page=snow_time_settings
    • > Notice in wp-content/plugins/snow-time/index.php+96
    Undefined index: exclude_pages

SRP 50% from 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
Please fix the following
  • 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/snow-time/index.php:9

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: snow, snowing, winter, snowpage

snow-time/index.php 92% from 13 tests

"Snow Time" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("snow-time.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin269 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP1299205
JavaScript561538
CSS25026

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.02
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%
Functions18
▷ Named functions18100.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
There are no PNG files in this plugin