78% popup-maker-wp

Code Review | Popup Maker - Responsive popup, Exit Intent Pop up, Email Optins, Autoresponder & More

WordPress plugin Popup Maker - Responsive popup, Exit Intent Pop up, Email Optins, Autoresponder & More scored78%from 54 tests.

About plugin

  • Plugin page: popup-maker-wp
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.1
  • WordPress version: 6.3.1
  • First release: Jul 15, 2017
  • Latest release: Oct 9, 2023
  • Number of updates: 117
  • Update frequency: every 19.5 days
  • Top authors: popupmaker (98.29%)minhgsvn (2.56%)

Code review

54 tests

User reviews

142 reviews

Install metrics

8,000+ active /323,069 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▼2.73ms] Passed 4 tests

This is a short check of server-side resources used by Popup Maker - Responsive popup, Exit Intent Pop up, Email Optins, Autoresponder & More
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2742.32 ▲5.81
Dashboard /wp-admin3.65 ▲0.3153.00 ▼6.97
Posts /wp-admin/edit.php3.67 ▲0.3148.43 ▲0.82
Add New Post /wp-admin/post-new.php6.18 ▲0.2986.23 ▼10.59
Media Library /wp-admin/upload.php3.52 ▲0.2939.44 ▲6.13

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
sgpm_popup_maker_api_option
sgpm_popup_maker_notification_engine_source
theysaidso_admin_options
widget_recent-posts
sgpm_popup_maker_dismissed_notifacions
widget_recent-comments
sgpm_popup_maker_activation_date
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Popup Maker - Responsive popup, Exit Intent Pop up, Email Optins, Autoresponder & More
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.38 ▼0.181.77 ▲0.0244.56 ▲5.24
Dashboard /wp-admin2,218 ▲385.62 ▼0.0494.41 ▲7.8042.86 ▼0.86
Posts /wp-admin/edit.php2,120 ▲202.02 ▼0.0233.27 ▼3.3234.34 ▼1.49
Add New Post /wp-admin/post-new.php1,543 ▲1523.56 ▲0.47633.43 ▼64.0051.26 ▼5.32
Media Library /wp-admin/upload.php1,420 ▲204.24 ▼0.0295.95 ▼4.7843.53 ▼1.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/popup-maker-wp/com/view/templates_content.php
    • > /wp-content/plugins/popup-maker-wp/com/view/sgpm_support_content.php
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant SGPM_UTM_SOURCE_URL - assumed 'SGPM_UTM_SOURCE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/popup-maker-wp/com/view/templates_content.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/popup-maker-wp/com/view/sgpm_api_credentials_content.php:4
    • > PHP Warning
      Use of undefined constant SGPM_SERVICE_URL - assumed 'SGPM_SERVICE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/popup-maker-wp/com/view/templates_content.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/popup-maker-wp/com/view/settings_content.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/popup-maker-wp/config.php:5
    • > PHP Warning
      Use of undefined constant SGPM_IMG_URL - assumed 'SGPM_IMG_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/popup-maker-wp/com/view/templates_content.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
10 plugin tags: iframe popup, optin, popup maker, pop up, video popup...

popup-maker-wp/popup-maker-api.php 85% from 13 tests

The main PHP file in "Popup Maker - Responsive popup, Exit Intent Pop up, Email Optins, Autoresponder & More" ver. 1.2.8 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 172 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("popup-maker-wp.php" instead of "popup-maker-api.php")

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
Success! There were no dangerous files found in this plugin3,297 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP173441481,969
CSS616830957
JavaScript69630371

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity27.56
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods98
▷ Static methods3434.69%
▷ Public methods8081.63%
▷ Protected methods00.00%
▷ Private methods1818.37%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants1794.44%
▷ Class constants15.56%
▷ Public constants1100.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
2 PNG files occupy 0.81MB with 0.29MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/popup-maker-templates-black-friday.png821.86KB233.25KB▼ 71.62%
public/images/popup-maker-logo-glow.png8.73KB9.13KB0.00%