87% ultimate-popup-creator

Code Review | Popup - MailChimp, GetResponse and ActiveCampaign Intergrations

WordPress plugin Popup - MailChimp, GetResponse and ActiveCampaign Intergrations scored 87% 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: 5.8.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

100+ active / 20,460 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.81MB] [CPU: ▼155.04ms] Passed 4 tests

This is a short check of 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.57 ▲0.7337.32 ▲11.72
Dashboard /wp-admin3.96 ▲0.8942.20 ▼4.04
Posts /wp-admin/edit.php4.02 ▲0.9139.80 ▲0.19
Add New Post /wp-admin/post-new.php6.25 ▲0.8075.59 ▼611.66
Media Library /wp-admin/upload.php3.83 ▲0.8224.32 ▼4.66
Support /wp-admin/admin.php?page=wpup_support_page3.8027.50
Ultimate Popup /wp-admin/admin.php?page=wpup_options_page3.85113.21

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 98 new files
Database: 1 new table, 1 new option
New tables
wp_wpappp_subs
New WordPress options
upc_db_version

Browser metrics 75% from 4 tests

A check of browser resources used by Popup - MailChimp, GetResponse and ActiveCampaign Intergrations
It is time to focus on the following
  • Nodes: You must limit the number of DOM nodes under 25,000 (currently 50,930 on /wp-admin/admin.php?page=wpup_options_page)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,077 ▲47621.33 ▲6.0716.35 ▲9.0275.32 ▼1.90
Dashboard /wp-admin3,197 ▲3018.40 ▲2.21150.89 ▲20.74168.19 ▼6.82
Posts /wp-admin/edit.php3,040 ▲3005.72 ▲2.5092.38 ▲27.48139.53 ▲2.93
Add New Post /wp-admin/post-new.php1,731 ▼2,01217.62 ▼1.60365.80 ▼72.69154.53 ▼10.79
Media Library /wp-admin/upload.php1,822 ▲766.63 ▲1.11120.15 ▼21.30184.65 ▼1.50
Support /wp-admin/admin.php?page=wpup_support_page1,4636.2782.69160.03
Ultimate Popup /wp-admin/admin.php?page=wpup_options_page50,93022.14972.98172.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 21× PHP files trigger server-side errors or warnings 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/template1.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/template11.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-popup-creator/templates/template8.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-popup-creator/templates/template5.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-popup-creator/templates/template12.php:5
    • > PHP Notice
      Undefined index: name in wp-content/plugins/ultimate-popup-creator/includes/upc_process.php on line 14
    • > 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/template10.php:5
    • > PHP Notice
      Undefined index: telephone in wp-content/plugins/ultimate-popup-creator/includes/upc_process.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #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: There are too many tags (11 tag instead of maximum 10)
You can take inspiration from this readme.txt

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

The principal PHP file in "Popup - MailChimp, GetResponse and ActiveCampaign Intergrations" v. 3.2.6 is loaded by WordPress automatically on each request
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 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous 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
No complexity issues detected
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
49 PNG files occupy 1.79MB with 1.22MB 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/popup5-img/food1.png222.33KB60.60KB▼ 72.74%
images/popup12-img/close.png1.16KB0.33KB▼ 71.01%
images/popup3-img/close.png1.25KB0.38KB▼ 69.92%
screenshot-5.png90.76KB33.16KB▼ 63.46%