10% gravity-forms-periodic-notification-e-mails-by-weptile

Code Review | Gravity Forms Periodic Notification E-Mails

WordPress plugin Gravity Forms Periodic Notification E-Mails scored10%from 54 tests.

About plugin

  • Plugin page: gravity-forms-per...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9.1
  • WordPress version: 6.3.1
  • First release: Aug 1, 2013
  • Latest release: May 16, 2014
  • Number of updates: 17
  • Update frequency: every 16.9 days
  • Top authors: weptile (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /2,466 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/gravity-forms-periodic-notification-e-mails-by-weptile/weptile-periodic-gravity-form-mails.php+509
    syntax error, unexpected end of file

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

Server-side resources used by Gravity Forms Periodic Notification E-Mails
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.35 ▼5.91
Dashboard /wp-admin3.31 ▼0.0452.95 ▼21.50
Posts /wp-admin/edit.php3.36 ▲0.0051.70 ▼0.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.24 ▼15.00
Media Library /wp-admin/upload.php3.23 ▲0.0034.64 ▼3.91

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gravity Forms Periodic Notification E-Mails
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.44 ▲0.152.56 ▲0.7449.98 ▲6.34
Dashboard /wp-admin2,195 ▲155.64 ▲0.0693.37 ▼0.1741.20 ▼2.16
Posts /wp-admin/edit.php2,100 ▼31.99 ▲0.0333.91 ▼1.5735.82 ▼0.52
Add New Post /wp-admin/post-new.php1,409 ▼3617.98 ▲1.28641.58 ▲114.9454.66 ▲3.16
Media Library /wp-admin/upload.php1,394 ▼34.14 ▼0.0695.09 ▼5.3440.16 ▼11.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/gravity-forms-periodic-notification-e-mails-by-weptile/weptile-periodic-gravity-form-mails.php on line 509

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Screenshot 1), #2 (Screenshot 2), #3 (Screenshot 3), #4 (Screenshot 4), #5 (Screenshot 5)
The official readme.txt is a good inspiration

gravity-forms-periodic-notification-e-mails-by-weptile/weptile-periodic-gravity-form-mails.php 85% from 13 tests

The main PHP file in "Gravity Forms Periodic Notification E-Mails" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gravity-forms-periodic-notification-e-mails-by-weptile.php" instead of "weptile-periodic-gravity-form-mails.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected341 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP110266341

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin