84% falling-cherry-flower

Code Review | Falling Cherry Flowers

WordPress plugin Falling Cherry Flowers scored84%from 54 tests.

About plugin

  • Plugin page: falling-cherry-fl...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.1-5.6
  • WordPress version: 6.3.1
  • First release: Sep 8, 2017
  • Latest release: Feb 2, 2021
  • Number of updates: 7
  • Update frequency: every 233.4 days
  • Top authors: dogrow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,455 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Falling Cherry Flowers
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.20 ▲0.20
Dashboard /wp-admin3.31 ▲0.0144.84 ▼6.74
Posts /wp-admin/edit.php3.36 ▲0.0146.78 ▲2.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.74 ▼16.42
Media Library /wp-admin/upload.php3.23 ▲0.0133.56 ▼2.64

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Falling Cherry Flowers
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲19414.09 ▼0.3020.78 ▲18.8435.38 ▼9.04
Dashboard /wp-admin2,206 ▲155.88 ▲0.9896.33 ▼21.2239.22 ▼9.65
Posts /wp-admin/edit.php2,089 ▲32.02 ▼0.0439.45 ▲3.1335.72 ▲2.13
Add New Post /wp-admin/post-new.php1,533 ▲1923.41 ▲5.77613.95 ▼69.1949.27 ▼0.08
Media Library /wp-admin/upload.php1,385 ▼04.22 ▲0.0196.50 ▼2.6242.67 ▼0.38

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 add_shortcode() in wp-content/plugins/falling-cherry-flower/ytmr_falling_flower.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

falling-cherry-flower/ytmr_falling_flower.php 92% from 13 tests

The main PHP script in "Falling Cherry Flowers" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("falling-cherry-flower.php" instead of "ytmr_falling_flower.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin86 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP123279
JavaScript23117

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
20 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/autumnleaf/5.png2.12KB1.19KB▼ 43.99%
img/autumnleaf/1.png2.11KB1.16KB▼ 44.94%
img/cherryflower/6.png1.89KB0.92KB▼ 51.27%
img/cherryflower/0.png1.76KB0.81KB▼ 53.94%
img/cherryflower/4.png1.75KB0.83KB▼ 52.54%