83% let-it-rain

Code Review | Let it Rain

WordPress plugin Let it Rain scored83%from 54 tests.

About plugin

  • Plugin page: let-it-rain
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Dec 24, 2019
  • Latest release: Dec 24, 2019
  • Number of updates: 9
  • Update frequency: every 0.2 days
  • Top authors: monarchofsouls (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /716 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Let it Rain
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.32 ▼4.45
Dashboard /wp-admin3.33 ▲0.0347.37 ▼3.07
Posts /wp-admin/edit.php3.38 ▲0.0249.88 ▼2.58
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.30 ▼13.31
Media Library /wp-admin/upload.php3.25 ▲0.0233.39 ▼1.14

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Let it Rain
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,965 ▲21913.34 ▼1.061.62 ▼0.1645.57 ▲0.45
Dashboard /wp-admin2,222 ▲344.85 ▼1.04109.47 ▼4.2438.35 ▼6.70
Posts /wp-admin/edit.php2,105 ▲192.06 ▲0.0439.56 ▲2.4635.33 ▼0.08
Add New Post /wp-admin/post-new.php1,556 ▲3218.20 ▼4.93624.84 ▲9.1759.58 ▲7.89
Media Library /wp-admin/upload.php1,401 ▲134.17 ▼0.0594.31 ▼7.9743.56 ▲0.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/let-it-rain/let_it_rain.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% 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:
  • Donate link: Invalid URI found ("paypal.me/DennisHartenfels")
You can look at the official readme.txt

let-it-rain/let_it_rain.php 85% from 13 tests

Analyzing the main PHP file in "Let it Rain" version 1.1
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: The principal plugin file should be the same as the plugin slug ("let-it-rain.php" instead of "let_it_rain.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
Success! There were no dangerous files found in this plugin5,983 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1345,890
PHP1201693

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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 Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin