10% gravity-forms-post-updates

Code Review | Gravity Forms: Post Updates

WordPress plugin Gravity Forms: Post Updates scored10%from 54 tests.

About plugin

  • Plugin page: gravity-forms-pos...
  • Plugin version: 1.2.23
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-4.2.2
  • WordPress version: 6.3.1
  • First release: May 17, 2014
  • Latest release: Jul 2, 2015
  • Number of updates: 49
  • Update frequency: every 10.1 days
  • Top authors: jcow (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

600+ active /13,489 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Compile error in wp-content/plugins/gravity-forms-post-updates/gravityforms-update-post.php+1021
    Cannot use lexical variable $value as a parameter name

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.54ms] Passed 4 tests

An overview of server-side resources used by Gravity Forms: Post Updates
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.80 ▼6.91
Dashboard /wp-admin3.31 ▲0.0048.00 ▲2.95
Posts /wp-admin/edit.php3.36 ▲0.0047.26 ▼2.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.73 ▼15.51
Media Library /wp-admin/upload.php3.23 ▲0.0038.30 ▲4.91

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Gravity Forms: Post Updates: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.67 ▼0.721.62 ▼0.1838.28 ▼5.90
Dashboard /wp-admin2,206 ▲214.81 ▼0.10113.52 ▲12.7042.81 ▼0.07
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0135.21 ▼6.3129.83 ▼6.87
Add New Post /wp-admin/post-new.php1,533 ▼323.23 ▲0.03664.33 ▲55.7062.59 ▲12.28
Media Library /wp-admin/upload.php1,382 ▲34.27 ▲0.09104.49 ▲5.6842.73 ▲1.67

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Cannot use lexical variable $value as a parameter name in wp-content/plugins/gravity-forms-post-updates/gravityforms-update-post.php on line 1021

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === gravity-forms-post-updates === )
Please take inspiration from this readme.txt

gravity-forms-post-updates/gravityforms-update-post.php 85% from 13 tests

The entry point to "Gravity Forms: Post Updates" version 1.2.23 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("gravity-forms-post-updates.php" instead of "gravityforms-update-post.php")

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
Everything looks great! No dangerous files found in this plugin850 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1150386799
JavaScript19251

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity175.00
▷ Minimum class complexity175.00
▷ Maximum class complexity175.00
Average method complexity5.41
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods35
▷ Static methods35100.00%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin