84% gravity-forms-extended-merge-tags

Code Review | Gravity Forms Extended Merge Tags

WordPress plugin Gravity Forms Extended Merge Tags scored84%from 54 tests.

About plugin

  • Plugin page: gravity-forms-ext...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.7
  • WordPress version: 6.3.1
  • First release: Oct 3, 2014
  • Latest release: Mar 4, 2021
  • Number of updates: 5
  • Update frequency: every 468.8 days
  • Top authors: ericjuden (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,574 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Gravity Forms Extended Merge Tags
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0244.82 ▼0.45
Dashboard /wp-admin3.33 ▲0.0250.18 ▼11.95
Posts /wp-admin/edit.php3.38 ▲0.0248.37 ▼3.16
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.15 ▼9.35
Media Library /wp-admin/upload.php3.25 ▲0.0239.27 ▼2.42

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Gravity Forms Extended Merge Tags
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.021.90 ▲0.2044.03 ▲2.22
Dashboard /wp-admin2,198 ▲215.64 ▼0.0793.43 ▲1.0940.01 ▼1.30
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0635.99 ▼1.6536.60 ▼1.63
Add New Post /wp-admin/post-new.php1,531 ▼423.06 ▲4.75663.29 ▼37.2362.10 ▼21.47
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.06104.46 ▼14.1043.08 ▼7.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-extended-merge-tags/gravityforms-extended-merge-tags.php:13

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Showing the merge tags dropdown)
Please take inspiration from this readme.txt

gravity-forms-extended-merge-tags/gravityforms-extended-merge-tags.php 92% from 13 tests

The main PHP script in "Gravity Forms Extended Merge Tags" version 1.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("gravity-forms-extended-merge-tags.php" instead of "gravityforms-extended-merge-tags.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin130 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11810127
Markdown1103

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png17.28KB8.76KB▼ 49.29%