84% integrate-sharpspring-and-gravity-forms

Code Review | Integrate SharpSpring and Gravity Forms

WordPress plugin Integrate SharpSpring and Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: integrate-sharpsp...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2020
  • Latest release: Dec 3, 2022
  • Number of updates: 18
  • Update frequency: every 43.7 days
  • Top authors: Oyova (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,395 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Integrate SharpSpring and Gravity Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.57 ▲2.13
Dashboard /wp-admin3.31 ▲0.0150.71 ▼7.20
Posts /wp-admin/edit.php3.37 ▲0.0149.57 ▼2.81
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.02 ▼24.58
Media Library /wp-admin/upload.php3.24 ▲0.0039.59 ▲5.63

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Integrate SharpSpring and Gravity Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.76 ▲0.351.89 ▲0.1449.15 ▲6.20
Dashboard /wp-admin2,183 ▲95.61 ▲0.0889.80 ▼9.7145.49 ▼1.72
Posts /wp-admin/edit.php2,103 ▼02.03 ▲0.0739.70 ▼0.5035.49 ▼0.16
Add New Post /wp-admin/post-new.php1,526 ▼023.21 ▲0.13629.65 ▼74.9969.53 ▲17.72
Media Library /wp-admin/upload.php1,391 ▼34.19 ▼0.0396.96 ▼9.2942.73 ▼4.37

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/integrate-sharpspring-and-gravity-forms/class-integrate-sharpspring-and-gravity-forms.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/integrate-sharpspring-and-gravity-forms/integrate-sharpspring-and-gravity-forms.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: gravity forms, crm, sharpspring

integrate-sharpspring-and-gravity-forms/integrate-sharpspring-and-gravity-forms.php Passed 13 tests

The primary PHP file in "Integrate SharpSpring and Gravity Forms" version 1.0.4 is used by WordPress to initiate all plugin functionality
122 characters long description:
Integrates Gravity Forms with SharpSpring, allowing form submissions to be automatically sent to your SharpSpring account.

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 plugin387 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25981375
JavaScript1117
CSS1005

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.17
Average class complexity10.00
▷ Minimum class complexity2.00
▷ Maximum class complexity18.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin