67% icegram

Code Review | Icegram Engage - WordPress Lead Generation, Popup Builder, CTA, Optins and Email List Building

WordPress plugin Icegram Engage - WordPress Lead Generation, Popup Builder, CTA, Optins and Email List Building scored67%from 54 tests.

About plugin

  • Plugin page: icegram
  • Plugin version: 3.1.19
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 9, 2014
  • Latest release: Dec 1, 2023
  • Number of updates: 360
  • Update frequency: every 9.6 days
  • Top authors: Icegram (86.11%)niravmehta (14.17%)

Code review

54 tests

User reviews

361 reviews

Install metrics

20,000+ active /2,201,964 total downloads

Benchmarks

Plugin footprint 64% 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: ▲1.71MB] [CPU: ▲13.11ms] 50% from 4 tests

This is a short check of server-side resources used by Icegram Engage - WordPress Lead Generation, Popup Builder, CTA, Optins and Email List Building
It is recommended to improve the following
  • RAM: You should keep total memory usage under 10MB (currently 11.35MB on /wp-admin/post-new.php?post_type=ig_campaign)
  • CPU: The total CPU usage must kept under 500.00ms (currently 1,415.60ms on /wp-admin/edit.php?post_type=ig_campaign&page=icegram-gallery)
PageMemory (MB)CPU Time (ms)
Home /5.19 ▲1.7358.12 ▲18.05
Dashboard /wp-admin5.04 ▲1.7458.39 ▲8.71
Posts /wp-admin/edit.php5.10 ▲1.7561.52 ▲13.93
Add New Post /wp-admin/post-new.php7.58 ▲1.70107.62 ▲11.74
Media Library /wp-admin/upload.php4.90 ▲1.6752.33 ▲20.44
Settings /wp-admin/edit.php?post_type=ig_campaign&page=icegram-settings4.9145.43
Messages /wp-admin/edit.php?post_type=ig_message5.0050.81
Dashboard /wp-admin/edit.php?post_type=ig_campaign&page=icegram-dashboard4.9243.30
All Campaigns /wp-admin/edit.php?post_type=ig_campaign5.0348.41
🔥 Go Max /wp-admin/edit.php?post_type=ig_campaign&page=icegram-upgrade4.8840.94
Template Gallery /wp-admin/edit.php?post_type=ig_campaign&page=icegram-gallery11.261,415.60
Add New Campaign /wp-admin/post-new.php?post_type=ig_campaign11.3576.13
Docs & Support /wp-admin/edit.php?post_type=ig_campaign&page=icegram-support5.3846.48

Server storage [IO: ▲2.69MB] [DB: ▲0.48MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 222 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-comments
icegram_db_version
widget_recent-posts
db_upgraded
can_compress_scripts
ig_last_gallery_items
ig_cat_list
icegram_sample_data_imported
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Icegram Engage - WordPress Lead Generation, Popup Builder, CTA, Optins and Email List Building
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲10714.28 ▼0.071.63 ▼0.0730.75 ▼12.65
Dashboard /wp-admin2,253 ▲765.57 ▼0.0891.91 ▼1.0483.96 ▲38.02
Posts /wp-admin/edit.php2,161 ▲581.99 ▲0.0539.40 ▼6.4641.53 ▲5.07
Add New Post /wp-admin/post-new.php1,590 ▲5523.03 ▼2.12585.74 ▼76.86163.29 ▲102.77
Media Library /wp-admin/upload.php1,461 ▲614.22 ▲0.0395.23 ▼3.2980.97 ▲38.98
Settings /wp-admin/edit.php?post_type=ig_campaign&page=icegram-settings1,0231.7026.5931.52
Messages /wp-admin/edit.php?post_type=ig_message1,1872.5538.3543.58
Dashboard /wp-admin/edit.php?post_type=ig_campaign&page=icegram-dashboard1,1061.8827.1762.93
All Campaigns /wp-admin/edit.php?post_type=ig_campaign1,2882.6955.2236.85
🔥 Go Max /wp-admin/edit.php?post_type=ig_campaign&page=icegram-upgrade1,8382.1326.18130.99
Template Gallery /wp-admin/edit.php?post_type=ig_campaign&page=icegram-gallery6,6823.9387.5763.05
Add New Campaign /wp-admin/post-new.php?post_type=ig_campaign8,64811.51270.20126.67
Docs & Support /wp-admin/edit.php?post_type=ig_campaign&page=icegram-support1,2491.7425.5378.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/icegram/lite/classes/feedback/class-ig-plugin-data-tracker.php+197
    Undefined index: survey_status
  • Zombie WordPress options detected upon uninstall: 10 options
    • icegram_sample_data_imported
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • ig_cat_list
    • icegram_db_version
    • widget_recent-comments
    • can_compress_scripts
    • ig_last_gallery_items
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/icegram/lite/gallery.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/icegram/lite/ig-offer.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/icegram/lite/gallery.php:382
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/icegram/lite/classes/feedback.php:31
    • > PHP Notice
      Trying to get property 'post_type' of non-object in wp-content/plugins/icegram/lite/notices/admin-notices.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: hellobar, lead capture, form, optin, popup

icegram/icegram.php 85% from 13 tests

This is the main PHP file of "Icegram Engage - WordPress Lead Generation, Popup Builder, CTA, Optins and Email List Building" version 3.1.19, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/lang/" does not exist
  • Description: Please don't use more than 140 characters for the plugin description (currently 171 characters long)

Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin22,368 lines of code in 108 files:
LanguageFilesBlank linesComment linesLines of code
PHP381,9952,38810,214
JavaScript231,3301,0685,501
CSS436415175,350
PO File24445191,296
XML1006
SVG1001

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 143)
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity48.70
▷ Minimum class complexity1.00
▷ Maximum class complexity421.00
Average method complexity5.23
▷ Minimum method complexity1.00
▷ Maximum method complexity143.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes27
▷ Abstract classes13.70%
▷ Concrete classes2696.30%
▷ Final classes00.00%
Methods305
▷ Static methods4815.74%
▷ Public methods29998.03%
▷ Protected methods20.66%
▷ Private methods41.31%
Functions22
▷ Named functions2195.45%
▷ Anonymous functions14.55%
Constants16
▷ Global constants743.75%
▷ Class constants956.25%
▷ Public constants9100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
101 PNG files occupy 0.96MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lite/message-types/toast/themes/night-glow.png3.36KB3.62KB0.00%
lite/assets/css/chosen-sprite@2x.png0.72KB0.83KB0.00%
lite/assets/images/sketch-sidebar-158X127.png3.63KB1.60KB▼ 55.89%
lite/assets/images/sprite_1.png14.57KB5.69KB▼ 60.91%
lite/message-types/messenger/themes/social.png5.47KB5.59KB0.00%