94% 3d-snow

Code Review | 3D Snow

WordPress plugin 3D Snow scored 94% from 54 tests.

About plugin

  • Plugin page: 3d-snow
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0.1
  • WordPress version: 5.9.2
  • First release: Dec 15, 2013
  • Latest release: Dec 18, 2014
  • Number of updates: 8
  • Update frequency: every 46.4 days
  • Top authors: creavince (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 5,232 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by 3D Snow
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0254.98 ▼1.45
Dashboard /wp-admin3.42 ▲0.0137.06 ▲0.03
Posts /wp-admin/edit.php3.65 ▲0.0145.29 ▲3.86
Add New Post /wp-admin/post-new.php6.89 ▼0.0997.71 ▼1,182.85
Media Library /wp-admin/upload.php3.30 ▲0.0032.41 ▲4.16

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

3D Snow: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,967 ▲21316.52 ▲0.5011.81 ▲5.182.53 ▼0.57
Dashboard /wp-admin2,895 ▲376.04 ▼0.12115.40 ▼20.03156.80 ▼8.29
Posts /wp-admin/edit.php2,694 ▲63.23 ▼0.0164.47 ▼2.46140.93 ▼4.73
Add New Post /wp-admin/post-new.php1,827 ▲11021.25 ▼0.19467.32 ▲16.59154.39 ▼5.51
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.01145.68 ▲1.02190.46 ▼1.25

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/3d-snow/3d-snow.php:56

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Contributors: The plugin contributors field is missing
The official readme.txt might help

3d-snow/3d-snow.php Passed 13 tests

The main PHP script in "3D Snow" version 0.3 is automatically included on every request by WordPress
86 characters long description:
An awesome 3D snow effect for your website! Just install and activate to make it snow.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected146 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript37315128
PHP1192918

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems 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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/ParticleSmoke.png3.12KB0.55KB▼ 82.51%