89% notification-attachments-for-gravity-forms

Code Review | Notification Attachments for Gravity Forms

WordPress plugin Notification Attachments for Gravity Forms scored89%from 54 tests.

About plugin

  • Plugin page: notification-atta...
  • Plugin version: 0.5.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-6.3
  • WordPress version: 6.3.1
  • First release: Dec 11, 2020
  • Latest release: Aug 13, 2023
  • Number of updates: 22
  • Update frequency: every 44.3 days
  • Top authors: kgmservizi (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /8,350 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Notification Attachments for Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.77 ▲0.23
Dashboard /wp-admin3.33 ▲0.0246.27 ▼1.34
Posts /wp-admin/edit.php3.38 ▲0.0246.21 ▼5.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.61 ▼22.45
Media Library /wp-admin/upload.php3.25 ▲0.0236.98 ▲1.51

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Notification Attachments for Gravity Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.18 ▼1.401.71 ▲0.1042.88 ▲4.97
Dashboard /wp-admin2,210 ▲255.85 ▼0.0599.37 ▼18.1139.20 ▼2.38
Posts /wp-admin/edit.php2,092 ▼02.02 ▲0.0534.05 ▼7.6433.79 ▼2.14
Add New Post /wp-admin/post-new.php1,546 ▲2718.77 ▼4.30599.38 ▼68.0766.83 ▲10.74
Media Library /wp-admin/upload.php1,392 ▲74.22 ▲0.0594.84 ▼7.4939.53 ▼3.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Example.) image missing
The official readme.txt is a good inspiration

notification-attachments-for-gravity-forms/gf-kgm-notification-attachment.php 85% from 13 tests

The principal PHP file in "Notification Attachments for Gravity Forms" v. 0.5.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("notification-attachments-for-gravity-forms.php" instead of "gf-kgm-notification-attachment.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin200 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP93174160
JavaScript16840

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin