10% gozen-forms

Code Review | GoZen Forms

WordPress plugin GoZen Forms scored10%from 54 tests.

About plugin

  • Plugin page: gozen-forms
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.1-6.0
  • WordPress version: 6.3.1
  • First release: Jun 3, 2022
  • Latest release: Feb 4, 2023
  • Number of updates: 35
  • Update frequency: every 7.1 days
  • Top authors: optinlyhq (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active /1,740 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/gozen-forms/page/gzform_embedscript.php+24
    Invalid argument supplied for foreach()

Server metrics [RAM: ▲0.06MB] [CPU: ▲2.65ms] Passed 4 tests

Analyzing server-side resources used by GoZen Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.67 ▼3.90
Dashboard /wp-admin3.36 ▲0.0655.18 ▲6.02
Posts /wp-admin/edit.php3.47 ▲0.1251.14 ▲4.50
Add New Post /wp-admin/post-new.php5.95 ▲0.06105.77 ▲13.02
Media Library /wp-admin/upload.php3.28 ▲0.0638.52 ▲3.97

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: 2 new tables, 6 new options
New tables
wp_gozen_embed_forms
wp_gozen_forms_users
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by GoZen Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.26 ▼1.344.40 ▲2.2640.70 ▼6.04
Dashboard /wp-admin2,242 ▲544.86 ▼0.03113.87 ▼2.1539.88 ▼8.37
Posts /wp-admin/edit.php2,122 ▲541.99 ▼0.0335.54 ▼1.3535.00 ▲0.76
Add New Post /wp-admin/post-new.php1,547 ▲3323.41 ▲5.99604.54 ▼38.5149.47 ▲4.07
Media Library /wp-admin/upload.php1,419 ▲374.23 ▲0.07100.16 ▼0.0642.57 ▲0.59

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
  • 22× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/gozen-forms/page/gzform_embedscript.php:22
    • > PHP Fatal error
      require_once(): Failed opening required 'GOZENFORMS_PATHpage/Gzformslogin.php' (include_path='.:/usr/share/php') in wp-content/plugins/gozen-forms/Api/gzforms_api.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to a member function prepare() on null in wp-content/plugins/gozen-forms/Api/table/gzforms_user_table.php:11
    • > PHP Warning
      require_once(GOZENFORMS_PATHpage/Gzformslogin.php): failed to open stream: No such file or directory in wp-content/plugins/gozen-forms/Api/gzforms_api.php on line 4
    • > PHP Warning
      include(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gozen-forms/constvar.php on line 4
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/gozen-forms/Api/gzforms_table.php on line 9
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/gozen-forms/Api/table/gzforms_form_table.php on line 9
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/gozen-forms/Api/table/gzforms_user_table.php on line 9
    • > PHP Warning
      require_once(GOZENFORMS_PATHApi/gzapisecret.php): failed to open stream: No such file or directory in wp-content/plugins/gozen-forms/constvar.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'GOZENFORMS_PATHApi/gzapisecret.php' (include_path='.:/usr/share/php') in wp-content/plugins/gozen-forms/constvar.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% 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
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

gozen-forms/gzForms.php 69% from 13 tests

This is the main PHP file of "GoZen Forms" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "4.6.1")
  • Domain Path: The domain path folder was not found ("/languages/")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gozen-forms.php" instead of "gzForms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,091 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS19830865
JavaScript21186651
PHP14219221503
Markdown163072

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants16
▷ Global constants16100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
page/images/Logo.png32.64KB13.75KB▼ 57.87%