83% kitchen-co-gravity-forms-add-on

Code Review | Kitchen.co - Gravity Forms Add-on

WordPress plugin Kitchen.co - Gravity Forms Add-on scored 83% from 54 tests.

About plugin

  • Plugin page: kitchen-co-gravit...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.3
  • WordPress version: 6.3.1
  • First release: Jan 12, 2022
  • Latest release: Jan 17, 2022
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: kitchenco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 352 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.00MB] [CPU: ▼19.80ms] Passed 4 tests

Server-side resources used by Kitchen.co - Gravity Forms Add-on
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.48 ▼5.40
Dashboard /wp-admin3.31 ▲0.0053.78 ▲2.44
Posts /wp-admin/edit.php3.36 ▲0.0055.94 ▼1.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.78 ▼66.85
Media Library /wp-admin/upload.php3.23 ▲0.0037.57 ▼5.31

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Kitchen.co - Gravity Forms Add-on
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼2514.77 ▲1.481.69 ▼0.1239.66 ▼5.55
Dashboard /wp-admin2,206 ▲65.86 ▲0.07110.02 ▲4.8242.81 ▲4.55
Posts /wp-admin/edit.php2,092 ▼02.00 ▼0.0640.69 ▲0.8837.18 ▲2.67
Add New Post /wp-admin/post-new.php1,514 ▼1917.70 ▼5.09781.02 ▲61.3361.26 ▲2.44
Media Library /wp-admin/upload.php1,379 ▼94.23 ▼0.0999.72 ▼15.3742.00 ▼8.25

Uninstaller [IO: ✅] [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 were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kitchen-co-gravity-forms-add-on/kitchenco-gravity-forms-addon.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: gravity forms, project, kitchen, project management

kitchen-co-gravity-forms-add-on/kitchenco-gravity-forms-addon.php 77% from 13 tests

The main PHP file in "Kitchen.co - Gravity Forms Add-on" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 156 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kitchen-co-gravity-forms-add-on.php" instead of "kitchenco-gravity-forms-addon.php")

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
Everything looks great! No dangerous files found in this plugin281 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3112203281

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity10.33
▷ Minimum class complexity2.00
▷ Maximum class complexity19.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin