84% simply-snow

Code Review | Simply Snow

WordPress plugin Simply Snow scored84%from 54 tests.

About plugin

  • Plugin page: simply-snow
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 26, 2013
  • Latest release: Nov 26, 2013
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: Kopepasah (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /11,165 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Simply Snow
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.20 ▼1.52
Dashboard /wp-admin3.31 ▼0.0343.16 ▼17.15
Posts /wp-admin/edit.php3.36 ▲0.0044.23 ▼4.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.92 ▼16.35
Media Library /wp-admin/upload.php3.23 ▲0.0035.00 ▲0.51

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simply Snow
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,205 ▲45913.23 ▼1.1216.93 ▲15.3266.83 ▲19.91
Dashboard /wp-admin2,198 ▲185.67 ▲0.0289.21 ▲4.2342.78 ▲2.64
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0737.95 ▼0.5736.08 ▲2.03
Add New Post /wp-admin/post-new.php1,526 ▼223.27 ▲0.25592.62 ▼27.6644.18 ▼15.10
Media Library /wp-admin/upload.php1,397 ▼34.19 ▲0.0298.22 ▲4.1141.72 ▲2.42

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

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 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/simply-snow/simply-snow.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (The snowing affect.)
You can look at the official readme.txt

simply-snow/simply-snow.php Passed 13 tests

"Simply Snow" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
69 characters long description:
A plugin that, when activated, creates a snowing effect on your site.

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
Good job! No executable or dangerous file extensions detected25 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21919
PHP13296

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for 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.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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 2.94MB with 1.86MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png3,013.73KB1,112.45KB▼ 63.09%