93% falling-things

Code Review | Falling Things

WordPress plugin Falling Things scored 93% from 54 tests.

About plugin

  • Plugin page: falling-things
  • Plugin version: 1.07
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 5.8.1
  • First release: Mar 25, 2016
  • Latest release: Nov 8, 2021
  • Number of updates: 23
  • Update frequency: every 89.3 days
  • Top authors: manu225 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 9,796 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼132.53ms] Passed 4 tests

A check of server-side resources used by Falling Things
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1543.30 ▲23.83
Dashboard /wp-admin3.11 ▲0.0547.50 ▲11.29
Posts /wp-admin/edit.php3.22 ▲0.1148.81 ▼5.28
Add New Post /wp-admin/post-new.php5.45 ▲0.0194.43 ▼538.37
Media Library /wp-admin/upload.php3.03 ▲0.0333.82 ▲2.26
Falling things settings /wp-admin/options-general.php?page=falling_things_settings3.0434.65

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: 1 new table, 4 new options
New tables
wp_failling_images
New WordPress options
falling_items_quantity
falling_items_speed
falling_items_display_on
falling_items_move_lr

Browser metrics Passed 4 tests

An overview of browser requirements for Falling Things
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,028 ▲39117.91 ▲2.4415.35 ▲5.2745.39 ▼4.71
Dashboard /wp-admin3,158 ▲2247.99 ▲2.02179.57 ▲17.85106.62 ▼10.17
Posts /wp-admin/edit.php2,968 ▲2294.25 ▲1.5389.92 ▲15.6483.96 ▼6.92
Add New Post /wp-admin/post-new.php1,620 ▼6321.40 ▲3.09286.37 ▼119.87103.22 ▼5.36
Media Library /wp-admin/upload.php1,817 ▼24.79 ▼0.23123.36 ▼57.17125.70 ▲13.61
Falling things settings /wp-admin/options-general.php?page=falling_things_settings1,3993.3570.2899.07

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
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/falling-things/falling_things.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/falling-things/views/settings.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% 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
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

falling-things/falling_things.php 77% from 13 tests

The primary PHP file in "Falling Things" version 1.07 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: Please prefix the domain path with a forward slash character ("/")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("")
  • Main file name: Name the main plugin file the same as the plugin slug ("falling-things.php" instead of "falling_things.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin250 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP25829189
JavaScript114252
CSS2009

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions8
▷ Named functions8100.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
5 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/leaf.png1.52KB1.35KB▼ 10.93%
images/snowflake.png1.21KB1.14KB▼ 5.65%
images/save.png0.54KB0.39KB▼ 28.11%
images/wordpress_falling_things_pro_settings.png37.21KB13.05KB▼ 64.94%
images/flower.png2.27KB1.73KB▼ 24.04%