77% ultimate-popup-creator

Code Review | Popup - MailChimp, GetResponse and ActiveCampaign Intergrations

WordPress plugin Popup - MailChimp, GetResponse and ActiveCampaign Intergrations scored77%from 54 tests.

About plugin

  • Plugin page: ultimate-popup-cr...
  • Plugin version: 3.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.0
  • WordPress version: 6.3.1
  • First release: Jul 28, 2016
  • Latest release: Nov 1, 2019
  • Number of updates: 104
  • Update frequency: every 11.5 days
  • Top authors: arrowplugins (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

90+ active /20,863 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.01ms] Passed 4 tests

Server-side resources used by Popup - MailChimp, GetResponse and ActiveCampaign Intergrations
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.65 ▼2.32
Dashboard /wp-admin3.46 ▲0.1651.69 ▲5.13
Posts /wp-admin/edit.php3.57 ▲0.2250.22 ▲5.62
Add New Post /wp-admin/post-new.php6.04 ▲0.1683.15 ▼18.52
Media Library /wp-admin/upload.php3.36 ▲0.1338.40 ▲3.67
Ultimate Popup /wp-admin/admin.php?page=wpup_options_page3.43104.32
Support /wp-admin/admin.php?page=wpup_support_page3.3132.44

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 98 new files
Database: 1 new table, 7 new options
New tables
wp_wpappp_subs
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
upc_db_version
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics 75% from 4 tests

A check of browser resources used by Popup - MailChimp, GetResponse and ActiveCampaign Intergrations
Having an awesome user experience is important, so please improve the following
  • Nodes: You must limit the number of DOM nodes under 25,000 (currently 44,516 on /wp-admin/admin.php?page=wpup_options_page)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,132 ▲39718.62 ▲4.2317.54 ▲15.2454.84 ▲9.51
Dashboard /wp-admin2,399 ▲2117.82 ▲2.94141.37 ▲29.3744.86 ▲1.56
Posts /wp-admin/edit.php2,305 ▲2165.07 ▲3.0961.87 ▲24.7231.53 ▼3.46
Add New Post /wp-admin/post-new.php1,558 ▲1623.75 ▲5.55598.51 ▼52.4934.09 ▼17.69
Media Library /wp-admin/upload.php1,439 ▲515.30 ▲1.0992.53 ▼9.8040.67 ▼5.35
Ultimate Popup /wp-admin/admin.php?page=wpup_options_page44,51618.43987.37149.83
Support /wp-admin/admin.php?page=wpup_support_page1,0904.7553.5335.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=wpup_support_page
    • > Notice in wp-content/plugins/ultimate-popup-creator/ultimate-popup-creator.php+154
    Undefined variable: _SESSION

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
Almost there! Just fix the following items
  • 21× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-popup-creator/templates/template3.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-popup-creator/templates/template11.php:5
    • > PHP Notice
      Undefined index: telephone in wp-content/plugins/ultimate-popup-creator/includes/upc_process.php on line 16
    • > PHP Notice
      Undefined index: email in wp-content/plugins/ultimate-popup-creator/includes/upc_process.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-popup-creator/templates/template9.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-popup-creator/templates/template13.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-popup-creator/templates/template6.php:5
    • > PHP Notice
      Undefined index: enquiry in wp-content/plugins/ultimate-popup-creator/includes/upc_process.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-popup-creator/templates/template14.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-popup-creator/templates/template1.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Popups Showcase), #2 (Responsive: Mobile View), #3 (How It Look: Popup Customization Page), #4 (Display Settings: Enable Popup and other displaying options), #5 (General Settings: MailChimp, Local Database and other settings), #6 (Subscriber's Tab: Export and Download Subscribers to CSV file and other related options)
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

ultimate-popup-creator/ultimate-popup-creator.php Passed 13 tests

The main file in "Popup - MailChimp, GetResponse and ActiveCampaign Intergrations" v. 3.2.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
80 characters long description:
Add beautiful popups on your WordPress site to convert visitors into subscibers.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin14,922 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP221,0872,3485,501
JavaScript126681204,901
CSS5769454,520

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity14.00
▷ Minimum class complexity7.00
▷ Maximum class complexity21.00
Average method complexity1.22
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods117
▷ Static methods00.00%
▷ Public methods117100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.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
49 PNG files occupy 1.79MB with 1.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/popup5-img/close.png1.62KB0.59KB▼ 63.71%
images/upc_menu_icon.png17.04KB2.00KB▼ 88.24%
images/popup13-img/close.png1.18KB0.30KB▼ 74.83%
images/fs-sprite.png1.07KB0.18KB▼ 82.82%
screenshot-5.png90.76KB33.16KB▼ 63.46%