56% wp-popup-lite

Code Review | WP Popup Lite - Responsive popup plugin for WordPress

WordPress plugin WP Popup Lite - Responsive popup plugin for WordPress scored 56% from 54 tests.

About plugin

  • Plugin page: wp-popup-lite
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-5.7
  • WordPress version: 5.8.1
  • First release: Jun 6, 2017
  • Latest release: Apr 5, 2021
  • Number of updates: 16
  • Update frequency: every 87.4 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 6,968 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼175.44ms] Passed 4 tests

An overview of server-side resources used by WP Popup Lite - Responsive popup plugin for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.16 ▲0.3328.04 ▲5.78
Dashboard /wp-admin3.37 ▲0.3137.29 ▲0.32
Posts /wp-admin/edit.php3.42 ▲0.3138.58 ▲2.30
Add New Post /wp-admin/post-new.php5.65 ▲0.2173.57 ▼707.19
Media Library /wp-admin/upload.php3.23 ▲0.2226.33 ▲2.81
Add New Popup /wp-admin/admin.php?page=wpp-new-popup3.7529.88
Contact Form log /wp-admin/admin.php?page=wpp-cf-log3.2425.85
All Popups /wp-admin/admin.php?page=wpp3.2726.26
About /wp-admin/admin.php?page=wpp-about3.2423.95
Popup settings /wp-admin/admin.php?page=wpp-setting3.26150.36
Activate /wp-admin/admin.php?page=wpp-activation3.2021.26

Server storage [IO: ▲5.90MB] [DB: ▲0.02MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 141 new files
Database: 3 new tables, 3 new options
New tables
wp_popup_banners_form_log
wp_popup_banners_subscription_log
wp_popup_banners
New WordPress options
wpb_default_settings
wpb_typo_fonts
wpb_popup_fields

Browser metrics 75% from 4 tests

An overview of browser requirements for WP Popup Lite - Responsive popup plugin for WordPress
Please improve the following
  • Nodes: Limit the number of DOM nodes under 25,000 (currently 34,323 on /wp-admin/admin.php?page=wpp-new-popup)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,122 ▲51118.55 ▲3.199.86 ▲4.9875.98 ▼1.32
Dashboard /wp-admin3,222 ▲3267.85 ▲1.72163.24 ▲31.03200.55 ▲25.61
Posts /wp-admin/edit.php3,066 ▲3235.28 ▲2.0689.65 ▲24.45156.83 ▲14.94
Add New Post /wp-admin/post-new.php1,962 ▼1,96415.40 ▼3.90386.99 ▼101.84161.74 ▼10.36
Media Library /wp-admin/upload.php1,846 ▲946.30 ▲0.78122.08 ▼23.97205.04 ▲19.73
Add New Popup /wp-admin/admin.php?page=wpp-new-popup34,3237.87212.90204.25
Contact Form log /wp-admin/admin.php?page=wpp-cf-log1,6065.3783.64126.21
All Popups /wp-admin/admin.php?page=wpp1,6255.4279.66134.59
About /wp-admin/admin.php?page=wpp-about1,8409.25164.56216.77
Popup settings /wp-admin/admin.php?page=wpp-setting2,3145.4780.82147.64
Activate /wp-admin/admin.php?page=wpp-activation1,3435.0576.92116.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie tables detected upon uninstall: 3 tables
    • wp_popup_banners_subscription_log
    • wp_popup_banners_form_log
    • wp_popup_banners
  • This plugin does not fully uninstall, leaving 3 options in the database
    • wpb_popup_fields
    • wpb_typo_fonts
    • wpb_default_settings

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpp-new-popup
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/wp-popup-lite/inc/theme/theme-1/theme-1-fields.php+319
    Undefined variable: buildin_theme
  • 30 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpp-new-popup
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/wp-popup-lite/inc/theme/theme-1/theme-1-fields.php+319
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/admin.php?page=wpp-setting
    • > Warning in wp-content/plugins/wp-popup-lite/inc/backend/tabs/setting.php+87
    include(setting-fields/recaptcha-setting.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=wpp-setting
    • > Warning in wp-content/plugins/wp-popup-lite/inc/backend/tabs/setting.php+87
    include(): Failed opening 'setting-fields/recaptcha-setting.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/admin.php?page=wpp-activation
    • > Warning in wp-content/plugins/wp-popup-lite/wp-popup-lite.php+133
    include_once(inc/backend/cores/activate.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=wpp-activation
    • > Warning in wp-content/plugins/wp-popup-lite/wp-popup-lite.php+133
    include_once(): Failed opening 'inc/backend/cores/activate.php' for inclusion (include_path='.:/usr/share/php')

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 33× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/wp-popup-lite/inc/backend/popup-inner/popup-build-box/popup-build-field.php
    • > /wp-content/plugins/wp-popup-lite/inc/frontend/custom/custom-generator.php
    • > /wp-content/plugins/wp-popup-lite/inc/backend/tabs/header.php
    • > /wp-content/plugins/wp-popup-lite/inc/theme/theme-25/theme-25.php
    • > /wp-content/plugins/wp-popup-lite/inc/backend/cores/get_db_data.php
    • > /wp-content/plugins/wp-popup-lite/inc/theme/theme-31/theme-31.php
    • > /wp-content/plugins/wp-popup-lite/inc/backend/tabs/setting.php
    • > /wp-content/plugins/wp-popup-lite/inc/backend/popup-inner/popup-generator.php
    • > /wp-content/plugins/wp-popup-lite/inc/backend/tabs/manage-option.php
    • > /wp-content/plugins/wp-popup-lite/inc/backend/tabs/sidebar.php
  • 20× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-popup-lite/inc/theme/theme-24/theme-24-fields.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-popup-lite/inc/theme/theme-2/theme-2-fields.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-popup-lite/inc/theme/theme-1/theme-1-fields.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-popup-lite/inc/theme/theme-30/theme-30-fields.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-popup-lite/inc/backend/tabs/setting-fields/admin-notification-setting.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-popup-lite/inc/theme/theme-3/theme-3-fields.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-popup-lite/inc/backend/tabs/setting-fields/external-subscription-setting.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-popup-lite/inc/theme/theme-5/theme-5-fields.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-popup-lite/inc/backend/tabs/setting-fields/mail-setting.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-popup-lite/inc/frontend/custom/custom-generator-css.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpp-activation
    • > Javascript (severe) in unknown
    /wp-content/plugins/wp-popup-lite/js/wp-color-picker-alpha.js?ver=1.0.8 23:16 Uncaught ReferenceError: wpColorPickerL10n is not defined

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #5, #6, #7 in wp-popup-lite/assets to your readme.txt
The official readme.txt might help

wp-popup-lite/wp-popup-lite.php 92% from 13 tests

"WP Popup Lite - Responsive popup plugin for WordPress" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin33,959 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
CSS661756816,675
PHP5536251615,199
JavaScript31672461,520
SVG100565

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.82
Average class complexity54.67
▷ Minimum class complexity38.00
▷ Maximum class complexity85.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods63
▷ Static methods11.59%
▷ Public methods6095.24%
▷ Protected methods00.00%
▷ Private methods34.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
52 PNG files occupy 1.91MB with 0.74MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/social-link.png1.08KB0.41KB▼ 62.07%
css/images/ui-icons_cc0000_256x240.png4.52KB4.18KB▼ 7.56%
images/temp-1.png128.90KB43.88KB▼ 65.96%
images/submit.png1.34KB0.63KB▼ 53.13%
css/images/ui-icons_228ef1_256x240.png4.44KB4.17KB▼ 6.02%