71% agile-crm-landing-pages

Code Review | Agile CRM Landing Pages

WordPress plugin Agile CRM Landing Pages scored71%from 54 tests.

About plugin

  • Plugin page: agile-crm-landing...
  • 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 28, 2017
  • Latest release: Dec 28, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: shreyanshsurana (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /998 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.01MB] [CPU: ▼16.82ms] Passed 4 tests

Server-side resources used by Agile CRM Landing Pages
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1431.97 ▼10.74
Dashboard /wp-admin3.29 ▼0.0129.54 ▼23.96
Posts /wp-admin/edit.php3.43 ▲0.0736.74 ▼15.13
Add New Post /wp-admin/post-new.php5.68 ▼0.2270.24 ▼17.44
Media Library /wp-admin/upload.php3.38 ▲0.1534.22 ▼1.87
Email Campaigns /wp-admin/admin.php?page=agilecrm_landing_pages_email3.4134.04
Web Stats /wp-admin/admin.php?page=agilecrm_landing_pages_webstats3.4135.17
Refer a Friend /wp-admin/admin.php?page=agilecrm_landing_pages_refer3.4333.86
Form Builder /wp-admin/admin.php?page=agilecrm_landing_pages_formbuilder3.4135.53
Landing Pages /wp-admin/admin.php?page=agilecrm_landing_pages_landing3.4133.09
Web Rules /wp-admin/admin.php?page=agilecrm_landing_pages_webrules3.4132.01
Home /wp-admin/admin.php?page=agilecrm_landing_pages_dashboard3.4134.41
Settings /wp-admin/admin.php?page=agilecrm_landing_pages_settings3.4125.73

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options
landing_pages_agile_webrules
landing_pages_agile_webstats
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Agile CRM Landing Pages
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,959 ▲19813.55 ▼0.7418.17 ▲16.6843.45 ▼2.65
Dashboard /wp-admin2,235 ▲585.52 ▼0.1583.89 ▼3.7784.49 ▲43.20
Posts /wp-admin/edit.php2,161 ▲582.00 ▲0.0134.71 ▼6.5936.59 ▼0.67
Add New Post /wp-admin/post-new.php1,734 ▲20824.67 ▲1.62727.50 ▲35.1073.18 ▲10.22
Media Library /wp-admin/upload.php1,452 ▲554.21 ▲0.01101.28 ▼0.8071.71 ▲24.02
Email Campaigns /wp-admin/admin.php?page=agilecrm_landing_pages_email9551.6926.9231.59
Web Stats /wp-admin/admin.php?page=agilecrm_landing_pages_webstats9462.0124.4131.68
Refer a Friend /wp-admin/admin.php?page=agilecrm_landing_pages_refer9632.0024.3536.85
Form Builder /wp-admin/admin.php?page=agilecrm_landing_pages_formbuilder9581.6928.3631.42
Landing Pages /wp-admin/admin.php?page=agilecrm_landing_pages_landing9521.6927.2130.18
Web Rules /wp-admin/admin.php?page=agilecrm_landing_pages_webrules9521.6925.3331.13
Home /wp-admin/admin.php?page=agilecrm_landing_pages_dashboard9492.0122.2530.24
Settings /wp-admin/admin.php?page=agilecrm_landing_pages_settings9492.0122.3433.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • landing_pages_agile_webstats
    • widget_recent-posts
    • theysaidso_admin_options
    • landing_pages_agile_webrules
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_landing_pages_settings
    • > Notice in wp-content/plugins/agile-crm-landing-pages/index.php+900
    Undefined index: domain
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_landing_pages_settings
    • > Notice in wp-content/plugins/agile-crm-landing-pages/index.php+959
    Undefined index: save
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_landing_pages_settings
    • > Notice in wp-content/plugins/agile-crm-landing-pages/index.php+1043
    Undefined variable: errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_landing_pages_dashboard
    • > Notice in wp-content/plugins/agile-crm-landing-pages/index.php+121
    Undefined variable: deprecated
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_landing_pages_dashboard
    • > Notice in wp-content/plugins/agile-crm-landing-pages/index.php+121
    Undefined variable: autoload
    • > GET request to /wp-admin/admin.php?page=agilecrm_landing_pages_dashboard
    • > Notice in wp-content/plugins/agile-crm-landing-pages/index.php+124
    Undefined index: status
    • > GET request to /wp-admin/admin.php?page=agilecrm_landing_pages_dashboard
    • > Notice in wp-content/plugins/agile-crm-landing-pages/index.php+128
    Undefined index: restatus

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/agile-crm-landing-pages/index.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=agilecrm_landing_pages_settings
    • > Network (severe)
    wp-content/plugins/agilecrm-landing-pages/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_landing_pages_webrules
    • > Console-api (severe) in wp-content/plugins/agile-crm-landing-pages/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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of 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: No descriptions were found for these screenshots #5, #6, #7, #8, #9 in agile-crm-landing-pages/assets to your readme.txt
You can take inspiration from this readme.txt

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

Analyzing the main PHP file in "Agile CRM Landing Pages" version 1.0
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("agile-crm-landing-pages.php" instead of "index.php")
  • 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
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

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues 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.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/email.png90.78KB22.54KB▼ 75.17%
images/landingpage_main.png215.88KB59.15KB▼ 72.60%
images/preview.png0.84KB0.59KB▼ 29.84%
images/campaign-newsletter.png9.62KB10.23KB0.00%
images/landing.png390.33KB165.52KB▼ 57.60%