84% post-update-addon-gravity-forms

Code Review | Post Update Add-On - Gravity Forms

WordPress plugin Post Update Add-On - Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: post-update-addon...
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Sep 2, 2021
  • Latest release: Jan 23, 2022
  • Number of updates: 8
  • Update frequency: every 17.9 days
  • Top authors: alexusblack (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /3,088 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Post Update Add-On - Gravity Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.60 ▼2.04
Dashboard /wp-admin3.31 ▲0.0145.04 ▼5.49
Posts /wp-admin/edit.php3.37 ▲0.0049.66 ▲4.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.66 ▼12.44
Media Library /wp-admin/upload.php3.24 ▲0.0034.50 ▼1.99

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Post Update Add-On - Gravity Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.73 ▲0.071.50 ▼0.0536.94 ▼2.02
Dashboard /wp-admin2,195 ▲185.61 ▲0.0784.24 ▼3.3035.84 ▼3.00
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0238.71 ▲1.6034.11 ▲0.66
Add New Post /wp-admin/post-new.php1,526 ▼023.48 ▲0.40668.95 ▼18.6354.60 ▼11.58
Media Library /wp-admin/upload.php1,394 ▼94.16 ▼0.0495.38 ▼5.8339.87 ▼4.75

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-update-addon-gravity-forms/post-update-addon-gravity-forms.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/post-update-addon-gravity-forms/class-post-update-addon.php:4

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: post change, post edit, edit post, post update, gravity forms...

post-update-addon-gravity-forms/post-update-addon-gravity-forms.php Passed 13 tests

The main file in "Post Update Add-On - Gravity Forms" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
60 characters long description:
Update/Edit a post or a custom post type with Gravity Forms.

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
There were no executable files found in this plugin422 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35025422

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.33
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin