78% formscrm

Code Review | FormsCRM

WordPress plugin FormsCRM scored78%from 54 tests.

About plugin

  • Plugin page: formscrm
  • Plugin version: 3.12.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Jun 26, 2021
  • Latest release: Oct 13, 2023
  • Number of updates: 42
  • Update frequency: every 20.1 days
  • Top authors: closemarketing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /7,101 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.22MB] [CPU: ▲3.54ms] Passed 4 tests

An overview of server-side resources used by FormsCRM
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2248.47 ▲6.16
Dashboard /wp-admin3.53 ▲0.2249.31 ▲1.68
Posts /wp-admin/edit.php3.64 ▲0.2850.39 ▲8.75
Add New Post /wp-admin/post-new.php6.11 ▲0.2295.68 ▲1.84
Media Library /wp-admin/upload.php3.45 ▲0.2235.73 ▲4.49
FormsCRM /wp-admin/options-general.php?page=formscrm3.4233.08

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for FormsCRM
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.18 ▼0.411.74 ▼0.0242.86 ▼0.03
Dashboard /wp-admin2,204 ▲265.68 ▲0.0381.14 ▼20.0337.50 ▼0.95
Posts /wp-admin/edit.php2,106 ▲31.98 ▼0.0438.60 ▲4.0835.45 ▼1.69
Add New Post /wp-admin/post-new.php1,531 ▲523.33 ▼0.37652.00 ▼12.1363.67 ▲3.37
Media Library /wp-admin/upload.php1,406 ▲64.21 ▲0.07102.03 ▲5.7541.85 ▼0.52
FormsCRM /wp-admin/options-general.php?page=formscrm1,4021.9924.3928.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/formscrm/formscrm.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WPForms_Provider' not found in wp-content/plugins/formscrm/includes/formscrm-library/class-wpforms.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/formscrm/includes/formscrm-library/class-gravityforms.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5 in formscrm/assets to your readme.txt
You can take inspiration from this readme.txt

formscrm/formscrm.php 92% from 13 tests

This is the main PHP file of "FormsCRM" version 3.12.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin3,633 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP155541,1743,435
SVG1500116
JavaScript15545
CSS13037

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity45.58
▷ Minimum class complexity2.00
▷ Maximum class complexity130.00
Average method complexity5.41
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods122
▷ Static methods43.28%
▷ Public methods9678.69%
▷ Protected methods00.00%
▷ Private methods2621.31%
Functions22
▷ Named functions1881.82%
▷ Anonymous functions418.18%
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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/assets/addon-icon-wpforms.png11.46KB12.10KB0.00%