73% wp-popup-builder

Code Review | WP Popup Builder - Popup Forms and Marketing Lead Generation

WordPress plugin WP Popup Builder - Popup Forms and Marketing Lead Generation scored73%from 54 tests.

About plugin

  • Plugin page: wp-popup-builder
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3.2
  • WordPress version: 6.3.1
  • First release: Jun 10, 2020
  • Latest release: Oct 14, 2023
  • Number of updates: 42
  • Update frequency: every 29.1 days
  • Top authors: themehunk (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

8,000+ active /171,412 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
The plugin installed gracefully, with no errors

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

Server-side resources used by WP Popup Builder - Popup Forms and Marketing Lead Generation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3045.93 ▲5.72
Dashboard /wp-admin3.60 ▲0.2651.13 ▼14.43
Posts /wp-admin/edit.php3.72 ▲0.3649.60 ▲6.52
Add New Post /wp-admin/post-new.php6.18 ▲0.3099.55 ▼1.30
Media Library /wp-admin/upload.php3.53 ▲0.3038.32 ▲0.71
ThemeHunk /wp-admin/admin.php?page=themehunk-plugins3.5438.83
Wp Popup Builder /wp-admin/admin.php?page=wppb3.5740.95

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 122 new files
Database: 1 new table, 6 new options
New tables
wp_wppb
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP Popup Builder - Popup Forms and Marketing Lead Generation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲19013.38 ▼0.979.67 ▲7.9543.87 ▲1.61
Dashboard /wp-admin2,259 ▲825.56 ▼0.0197.03 ▼0.0786.75 ▲45.42
Posts /wp-admin/edit.php2,176 ▲732.10 ▼0.0534.64 ▼5.1440.24 ▼0.11
Add New Post /wp-admin/post-new.php1,669 ▲14322.50 ▼0.45659.35 ▼20.07165.46 ▲114.86
Media Library /wp-admin/upload.php1,473 ▲764.12 ▼0.1299.31 ▼17.9282.56 ▲34.31
ThemeHunk /wp-admin/admin.php?page=themehunk-plugins1,2451.8438.6268.65
Wp Popup Builder /wp-admin/admin.php?page=wppb1,4713.7047.3691.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_wppb
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-popup-builder/admin/themehunk-menu/admin-menu.php on line 3
    • > PHP Warning
      include_once(THEMEHUNK_PDIRth-option/header.php): failed to open stream: No such file or directory in wp-content/plugins/wp-popup-builder/admin/themehunk-menu/th-option/tab-html.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-popup-builder/admin/themehunk-menu/th-option/sidebar.php:4
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/wp-popup-builder/admin/themehunk-menu/admin-menu.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-popup-builder/inc/wppb-help.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-popup-builder/admin/themehunk-menu/plugins-list.php:4
    • > PHP Warning
      include_once(): Failed opening 'THEMEHUNK_PDIRth-option/header.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-popup-builder/admin/themehunk-menu/th-option/tab-html.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-popup-builder/notify/notify-html.php:1
    • > PHP Warning
      Use of undefined constant THEMEHUNK_PDIR - assumed 'THEMEHUNK_PDIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-popup-builder/admin/themehunk-menu/th-option/tab-html.php on line 9
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin-install.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-popup-builder/admin/themehunk-menu/admin-menu.php on line 3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: popup builder, marketing, wp popup, popup, popup maker...

wp-popup-builder/wp-popup-builder.php 85% from 13 tests

"WP Popup Builder - Popup Forms and Marketing Lead Generation" version 1.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 618 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected10,846 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript63365643,893
CSS786593,470
PHP23575893,000
PO File1210216457
JSON10026

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity39.38
▷ Minimum class complexity6.00
▷ Maximum class complexity135.00
Average method complexity4.99
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods77
▷ Static methods1114.29%
▷ Public methods7496.10%
▷ Protected methods00.00%
▷ Private methods33.90%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
68 PNG files occupy 2.34MB with 1.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) img/search.png692.05KB0.00KB▼ 100.00%
img/paid/barber-thumb.png23.38KB9.36KB▼ 59.96%
(invalid) img/left-image-layout.png8.76KB0.00KB▼ 100.00%
img/paid/tasteofindia-thumb.png10.30KB10.52KB0.00%
img/layout-2.png9.56KB5.57KB▼ 41.77%