72% wp-popups-lite

Code Review | WP Popups - WordPress Popup builder

WordPress plugin WP Popups - WordPress Popup builder scored72%from 54 tests.

About plugin

  • Plugin page: wp-popups-lite
  • Plugin version: 2.1.5.5
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.3
  • WordPress version: 6.3.1
  • First release: Nov 27, 2019
  • Latest release: Oct 9, 2023
  • Number of updates: 55
  • Update frequency: every 25.7 days
  • Top authors: timersys (100%)

Code review

54 tests

User reviews

82 reviews

Install metrics

30,000+ active /513,384 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲2.54MB] [CPU: ▲8.34ms] Passed 4 tests

Server-side resources used by WP Popups - WordPress Popup builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.58 ▲2.0754.48 ▲7.13
Dashboard /wp-admin6.10 ▲2.7172.33 ▲10.94
Posts /wp-admin/edit.php6.15 ▲2.7574.02 ▲24.65
Add New Post /wp-admin/post-new.php8.62 ▲2.69107.22 ▼7.66
Media Library /wp-admin/upload.php5.96 ▲2.6960.11 ▲22.95
Addons /wp-admin/admin.php?page=wppopups-addons5.9659.68
Welcome to WPPopups /wp-admin/index.php?page=wppopups-getting-started5.9653.64
Settings /wp-admin/admin.php?page=wppopups-settings6.0156.18
Add New /wp-admin/admin.php?page=wppopups-builder6.6884.47
Tools /wp-admin/admin.php?page=wppopups-tools5.9661.05
Info /wp-admin/admin.php?page=wppopups-page5.9656.83
All Popups /wp-admin/admin.php?page=wppopups-overview6.0260.51

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 212 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
wppopups_version
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
wppopups_activated
widget_recent-posts
wppopups_preview_page
db_upgraded
wppopups_review

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Popups - WordPress Popup builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲19313.56 ▼0.7210.95 ▲9.0837.82 ▼5.22
Dashboard /wp-admin2,247 ▲695.52 ▼0.1988.09 ▼13.3140.15 ▲3.91
Posts /wp-admin/edit.php2,155 ▲521.98 ▲0.0037.94 ▼1.9234.83 ▼6.11
Add New Post /wp-admin/post-new.php1,559 ▲2223.20 ▲4.97669.05 ▲27.1552.39 ▼11.58
Media Library /wp-admin/upload.php1,459 ▲594.19 ▼0.0495.61 ▼6.0943.79 ▲0.83
Addons /wp-admin/admin.php?page=wppopups-addons1,4353.6953.8581.04
Welcome to WPPopups /wp-admin/index.php?page=wppopups-getting-started1,7993.3340.6878.29
Settings /wp-admin/admin.php?page=wppopups-settings1,1303.3344.1175.99
Add New /wp-admin/admin.php?page=wppopups-builder3,2899.41211.42110.05
Tools /wp-admin/admin.php?page=wppopups-tools1,0993.3041.2167.11
Info /wp-admin/admin.php?page=wppopups-page1,0263.1844.5748.70
All Popups /wp-admin/admin.php?page=wppopups-overview1,2603.3539.8781.30

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 10 options in the database
    • wppopups_preview_page
    • wppopups_activated
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • wppopups_review
    • can_compress_scripts
    • widget_theysaidso_widget
    • wppopups_version
    • widget_recent-posts

Smoke tests 25% 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
  • 83 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wppopups-overview
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 83 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wppopups-overview
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 0% 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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-popups-lite/src/vendor/mobiledetect/mobiledetectlib/export/exportToJSON.php
  • 51× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WPPopups_Field' not found in wp-content/plugins/wp-popups-lite/src/includes/fields/class-textarea.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPPopups_Field' not found in wp-content/plugins/wp-popups-lite/src/includes/fields/class-radio.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-popups-lite/src/includes/providers/class-optin-fields.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-popups-lite/src/includes/admin/class-tools.php:61
    • > PHP Fatal error
      Uncaught Error: Class 'WPPopups_Builder_Panel' not found in wp-content/plugins/wp-popups-lite/src/includes/admin/builder/panels/class-providers.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-popups-lite/src/includes/admin/class-addons.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'WPPopups_Field' not found in wp-content/plugins/wp-popups-lite/src/includes/fields/class-number.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/wp-popups-lite/src/includes/admin/overview/class-overview-table.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WPPopups_Builder_Panel' not found in wp-content/plugins/wp-popups-lite/src/includes/admin/builder/panels/class-settings.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-popups-lite/src/includes/admin/class-menu.php:22

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #4 (Popups Back end - appearance) image required
  • Tags: You are using too many tags: 34 tag instead of maximum 10
The official readme.txt is a good inspiration

wp-popups-lite/wp-popups-lite.php 85% from 13 tests

The main PHP file in "WP Popups - WordPress Popup builder" ver. 2.1.5.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")

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
No dangerous file extensions were detected61,634 lines of code in 164 files:
LanguageFilesBlank linesComment linesLines of code
PHP844,4788,18719,328
JSON90016,371
JavaScript261,9612,8919,979
CSS141,7362759,030
PO File71,4551,6003,679
SVG17022,843
Markdown61640384
XML10020

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity36.01
▷ Minimum class complexity1.00
▷ Maximum class complexity271.00
Average method complexity4.66
▷ Minimum method complexity1.00
▷ Maximum method complexity98.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes68
▷ Abstract classes68.82%
▷ Concrete classes6291.18%
▷ Final classes11.61%
Methods651
▷ Static methods7110.91%
▷ Public methods55384.95%
▷ Protected methods7711.83%
▷ Private methods213.23%
Functions116
▷ Named functions10691.38%
▷ Anonymous functions108.62%
Constants110
▷ Global constants98.18%
▷ Class constants10191.82%
▷ Public constants101100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
21 compressed PNG files occupy 0.41MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lite/assets/images/addon-icon-geolocation.png12.00KB12.62KB0.00%
src/assets/images/builder-default-arrow.png2.32KB2.49KB0.00%
lite/assets/images/addon-icon-post-submissions.png4.03KB4.14KB0.00%
src/assets/images/youtube-play.png5.76KB5.78KB0.00%
src/assets/images/flags.png17.42KB18.16KB0.00%