71% agile-crm-forms

Code Review | Agile CRM Forms

WordPress plugin Agile CRM Forms scored71%from 54 tests.

About plugin

  • Plugin page: agile-crm-forms
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.3
  • WordPress version: 6.3.1
  • First release: Dec 27, 2017
  • Latest release: Dec 28, 2017
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: shreyanshsurana (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,253 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.01MB] [CPU: ▼18.26ms] Passed 4 tests

Analyzing server-side resources used by Agile CRM Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1431.70 ▼8.85
Dashboard /wp-admin3.29 ▼0.0233.09 ▼21.60
Posts /wp-admin/edit.php3.43 ▲0.0734.88 ▼17.19
Add New Post /wp-admin/post-new.php5.67 ▼0.2272.40 ▼25.41
Media Library /wp-admin/upload.php3.37 ▲0.1435.91 ▲1.20
Web Rules /wp-admin/admin.php?page=agilecrm_forms_webrules3.4135.47
Refer a Friend /wp-admin/admin.php?page=agilecrm_forms_refer3.4334.10
Form Builder /wp-admin/admin.php?page=agilecrm_forms_formbuilder3.4134.90
Landing Pages /wp-admin/admin.php?page=agilecrm_forms_landing3.4132.32
Web Stats /wp-admin/admin.php?page=agilecrm_forms_webstats3.4034.47
Email Campaigns /wp-admin/admin.php?page=agilecrm_forms_email3.4134.39
Settings /wp-admin/admin.php?page=agilecrm_forms_settings3.4034.54
Home /wp-admin/admin.php?page=agilecrm_forms_dashboard3.4034.74

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
forms_agile_webrules
theysaidso_admin_options
can_compress_scripts
forms_agile_webstats
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Agile CRM Forms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲16813.56 ▼0.7917.83 ▲15.9643.86 ▲7.19
Dashboard /wp-admin2,236 ▲595.57 ▲0.0486.45 ▼5.6056.75 ▲8.23
Posts /wp-admin/edit.php2,153 ▲501.98 ▲0.0239.30 ▼2.8735.23 ▼0.48
Add New Post /wp-admin/post-new.php1,720 ▲19422.46 ▼0.67749.72 ▲49.0653.89 ▼10.87
Media Library /wp-admin/upload.php1,444 ▲474.23 ▲0.02106.85 ▲0.9282.26 ▲37.14
Web Rules /wp-admin/admin.php?page=agilecrm_forms_webrules9501.8329.1133.14
Refer a Friend /wp-admin/admin.php?page=agilecrm_forms_refer9611.9924.4033.49
Form Builder /wp-admin/admin.php?page=agilecrm_forms_formbuilder9531.8326.3431.54
Landing Pages /wp-admin/admin.php?page=agilecrm_forms_landing9531.8126.1528.42
Web Stats /wp-admin/admin.php?page=agilecrm_forms_webstats9472.0124.8133.07
Email Campaigns /wp-admin/admin.php?page=agilecrm_forms_email9501.6826.9230.79
Settings /wp-admin/admin.php?page=agilecrm_forms_settings9412.0122.8529.41
Home /wp-admin/admin.php?page=agilecrm_forms_dashboard9472.0126.1930.77

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • forms_agile_webstats
    • forms_agile_webrules
    • widget_recent-posts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_forms_dashboard
    • > Notice in wp-content/plugins/agile-crm-forms/index.php+900
    Undefined index: domain
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_forms_dashboard
    • > Notice in wp-content/plugins/agile-crm-forms/index.php+959
    Undefined index: save
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_forms_dashboard
    • > Notice in wp-content/plugins/agile-crm-forms/index.php+1043
    Undefined variable: errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_forms_dashboard
    • > Notice in wp-content/plugins/agile-crm-forms/index.php+121
    Undefined variable: deprecated
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_forms_dashboard
    • > Notice in wp-content/plugins/agile-crm-forms/index.php+121
    Undefined variable: autoload
    • > GET request to /wp-admin/admin.php?page=agilecrm_forms_dashboard
    • > Notice in wp-content/plugins/agile-crm-forms/index.php+124
    Undefined index: status
    • > GET request to /wp-admin/admin.php?page=agilecrm_forms_dashboard
    • > Notice in wp-content/plugins/agile-crm-forms/index.php+128
    Undefined index: restatus

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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/agile-crm-forms/index.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_forms_email
    • > Console-api (severe) in wp-content/plugins/agile-crm-forms/js/pubnub-3.4.min.js+6:274
    Missing Channel

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add descriptions for screenshots #5, #6, #7, #8, #9 in agile-crm-forms/assets to your readme.txt
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt is a good inspiration

agile-crm-forms/index.php 85% from 13 tests

Analyzing the main PHP file in "Agile CRM Forms" version 1.0
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 183 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("agile-crm-forms.php" instead of "index.php")

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
No dangerous file extensions were detected2,384 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP169531,302
CSS12131759
SVG7287200
JavaScript10132123

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.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 0.97MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.43KB0.60KB0.00%
images/web-stats.png38.69KB41.06KB0.00%
images/webrules.png105.82KB27.82KB▼ 73.71%
images/preview.png0.84KB0.59KB▼ 29.84%
images/agilecrm-cloud-png.png39.22KB19.68KB▼ 49.83%