84% 3d-snow

Code Review | 3D Snow

WordPress plugin 3D Snow scored 84% 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: 6.3.1
  • 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 / 7,506 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by 3D Snow
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.00 ▼0.48
Dashboard /wp-admin3.31 ▲0.0146.66 ▼0.72
Posts /wp-admin/edit.php3.36 ▲0.0143.71 ▼5.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0197.40 ▼7.71
Media Library /wp-admin/upload.php3.23 ▲0.0130.16 ▼3.75

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, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for 3D Snow
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲18914.01 ▼0.289.09 ▲7.3743.23 ▼10.06
Dashboard /wp-admin2,206 ▲185.84 ▼0.05102.18 ▼0.2837.18 ▼1.15
Posts /wp-admin/edit.php2,086 ▼32.04 ▼0.0734.28 ▼8.6135.41 ▼1.70
Add New Post /wp-admin/post-new.php1,547 ▲3318.10 ▲0.55576.21 ▼72.9469.39 ▲15.12
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0194.58 ▼1.7842.32 ▼0.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > 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 | 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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
Please take inspiration from this readme.txt

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

The principal PHP file in "3D Snow" v. 0.3 is loaded by WordPress automatically on each request
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 file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin146 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript37315128
PHP1192918

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

All PNG images should be compressed to minimize bandwidth usage for end users
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%