71% agile-crm-content-management

Code Review | Agile CRM Content Management

WordPress plugin Agile CRM Content Management scored71%from 54 tests.

About plugin

  • Plugin page: agile-crm-content...
  • 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 20, 2017
  • Latest release: Dec 28, 2017
  • Number of updates: 4
  • Update frequency: every 2.3 days
  • Top authors: shreyanshsurana (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,013 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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Agile CRM Content Management
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1426.16 ▼18.21
Dashboard /wp-admin3.29 ▼0.0534.52 ▼27.99
Posts /wp-admin/edit.php3.43 ▲0.0734.89 ▼28.49
Add New Post /wp-admin/post-new.php5.67 ▼0.2172.43 ▼17.40
Media Library /wp-admin/upload.php3.38 ▲0.1532.34 ▼2.87
Landing Pages /wp-admin/admin.php?page=agilecrm_content_management_landing3.4133.68
Form Builder /wp-admin/admin.php?page=agilecrm_content_management_formbuilder3.4140.26
Home /wp-admin/admin.php?page=agilecrm_content_management_dashboard3.4137.64
Email Campaigns /wp-admin/admin.php?page=agilecrm_content_management_email3.4136.83
Web Stats /wp-admin/admin.php?page=agilecrm_content_management_webstats3.4138.14
Settings /wp-admin/admin.php?page=agilecrm_content_management_settings3.4133.08
Refer a Friend /wp-admin/admin.php?page=agilecrm_content_management_refer3.4341.95
Web Rules /wp-admin/admin.php?page=agilecrm_content_management_webrules3.4132.78

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
content_management_agile_webrules
widget_recent-comments
content_management_agile_webstats
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Agile CRM Content Management
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,965 ▲19414.01 ▼0.3718.95 ▲16.8442.66 ▼3.12
Dashboard /wp-admin2,244 ▲595.88 ▲1.04124.30 ▼0.1086.62 ▲41.97
Posts /wp-admin/edit.php2,147 ▲542.03 ▲0.0237.23 ▼13.5032.77 ▼12.68
Add New Post /wp-admin/post-new.php1,708 ▲18922.44 ▼0.72723.47 ▼53.7036.13 ▼20.06
Media Library /wp-admin/upload.php1,432 ▲444.27 ▲0.07108.13 ▼24.0873.75 ▲12.35
Landing Pages /wp-admin/admin.php?page=agilecrm_content_management_landing9381.8528.7833.74
Form Builder /wp-admin/admin.php?page=agilecrm_content_management_formbuilder9381.7235.0635.07
Home /wp-admin/admin.php?page=agilecrm_content_management_dashboard9292.0329.2236.50
Email Campaigns /wp-admin/admin.php?page=agilecrm_content_management_email9351.7135.1233.99
Web Stats /wp-admin/admin.php?page=agilecrm_content_management_webstats9322.0328.6138.78
Settings /wp-admin/admin.php?page=agilecrm_content_management_settings9332.0930.3937.11
Refer a Friend /wp-admin/admin.php?page=agilecrm_content_management_refer9492.0326.2533.28
Web Rules /wp-admin/admin.php?page=agilecrm_content_management_webrules9381.6929.8032.60

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • content_management_agile_webstats
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • content_management_agile_webrules
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting 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_content_management_webrules
    • > Notice in wp-content/plugins/agile-crm-content-management/index.php+900
    Undefined index: domain
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_content_management_webrules
    • > Notice in wp-content/plugins/agile-crm-content-management/index.php+959
    Undefined index: save
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_content_management_webrules
    • > Notice in wp-content/plugins/agile-crm-content-management/index.php+1043
    Undefined variable: errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_content_management_dashboard
    • > Notice in wp-content/plugins/agile-crm-content-management/index.php+121
    Undefined variable: deprecated
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_content_management_dashboard
    • > Notice in wp-content/plugins/agile-crm-content-management/index.php+121
    Undefined variable: autoload
    • > GET request to /wp-admin/admin.php?page=agilecrm_content_management_dashboard
    • > Notice in wp-content/plugins/agile-crm-content-management/index.php+124
    Undefined index: status
    • > GET request to /wp-admin/admin.php?page=agilecrm_content_management_dashboard
    • > Notice in wp-content/plugins/agile-crm-content-management/index.php+128
    Undefined index: restatus

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/agile-crm-content-management/index.php

User-side errors 0% from 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please add descriptions for these screenshots #5, #6, #7, #8, #9 in agile-crm-content-management/assets to your readme.txt
You can take inspiration from this readme.txt

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

"Agile CRM Content Management" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("agile-crm-content-management.php" instead of "index.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 183 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
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

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
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

Often times overlooked, PNG files can occupy unnecessary space in 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/agilecrm-cloud-png.png39.22KB19.68KB▼ 49.83%
images/agile-crm.png1.92KB1.13KB▼ 41.18%
images/frombuilder.png103.04KB29.05KB▼ 71.81%
images/icon (1).png0.67KB0.88KB0.00%
images/webrules.png105.82KB27.82KB▼ 73.71%