73% popup-builder

Code Review | Popup Builder - Create highly converting, mobile friendly marketing popups.

WordPress plugin Popup Builder - Create highly converting, mobile friendly marketing popups. scored73%from 54 tests.

About plugin

  • Plugin page: popup-builder
  • Plugin version: 4.2.2
  • PHP compatiblity: 5.3.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.4
  • WordPress version: 6.3.1
  • First release: May 30, 2015
  • Latest release: Nov 11, 2023
  • Number of updates: 611
  • Update frequency: every 5.1 days
  • Top authors: Sygnoos (98.36%)minhgsvn (1.15%)

Code review

54 tests

User reviews

2124 reviews

Install metrics

200,000+ active /9,074,350 total downloads

Benchmarks

Plugin footprint 65% 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: ▲3.72MB] [CPU: ▲16.34ms] 75% from 4 tests

This is a short check of server-side resources used by Popup Builder - Create highly converting, mobile friendly marketing popups.
It is recommended to improve the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 579.10ms on /wp-admin/edit.php?post_type=popupbuilder&page=sgpbSettings)
PageMemory (MB)CPU Time (ms)
Home /6.89 ▲3.4355.74 ▲11.60
Dashboard /wp-admin7.15 ▲3.8174.59 ▲11.86
Posts /wp-admin/edit.php7.17 ▲3.8182.16 ▲35.67
Add New Post /wp-admin/post-new.php9.81 ▲3.92106.74 ▲18.38
Media Library /wp-admin/upload.php7.06 ▲3.8359.13 ▲23.50
Settings /wp-admin/edit.php?post_type=popupbuilder&page=sgpbSettings7.12579.10
All Popups /wp-admin/edit.php?post_type=popupbuilder7.1668.15

Server storage [IO: ▲5.46MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 348 new files
Database: 2 new tables, 16 new options
New tables
wp_sgpb_subscription_error_log
wp_sgpb_subscribers
New WordPress options
SGPBUsageDays
db_upgraded
SGPBOpenNextTime
SGPB_INACTIVE_EXTENSIONS
sgpbPopupBuilderRegisteredPlugins
sgpbUnsubscribeColumnFixed
sgpbModifiedRegisteredPluginsPaths2
sgpb-all-notifications-data
SGPBMaxOpenCount
widget_recent-posts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Popup Builder - Create highly converting, mobile friendly marketing popups.
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,040 ▲29314.92 ▲0.781.63 ▼0.0536.61 ▼7.97
Dashboard /wp-admin2,449 ▲2696.71 ▲1.11127.70 ▲35.6541.87 ▲0.48
Posts /wp-admin/edit.php2,383 ▲2833.68 ▲1.7263.11 ▲24.7433.60 ▲1.12
Add New Post /wp-admin/post-new.php1,592 ▲5622.39 ▼0.65676.82 ▼3.1039.71 ▼16.35
Media Library /wp-admin/upload.php1,509 ▲1064.48 ▲0.2585.70 ▼19.1340.39 ▼6.62
Settings /wp-admin/edit.php?post_type=popupbuilder&page=sgpbSettings1,3193.7867.6888.62
All Popups /wp-admin/edit.php?post_type=popupbuilder1,4883.6858.5567.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/popup-builder/com/helpers/AdminHelper.php+601
    Undefined property: stdClass::$roles
  • Zombie WordPress options detected upon uninstall: 14 options
    • SGPBMaxOpenCount
    • SGPBInstallDate
    • sgpbModifiedRegisteredPluginsPaths2
    • SGPBUsageDays
    • theysaidso_admin_options
    • sgpb-all-notifications-data
    • db_upgraded
    • widget_theysaidso_widget
    • SGPBOpenNextTime
    • SGPB_INACTIVE_EXTENSIONS
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 66× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'SG_POPUP_LIBS_PATHparsers.php' (include_path='.:/usr/share/php') in wp-content/plugins/popup-builder/com/libs/Importer.php on line 12
    • > PHP Warning
      Use of undefined constant SGPB_POPUP_PKG_SILVER - assumed 'SGPB_POPUP_PKG_SILVER' (this will throw an Error in a future version of PHP) in wp-content/plugins/popup-builder/com/helpers/PopupBuilderActivePackage.php on line 14
    • > PHP Warning
      require_once(SG_POPUP_CLASSES_PATH/Ajax.php): failed to open stream: No such file or directory in wp-content/plugins/popup-builder/com/classes/dataTable/Subscribers.php on line 2
    • > PHP Warning
      require_once(SG_POPUP_HELPERS_PATHConfigDataHelper.php): failed to open stream: No such file or directory in wp-content/plugins/popup-builder/com/config/dataConfig.php on line 2
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/popup-builder/com/classes/popups/SubscriptionPopup.php on line 4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/popup-builder/public/views/license.php:5
    • > PHP Fatal error
      require_once(): Failed opening required 'SG_POPUP_EXTENSION_PATHSgpbPopupExtensionRegister.php' (include_path='.:/usr/share/php') in wp-content/plugins/popup-builder/PopupBuilderInit.php on line 43
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/popup-builder/com/classes/popups/SubscriptionPopup.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/popup-builder/public/views/main/image.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'SG_POPUP_CLASSES_PATH/dataTable/Subscribers.php' (include_path='.:/usr/share/php') in wp-content/plugins/popup-builder/public/views/subscribers.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
7 plugin tags: exit popup, wordpress popup plugin, popup maker, wordpress popup, popup...

popup-builder/popup-builder.php 92% from 13 tests

"Popup Builder - Create highly converting, mobile friendly marketing popups." version 4.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin34,450 lines of code in 233 files:
LanguageFilesBlank linesComment linesLines of code
PHP873,1511,95120,434
CSS12838906,552
JavaScript214731083,919
Sass1611802,440
SVG96210908
HTML1311197

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity48.56
▷ Minimum class complexity1.00
▷ Maximum class complexity355.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes53
▷ Abstract classes11.89%
▷ Concrete classes5298.11%
▷ Final classes00.00%
Methods877
▷ Static methods25328.85%
▷ Public methods75485.97%
▷ Protected methods222.51%
▷ Private methods10111.52%
Functions21
▷ Named functions14.76%
▷ Anonymous functions2095.24%
Constants30
▷ Global constants30100.00%
▷ Class constants00.00%
▷ Public constants00.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
78 PNG files occupy 1.90MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/bannerMegaphone.png5.88KB3.59KB▼ 38.83%
public/img/theme_5/close.png0.75KB0.24KB▼ 68.58%
public/img/sgpbLogo.png19.20KB7.04KB▼ 63.34%
public/img/subscriptionTypeIcon.png9.68KB9.69KB0.00%
public/img/rateUsBanner2.png11.64KB11.78KB0.00%