71% agile-crm-newsletter

Code Review | Agile CRM Newsletter

WordPress plugin Agile CRM Newsletter scored71%from 54 tests.

About plugin

  • Plugin page: agile-crm-newsletter
  • 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 29, 2017
  • Latest release: Dec 29, 2017
  • Number of updates: 3
  • Update frequency: every 65.7 days
  • Top authors: shreyanshsurana (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /993 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 gracefully, with no errors

Server metrics [RAM: ▼0.21MB] [CPU: ▼21.31ms] Passed 4 tests

A check of server-side resources used by Agile CRM Newsletter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0723.59 ▼16.63
Dashboard /wp-admin3.08 ▼0.2222.32 ▼27.00
Posts /wp-admin/edit.php3.22 ▼0.1434.67 ▼12.38
Add New Post /wp-admin/post-new.php5.46 ▼0.4268.13 ▼29.22
Media Library /wp-admin/upload.php3.15 ▼0.0827.21 ▼5.86
Web Stats /wp-admin/admin.php?page=agilecrm_newsletter_webstats3.2028.04
Settings /wp-admin/admin.php?page=agilecrm_newsletter_settings3.2026.18
Web Rules /wp-admin/admin.php?page=agilecrm_newsletter_webrules3.2029.43
Refer a Friend /wp-admin/admin.php?page=agilecrm_newsletter_refer3.2235.26
Home /wp-admin/admin.php?page=agilecrm_newsletter_dashboard3.2030.43
Landing Pages /wp-admin/admin.php?page=agilecrm_newsletter_landing3.2028.55
Email Campaigns /wp-admin/admin.php?page=agilecrm_newsletter_email3.2030.35
Form Builder /wp-admin/admin.php?page=agilecrm_newsletter_formbuilder3.2030.08

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
db_upgraded
newsletter_agile_webrules
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
newsletter_agile_webstats
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Agile CRM Newsletter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,965 ▲21913.74 ▼0.6313.85 ▲12.0636.82 ▼5.19
Dashboard /wp-admin2,253 ▲685.86 ▲0.95111.39 ▼9.0778.09 ▲28.22
Posts /wp-admin/edit.php2,139 ▲501.99 ▼0.0536.64 ▲2.1234.32 ▼1.00
Add New Post /wp-admin/post-new.php1,708 ▲17522.64 ▼0.59694.08 ▲16.5028.01 ▼22.93
Media Library /wp-admin/upload.php1,438 ▲504.12 ▼0.0799.76 ▲0.2875.39 ▲31.47
Web Stats /wp-admin/admin.php?page=agilecrm_newsletter_webstats9322.0326.4435.53
Settings /wp-admin/admin.php?page=agilecrm_newsletter_settings9352.0623.4726.17
Web Rules /wp-admin/admin.php?page=agilecrm_newsletter_webrules9351.7128.8831.45
Refer a Friend /wp-admin/admin.php?page=agilecrm_newsletter_refer9462.0323.8731.43
Home /wp-admin/admin.php?page=agilecrm_newsletter_dashboard9292.0623.6730.94
Landing Pages /wp-admin/admin.php?page=agilecrm_newsletter_landing9411.8527.5631.83
Email Campaigns /wp-admin/admin.php?page=agilecrm_newsletter_email9381.8427.7932.05
Form Builder /wp-admin/admin.php?page=agilecrm_newsletter_formbuilder9381.7227.1230.43

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
    • newsletter_agile_webrules
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • newsletter_agile_webstats
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_newsletter_formbuilder
    • > Notice in wp-content/plugins/agile-crm-newsletter/index.php+900
    Undefined index: domain
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_newsletter_formbuilder
    • > Notice in wp-content/plugins/agile-crm-newsletter/index.php+959
    Undefined index: save
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_newsletter_formbuilder
    • > Notice in wp-content/plugins/agile-crm-newsletter/index.php+1043
    Undefined variable: errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_newsletter_dashboard
    • > Notice in wp-content/plugins/agile-crm-newsletter/index.php+121
    Undefined variable: deprecated
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_newsletter_dashboard
    • > Notice in wp-content/plugins/agile-crm-newsletter/index.php+121
    Undefined variable: autoload
    • > GET request to /wp-admin/admin.php?page=agilecrm_newsletter_dashboard
    • > Notice in wp-content/plugins/agile-crm-newsletter/index.php+124
    Undefined index: status
    • > GET request to /wp-admin/admin.php?page=agilecrm_newsletter_dashboard
    • > Notice in wp-content/plugins/agile-crm-newsletter/index.php+128
    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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/agile-crm-newsletter/index.php

User-side errors 0% from 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
  • Screenshots: Please add descriptions for these screenshots #5, #6, #7, #8, #9 in agile-crm-newsletter/assets to your readme.txt
You can look at the official readme.txt

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

"Agile CRM Newsletter" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("agile-crm-newsletter.php" instead of "index.php")
  • Description: Please 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,384 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP169531,302
CSS12131759
SVG7287200
JavaScript10132123

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/campaign-newsletter.png9.62KB10.23KB0.00%
images/agile-crm.png1.92KB1.13KB▼ 41.18%
images/webrules.png105.82KB27.82KB▼ 73.71%
images/email.png90.78KB22.54KB▼ 75.17%
images/preview.png0.84KB0.59KB▼ 29.84%