89% retrigger-notifications-gravity-forms

Code Review | Retrigger Notifications Gravity Forms

WordPress plugin Retrigger Notifications Gravity Forms scored89%from 54 tests.

About plugin

  • Plugin page: retrigger-notific...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 7, 2020
  • Latest release: Sep 16, 2023
  • Number of updates: 29
  • Update frequency: every 35.1 days
  • Top authors: wpspin (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /2,670 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.59MB] [CPU: ▼14.27ms] Passed 4 tests

Server-side resources used by Retrigger Notifications Gravity Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1047.37 ▼0.37
Dashboard /wp-admin3.39 ▲0.0946.78 ▼3.87
Posts /wp-admin/edit.php3.51 ▲0.1558.58 ▲2.18
Add New Post /wp-admin/post-new.php3.27 ▼2.6244.72 ▼55.03
Media Library /wp-admin/upload.php3.32 ▲0.0941.58 ▲3.50

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Retrigger Notifications Gravity Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.17 ▼0.231.85 ▼0.0237.70 ▼4.59
Dashboard /wp-admin2,198 ▲245.65 ▲0.0396.34 ▲1.2141.14 ▼2.79
Posts /wp-admin/edit.php2,106 ▲32.00 ▲0.0643.51 ▼1.1837.73 ▲0.96
Add New Post /wp-admin/post-new.php1,531 ▲323.33 ▲0.22699.57 ▲83.9164.11 ▲15.88
Media Library /wp-admin/upload.php1,403 ▲34.15 ▼0.10117.87 ▲5.8849.99 ▼1.97

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

retrigger-notifications-gravity-forms/retrigger-notifications-gravityforms.php 85% from 13 tests

"Retrigger Notifications Gravity Forms" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("retrigger-notifications-gravity-forms.php" instead of "retrigger-notifications-gravityforms.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected407 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP988228407

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity9.83
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods29
▷ Static methods724.14%
▷ Public methods2689.66%
▷ Protected methods00.00%
▷ Private methods310.34%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin