88% formscrm

Code Review | FormsCRM

WordPress plugin FormsCRM scored 88% from 54 tests.

About plugin

  • Plugin page: formscrm
  • Plugin version: 3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.9.2
  • First release: Jun 26, 2021
  • Latest release: Feb 24, 2022
  • Number of updates: 19
  • Update frequency: every 13.0 days
  • Top authors: closemarketing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 793 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼286.88ms] Passed 4 tests

Analyzing server-side resources used by FormsCRM
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1154.75 ▼4.20
Dashboard /wp-admin3.46 ▲0.0540.12 ▲6.93
Posts /wp-admin/edit.php3.69 ▲0.0539.98 ▲1.26
Add New Post /wp-admin/post-new.php6.93 ▼0.0492.00 ▼1,149.58
Media Library /wp-admin/upload.php3.34 ▲0.0531.07 ▲5.01

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by FormsCRM
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,801 ▲4715.22 ▼0.415.60 ▼0.602.56 ▲0.07
Dashboard /wp-admin2,898 ▲446.08 ▼0.12117.65 ▼15.48153.15 ▼39.93
Posts /wp-admin/edit.php2,708 ▲203.25 ▲0.0063.49 ▼1.30141.27 ▼2.89
Add New Post /wp-admin/post-new.php1,711 ▼4122.39 ▲0.57427.51 ▼29.31172.52 ▲11.54
Media Library /wp-admin/upload.php1,718 ▲205.51 ▼0.02170.03 ▲15.70191.60 ▲3.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/formscrm/formscrm.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/formscrm/includes/class-gravityforms.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in formscrm/assets to your readme.txt
You can look at the official readme.txt

formscrm/formscrm.php 92% from 13 tests

"FormsCRM" version 3.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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 plugin1,472 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP92094431,472

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity25.29
▷ Minimum class complexity2.00
▷ Maximum class complexity42.00
Average method complexity4.54
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods48
▷ Static methods48.33%
▷ Public methods3572.92%
▷ Protected methods00.00%
▷ Private methods1327.08%
Functions16
▷ Named functions16100.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
No PNG files were detected