71% agile-crm-webrules

Code Review | Agile CRM Webrules

WordPress plugin Agile CRM Webrules scored71%from 54 tests.

About plugin

  • Plugin page: agile-crm-webrules
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.3
  • WordPress version: 6.3.1
  • First release: Jan 2, 2018
  • Latest release: Jan 2, 2018
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: shreyanshsurana (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /964 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼25.17ms] Passed 4 tests

Server-side resources used by Agile CRM Webrules
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1431.24 ▼13.66
Dashboard /wp-admin3.29 ▼0.0631.35 ▼35.55
Posts /wp-admin/edit.php3.43 ▲0.0737.50 ▼16.56
Add New Post /wp-admin/post-new.php5.67 ▼0.2273.51 ▼34.89
Media Library /wp-admin/upload.php3.37 ▲0.1435.46 ▼2.22
Refer a Friend /wp-admin/admin.php?page=agilecrm_webrules_refer3.4332.61
Home /wp-admin/admin.php?page=agilecrm_webrules_dashboard3.4028.53
Form Builder /wp-admin/admin.php?page=agilecrm_webrules_formbuilder3.4133.34
Email Campaigns /wp-admin/admin.php?page=agilecrm_webrules_email3.4135.84
Web Rules /wp-admin/admin.php?page=agilecrm_webrules_webrules3.4134.84
Landing Pages /wp-admin/admin.php?page=agilecrm_webrules_landing3.4131.06
Settings /wp-admin/admin.php?page=agilecrm_webrules_settings3.4034.56
Web Stats /wp-admin/admin.php?page=agilecrm_webrules_webstats3.4031.93

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
db_upgraded
webrules_agile_webstats
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
webrules_agile_webrules

Browser metrics Passed 4 tests

Agile CRM Webrules: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,980 ▲20913.62 ▼0.4118.26 ▲16.3344.23 ▲2.69
Dashboard /wp-admin2,259 ▲565.90 ▲0.08101.56 ▼6.6077.37 ▲29.12
Posts /wp-admin/edit.php2,150 ▲472.02 ▲0.0132.88 ▼3.2934.53 ▼1.52
Add New Post /wp-admin/post-new.php1,720 ▲18922.65 ▼0.60742.27 ▲68.9131.58 ▼31.46
Media Library /wp-admin/upload.php1,450 ▲504.24 ▼0.03106.21 ▼8.4049.75 ▼0.06
Refer a Friend /wp-admin/admin.php?page=agilecrm_webrules_refer9582.0225.5134.03
Home /wp-admin/admin.php?page=agilecrm_webrules_dashboard9412.0327.1434.88
Form Builder /wp-admin/admin.php?page=agilecrm_webrules_formbuilder9501.8429.0036.35
Email Campaigns /wp-admin/admin.php?page=agilecrm_webrules_email9561.7427.1631.15
Web Rules /wp-admin/admin.php?page=agilecrm_webrules_webrules9501.7026.5231.74
Landing Pages /wp-admin/admin.php?page=agilecrm_webrules_landing9501.8425.5033.21
Settings /wp-admin/admin.php?page=agilecrm_webrules_settings9412.0222.5032.16
Web Stats /wp-admin/admin.php?page=agilecrm_webrules_webstats9472.0324.5332.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • webrules_agile_webstats
    • widget_theysaidso_widget
    • webrules_agile_webrules
    • theysaidso_admin_options
    • can_compress_scripts

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
These errors were triggered by the plugin
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_webrules_webstats
    • > Notice in wp-content/plugins/agile-crm-webrules/index.php+900
    Undefined index: domain
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_webrules_webstats
    • > Notice in wp-content/plugins/agile-crm-webrules/index.php+959
    Undefined index: save
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_webrules_dashboard
    • > Notice in wp-content/plugins/agile-crm-webrules/index.php+121
    Undefined variable: deprecated
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_webrules_dashboard
    • > Notice in wp-content/plugins/agile-crm-webrules/index.php+121
    Undefined variable: autoload
    • > GET request to /wp-admin/admin.php?page=agilecrm_webrules_dashboard
    • > Notice in wp-content/plugins/agile-crm-webrules/index.php+124
    Undefined index: status
    • > GET request to /wp-admin/admin.php?page=agilecrm_webrules_dashboard
    • > Notice in wp-content/plugins/agile-crm-webrules/index.php+128
    Undefined index: restatus
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_webrules_webstats
    • > Notice in wp-content/plugins/agile-crm-webrules/index.php+1043
    Undefined variable: errors

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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/agile-crm-webrules/index.php

User-side errors 0% from 1 test

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

Optimizations

Plugin configuration 87% 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
Please fix the following attributes:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots lack descriptions #5, #6, #7, #8, #9 in agile-crm-webrules/assets to your readme.txt
The official readme.txt is a good inspiration

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

The main PHP file in "Agile CRM Webrules" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 183 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("agile-crm-webrules.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,384 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP169531,302
CSS12131759
SVG7287200
JavaScript10132123

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
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

All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.97MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.43KB0.60KB0.00%
images/frombuilder.png103.04KB29.05KB▼ 71.81%
images/preview.png0.84KB0.59KB▼ 29.84%
images/agile-crm.png1.92KB1.13KB▼ 41.18%
images/landingpage_main.png215.88KB59.15KB▼ 72.60%