71% agile-crm-lead-management

Code Review | Agile CRM

WordPress plugin Agile CRM scored 71% from 54 tests.

About plugin

  • Plugin page: agile-crm-lead-ma...
  • Plugin version: v1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.4
  • WordPress version: 5.8.1
  • First release: Dec 14, 2016
  • Latest release: Nov 19, 2018
  • Number of updates: 29
  • Update frequency: every 24.3 days
  • Top authors: shreyanshsurana (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active / 30,714 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼154.59ms] Passed 4 tests

An overview of server-side resources used by Agile CRM
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.0829.66 ▼5.57
Dashboard /wp-admin3.11 ▲0.0530.68 ▼17.90
Posts /wp-admin/edit.php3.17 ▲0.0639.51 ▼5.91
Add New Post /wp-admin/post-new.php5.18 ▼0.2578.85 ▼587.32
Media Library /wp-admin/upload.php3.14 ▲0.1330.92 ▼7.21
Landing Pages /wp-admin/admin.php?page=agilecrm_landing3.1634.57
Form Builder /wp-admin/admin.php?page=agilecrm_formbuilder3.1634.73
Refer a Friend /wp-admin/admin.php?page=agilecrm_refer3.1832.30
Web Rules /wp-admin/admin.php?page=agilecrm_webrules3.1632.04
Email Campaigns /wp-admin/admin.php?page=agilecrm_email3.1633.99
Home /wp-admin/admin.php?page=agilecrm_dashboard3.1631.78
Settings /wp-admin/admin.php?page=agilecrm_settings3.1632.60
Web Stats /wp-admin/admin.php?page=agilecrm_webstats3.1628.91

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 2 new options
New WordPress options
agile_webstats
agile_webrules

Browser metrics Passed 4 tests

Agile CRM: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,905 ▲33316.38 ▲0.9126.11 ▲17.9049.71 ▼6.16
Dashboard /wp-admin3,022 ▲916.14 ▲0.21139.07 ▼17.06139.42 ▲24.98
Posts /wp-admin/edit.php2,798 ▲622.71 ▲0.0372.81 ▲0.85106.11 ▲17.70
Add New Post /wp-admin/post-new.php1,656 ▼2721.55 ▲2.79301.57 ▼96.28108.91 ▼7.44
Media Library /wp-admin/upload.php1,810 ▲35.04 ▲0.03138.62 ▼31.17163.66 ▲31.34
Landing Pages /wp-admin/admin.php?page=agilecrm_landing1,2542.3461.5979.12
Form Builder /wp-admin/admin.php?page=agilecrm_formbuilder1,2362.3665.3885.62
Refer a Friend /wp-admin/admin.php?page=agilecrm_refer1,2562.3258.5793.59
Web Rules /wp-admin/admin.php?page=agilecrm_webrules1,2512.3658.1185.43
Email Campaigns /wp-admin/admin.php?page=agilecrm_email1,2562.3462.7586.53
Home /wp-admin/admin.php?page=agilecrm_dashboard1,2452.3355.9884.34
Settings /wp-admin/admin.php?page=agilecrm_settings1,2562.3458.4687.13
Web Stats /wp-admin/admin.php?page=agilecrm_webstats1,2332.3360.5585.53

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
Please fix the following items
  • The uninstall procedure has failed, leaving 2 options in the database
    • agile_webrules
    • agile_webstats

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_webstats
    • > Notice in wp-content/plugins/agile-crm-lead-management/index.php+962
    Undefined variable: errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_dashboard
    • > Notice in wp-content/plugins/agile-crm-lead-management/index.php+109
    Undefined variable: deprecated
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_dashboard
    • > Notice in wp-content/plugins/agile-crm-lead-management/index.php+109
    Undefined variable: autoload
    • > GET request to /wp-admin/admin.php?page=agilecrm_dashboard
    • > Notice in wp-content/plugins/agile-crm-lead-management/index.php+112
    Undefined index: status
    • > GET request to /wp-admin/admin.php?page=agilecrm_dashboard
    • > Notice in wp-content/plugins/agile-crm-lead-management/index.php+116
    Undefined index: restatus

SRP 50% 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 fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/agile-crm-lead-management/index.php
    • > /wp-content/plugins/agile-crm-lead-management/curlwrap_v2.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_email
    • > Console-api (severe) in wp-content/plugins/agile-crm-lead-management/js/pubnub-3.4.min.js+6:274
    Missing Channel

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
  • Screenshots: No descriptions were found for these screenshots #5, #6, #7, #8, #9 in agile-crm-lead-management/assets to your readme.txt
The official readme.txt might help

agile-crm-lead-management/index.php 77% from 13 tests

"Agile CRM" version v1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("agile-crm-lead-management.php" instead of "index.php")
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "v1.2")
  • Description: Please don't use more than 140 characters for the plugin description (currently 183 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,296 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP261531,214
CSS12131759
SVG7287200
JavaScript10132123

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions28
▷ Named functions28100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 0.97MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/webrules.png105.82KB27.82KB▼ 73.71%
images/web-stats.png38.69KB41.06KB0.00%
images/email.png90.78KB22.54KB▼ 75.17%
images/landing.png390.33KB165.52KB▼ 57.60%
images/preview.png0.84KB0.59KB▼ 29.84%