84% zola-crm-add-on-for-gravity-forms

Code Review | Zola CRM Add-on for Gravity Forms

WordPress plugin Zola CRM Add-on for Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: zola-crm-add-on-f...
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2020
  • Latest release: Sep 2, 2022
  • Number of updates: 25
  • Update frequency: every 37.4 days
  • Top authors: rshahk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,613 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

This is a short check of server-side resources used by Zola CRM Add-on for Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.71 ▼3.42
Dashboard /wp-admin3.31 ▲0.0149.14 ▼3.35
Posts /wp-admin/edit.php3.36 ▲0.0050.88 ▼2.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.44 ▼8.76
Media Library /wp-admin/upload.php3.23 ▲0.0041.24 ▲1.78

Server storage [IO: ▲0.02MB] [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
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Zola CRM Add-on for Gravity Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲16013.93 ▼0.6911.87 ▲9.6542.72 ▲1.43
Dashboard /wp-admin2,206 ▲155.91 ▲1.01115.65 ▲4.9540.18 ▼0.51
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0139.78 ▼0.0137.50 ▲2.66
Add New Post /wp-admin/post-new.php1,519 ▼2323.08 ▲4.80627.67 ▲20.3952.22 ▼2.26
Media Library /wp-admin/upload.php1,391 ▲34.21 ▼0.01102.62 ▼8.8048.51 ▲3.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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 server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zola-crm-add-on-for-gravity-forms/zolaleads.php:59
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/zola-crm-add-on-for-gravity-forms/class-zola-suite-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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: zolasuite, zolacrm, gravity forms, zola suite, zola crm

zola-crm-add-on-for-gravity-forms/zolaleads.php 92% from 13 tests

The entry point to "Zola CRM Add-on for Gravity Forms" version 1.3.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("zola-crm-add-on-for-gravity-forms.php" instead of "zolaleads.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected348 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP298125269
JavaScript1241579

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity18.50
▷ Minimum class complexity2.00
▷ Maximum class complexity35.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods212.50%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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 were not PNG files found in your plugin