71% agile-crm-campaigns

Code Review | Agile CRM Campaigns

WordPress plugin Agile CRM Campaigns scored 71% from 53 tests.

About plugin

  • Plugin page: agile-crm-campaigns
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.3
  • WordPress version: 5.8.1
  • First release: Dec 14, 2017
  • Latest release: Dec 26, 2017
  • Number of updates: 10
  • Update frequency: every 1.3 days
  • Top authors: shreyanshsurana (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 685 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Server-side resources used by Agile CRM Campaigns
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.2224.21 ▲1.50
Dashboard /wp-admin3.13 ▲0.0828.71 ▼10.11
Posts /wp-admin/edit.php3.19 ▲0.0832.32 ▼9.65
Add New Post /wp-admin/post-new.php5.20 ▼0.2271.23 ▼1,132.42
Media Library /wp-admin/upload.php3.16 ▲0.1528.22 ▼8.74
Refer a Friend /wp-admin/admin.php?page=agilecrm_campaigns_refer3.2030.84
Settings /wp-admin/admin.php?page=agilecrm_campaigns_settings3.1828.10
Web Stats /wp-admin/admin.php?page=agilecrm_campaigns_webstats3.1830.46
Form Builder /wp-admin/admin.php?page=agilecrm_campaigns_formbuilder3.1827.58
Web Rules /wp-admin/admin.php?page=agilecrm_campaigns_webrules3.1830.26
Home /wp-admin/admin.php?page=agilecrm_campaigns_dashboard3.1823.75
Landing Pages /wp-admin/admin.php?page=agilecrm_campaigns_landing3.1825.37
Email Campaigns /wp-admin/admin.php?page=agilecrm_campaigns_email3.1831.36

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 2 new options
New WordPress options
campaigns_agile_webrules
campaigns_agile_webstats

Browser metrics Passed 4 tests

This is an overview of browser requirements for Agile CRM Campaigns
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,881 ▲27516.59 ▲0.9822.20 ▲14.0346.16 ▲2.43
Dashboard /wp-admin2,991 ▲1416.20 ▲0.34133.69 ▼0.82135.28 ▲27.86
Posts /wp-admin/edit.php2,760 ▲572.60 ▼0.0964.28 ▲2.5589.51 ▼2.85
Add New Post /wp-admin/post-new.php1,634 ▼22321.70 ▲2.57276.02 ▼112.79107.92 ▼2.16
Media Library /wp-admin/upload.php1,781 ▲95.02 ▲0.03126.84 ▼33.25125.68 ▲9.78
Refer a Friend /wp-admin/admin.php?page=agilecrm_campaigns_refer1,2092.3657.4887.49
Settings /wp-admin/admin.php?page=agilecrm_campaigns_settings1,2042.3354.8872.45
Web Stats /wp-admin/admin.php?page=agilecrm_campaigns_webstats1,2042.3455.8477.10
Form Builder /wp-admin/admin.php?page=agilecrm_campaigns_formbuilder1,2222.3462.5070.84
Web Rules /wp-admin/admin.php?page=agilecrm_campaigns_webrules1,2252.3659.7174.35
Home /wp-admin/admin.php?page=agilecrm_campaigns_dashboard1,2192.3353.3576.64
Landing Pages /wp-admin/admin.php?page=agilecrm_campaigns_landing1,2252.3358.4465.37
Email Campaigns /wp-admin/admin.php?page=agilecrm_campaigns_email1,2102.3558.1070.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 2 options in the database
    • campaigns_agile_webrules
    • campaigns_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_campaigns_email
    • > Notice in wp-content/plugins/agile-crm-campaigns/index.php+900
    Undefined index: domain
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_campaigns_email
    • > Notice in wp-content/plugins/agile-crm-campaigns/index.php+959
    Undefined index: save
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_campaigns_email
    • > Notice in wp-content/plugins/agile-crm-campaigns/index.php+1043
    Undefined variable: errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_campaigns_dashboard
    • > Notice in wp-content/plugins/agile-crm-campaigns/index.php+121
    Undefined variable: deprecated
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_campaigns_dashboard
    • > Notice in wp-content/plugins/agile-crm-campaigns/index.php+121
    Undefined variable: autoload
    • > GET request to /wp-admin/admin.php?page=agilecrm_campaigns_dashboard
    • > Notice in wp-content/plugins/agile-crm-campaigns/index.php+124
    Undefined index: status
    • > GET request to /wp-admin/admin.php?page=agilecrm_campaigns_dashboard
    • > Notice in wp-content/plugins/agile-crm-campaigns/index.php+128
    Undefined index: restatus

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/agile-crm-campaigns/index.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_campaigns_email
    • > Network (severe)
    wp-content/plugins/agilecrm-campaigns/images/icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_campaigns_email
    • > Console-api (severe) in wp-content/plugins/agile-crm-campaigns/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
Attributes that need to be fixed:
  • Screenshots: These screenshots lack descriptions #5, #6, #7, #8, #9 in agile-crm-campaigns/assets to your readme.txt
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt is a good inspiration

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

"Agile CRM Campaigns" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 183 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("agile-crm-campaigns.php" instead of "index.php")

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
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

Cyclomatic complexity and code structure are the fingerprint of 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 0% from 1 test

Image compression 0% from 1 test

PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.97MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/preview.png0.84KB0.59KB▼ 29.84%
images/frombuilder.png103.04KB29.05KB▼ 71.81%
images/webrules.png105.82KB27.82KB▼ 73.71%
images/web-stats.png38.69KB41.06KB0.00%
images/agilecrm-cloud-png.png39.22KB19.68KB▼ 49.83%