84% snow-in-my-web

Code Review | Snow in My Web

WordPress plugin Snow in My Web scored84%from 54 tests.

About plugin

  • Plugin page: snow-in-my-web
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Jan 25, 2022
  • Latest release: Jul 25, 2022
  • Number of updates: 11
  • Update frequency: every 19.6 days
  • Top authors: racmanuel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,664 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.86ms] Passed 4 tests

Analyzing server-side resources used by Snow in My Web
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0149.40 ▲8.35
Dashboard /wp-admin3.31 ▼0.0346.71 ▼16.57
Posts /wp-admin/edit.php3.36 ▲0.0149.15 ▲6.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.84 ▼24.08
Media Library /wp-admin/upload.php3.23 ▲0.0034.96 ▲2.67

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Snow in My Web
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲3214.35 ▼0.402.35 ▲0.3142.39 ▼1.94
Dashboard /wp-admin2,206 ▲155.83 ▲0.9699.84 ▼4.6439.36 ▼1.64
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0536.07 ▼4.4633.70 ▼1.55
Add New Post /wp-admin/post-new.php1,533 ▼023.07 ▼0.31663.92 ▲43.5556.07 ▲0.74
Media Library /wp-admin/upload.php1,385 ▼64.23 ▲0.0292.15 ▼2.2940.69 ▼1.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snow-in-my-web/snow-in-my-web.php:17

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 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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Image of the Effect Snow) image missing
The official readme.txt might help

snow-in-my-web/snow-in-my-web.php Passed 13 tests

The main PHP file in "Snow in My Web" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
45 characters long description:
Get a amazing effect of Snow in all your Web.

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
Everything looks great! No dangerous files found in this plugin44 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS14027
PHP152017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/s2.png4.75KB2.65KB▼ 44.15%
public/images/s1.png2.70KB0.90KB▼ 66.51%
public/images/s3.png3.04KB1.68KB▼ 44.75%