83% live-summary-for-gravity-forms

Code Review | Live Summary for Gravity Forms

WordPress plugin Live Summary for Gravity Forms scored83%from 54 tests.

About plugin

  • Plugin page: live-summary-for-...
  • Plugin version: 1.2.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Dec 16, 2021
  • Latest release: Jul 9, 2023
  • Number of updates: 150
  • Update frequency: every 3.8 days
  • Top authors: geekontheroad (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

1,000+ active /4,937 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Live Summary for Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.71 ▼0.93
Dashboard /wp-admin3.31 ▼0.0343.23 ▼14.82
Posts /wp-admin/edit.php3.36 ▲0.0046.95 ▼2.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.02 ▼7.46
Media Library /wp-admin/upload.php3.23 ▲0.0032.62 ▼0.90

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Live Summary for Gravity Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.121.65 ▼0.0142.18 ▲2.63
Dashboard /wp-admin2,206 ▲235.86 ▲0.92107.23 ▼1.0739.44 ▼3.87
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0139.43 ▲4.4534.85 ▼1.15
Add New Post /wp-admin/post-new.php1,542 ▲1418.22 ▼0.05617.59 ▼0.4655.30 ▲4.41
Media Library /wp-admin/upload.php1,379 ▼124.19 ▲0.0299.68 ▲1.9542.65 ▼2.92

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/live-summary-for-gravity-forms/retrieve-summary-fields.php:357
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/live-summary-for-gravity-forms/class-gravitysummaryaddon.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/live-summary-for-gravity-forms/gf-summary-addon.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

live-summary-for-gravity-forms/gf-summary-addon.php 85% from 13 tests

Analyzing the main PHP file in "Live Summary for Gravity Forms" version 1.2.8
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("live-summary-for-gravity-forms.php" instead of "gf-summary-addon.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,111 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP3335347574
JavaScript2252148449
CSS2241586
SVG2002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity31.00
▷ Minimum class complexity2.00
▷ Maximum class complexity58.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods1033.33%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin