61% wordpress-popup

Code Review | Hustle - Email Marketing, Lead Generation, Optins, Popups

WordPress plugin Hustle - Email Marketing, Lead Generation, Optins, Popups scored61%from 54 tests.

About plugin

  • Plugin page: wordpress-popup
  • Plugin version: 7.8.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: May 19, 2011
  • Latest release: Oct 12, 2023
  • Number of updates: 1
  • Update frequency: every 365.0 days

Code review

54 tests

User reviews

836 reviews

Install metrics

100,000+ active /3,508,573 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲2.31MB] [CPU: ▲13.13ms] 75% from 4 tests

An overview of server-side resources used by Hustle - Email Marketing, Lead Generation, Optins, Popups
It is recommended to improve the following
  • RAM: The total memory usage must be kept under 10MB (currently 10.59MB on /wp-admin/admin.php?page=hustle_settings)
PageMemory (MB)CPU Time (ms)
Home /9.38 ▲5.9176.02 ▲40.10
Dashboard /wp-admin5.52 ▲2.2161.49 ▲14.30
Posts /wp-admin/edit.php5.65 ▲2.2966.27 ▲9.50
Add New Post /wp-admin/post-new.php8.50 ▲2.61104.32 ▲12.82
Media Library /wp-admin/upload.php5.37 ▲2.1350.80 ▲15.91
Tutorials /wp-admin/admin.php?page=hustle_tutorials10.0986.45
Integrations /wp-admin/admin.php?page=hustle_integrations10.2689.86
New social sharing /wp-admin/admin.php?page=hustle_sshare9.9971.85
New pop-up /wp-admin/admin.php?page=hustle_popup9.9970.44
Pop-ups /wp-admin/admin.php?page=hustle_popup_listing10.2982.56
New slide-in /wp-admin/admin.php?page=hustle_slidein9.9968.21
New embed /wp-admin/admin.php?page=hustle_embedded9.9967.57
Email Lists /wp-admin/admin.php?page=hustle_entries10.2780.67
Embeds /wp-admin/admin.php?page=hustle_embedded_listing10.2984.73
Settings /wp-admin/admin.php?page=hustle_settings10.59106.87

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 925 new files
Database: 5 new tables, 15 new options
New tables
wp_hustle_entries_meta
wp_hustle_entries
wp_hustle_modules_meta
wp_hustle_modules
wp_hustle_tracking
New WordPress options
hustle_aweber_current_page
widget_inc_opt_widget
db_upgraded
widget_recent-comments
hustle_migrations
widget_hustle_module_widget
hustle_activated_flag
can_compress_scripts
hustle_version
theysaidso_admin_options
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hustle - Email Marketing, Lead Generation, Optins, Popups
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲10114.40 ▼0.231.65 ▼0.1440.35 ▼0.28
Dashboard /wp-admin2,294 ▲1135.48 ▼0.2684.19 ▼23.5940.72 ▼1.75
Posts /wp-admin/edit.php2,198 ▲952.01 ▲0.0135.10 ▼9.0930.88 ▼7.47
Add New Post /wp-admin/post-new.php1,615 ▲8918.91 ▼4.10697.77 ▼41.7455.89 ▲0.84
Media Library /wp-admin/upload.php1,495 ▲954.24 ▲0.0798.22 ▲0.0341.35 ▲0.13
Tutorials /wp-admin/admin.php?page=hustle_tutorials1,4385.0481.21115.98
Integrations /wp-admin/admin.php?page=hustle_integrations1,8784.0866.7569.68
New social sharing /wp-admin/admin.php?page=hustle_sshare1,5434.8852.1041.04
New pop-up /wp-admin/admin.php?page=hustle_popup2,4714.8659.3698.06
Pop-ups /wp-admin/admin.php?page=hustle_popup_listing2,4404.5642.0492.57
New slide-in /wp-admin/admin.php?page=hustle_slidein2,4704.7461.0795.48
New embed /wp-admin/admin.php?page=hustle_embedded2,5034.7857.32103.03
Email Lists /wp-admin/admin.php?page=hustle_entries1,5954.6578.4955.68
Embeds /wp-admin/admin.php?page=hustle_embedded_listing2,4914.6346.9778.40
Settings /wp-admin/admin.php?page=hustle_settings4,2076.79212.8964.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall successfully, leaving 5 tables in the database
    • wp_hustle_entries
    • wp_hustle_entries_meta
    • wp_hustle_tracking
    • wp_hustle_modules
    • wp_hustle_modules_meta
  • This plugin did not uninstall successfully, leaving 15 options in the database
    • hustle_aweber_current_page
    • widget_theysaidso_widget
    • hustle_version
    • widget_recent-comments
    • widget_inc_opt_widget
    • hustle_database_version
    • widget_recent-posts
    • widget_hustle_module_widget
    • db_upgraded
    • theysaidso_admin_options
    • ...

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 6× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wordpress-popup/views/admin/commons/sui-wizard/elements/palette-accordion-content.php
    • > /wp-content/plugins/wordpress-popup/views/admin/commons/sui-wizard/tab-appearance/row-advanced/border-spacing-shadow/row-4-number-inputs.php
    • > /wp-content/plugins/wordpress-popup/views/admin/global/sui-components/sui-row.php
    • > /wp-content/plugins/wordpress-popup/views/admin/commons/sui-wizard/dialogs/add-platform-li.php
    • > /wp-content/plugins/wordpress-popup/views/admin/integrations/page-table-not-connected.php
    • > /wp-content/plugins/wordpress-popup/views/admin/global/sui-components/sui-settings-row.php
  • 4095× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wordpress-popup/inc/front/non-sshare-styles/general-12--content.php on line 15
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wordpress-popup/inc/front/non-sshare-styles/general-13--cta-container.php on line 57
    • > PHP Notice
      Undefined variable: advanced in wp-content/plugins/wordpress-popup/inc/front/non-sshare-styles/form-11--options-container.php on line 45
    • > PHP Notice
      Undefined variable: typography in wp-content/plugins/wordpress-popup/inc/front/non-sshare-styles/form-15--success-message.php on line 207
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wordpress-popup/inc/front/non-sshare-styles/general-03--layout-header.php on line 47
    • > PHP Notice
      Undefined variable: prefix_desktop in wp-content/plugins/wordpress-popup/inc/front/non-sshare-styles/general-12--content.php on line 308
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wordpress-popup/inc/front/non-sshare-styles/general-12--content.php on line 36
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wordpress-popup/inc/front/non-sshare-styles/general-17--close-button.php on line 13
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wordpress-popup/inc/front/non-sshare-styles/form-11--options-container.php on line 15
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wordpress-popup/inc/front/non-sshare-styles/form-10--submit.php on line 30

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=hustle_embedded_listing
    • > Security (warning) in unknown
    about:blank - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
Please take inspiration from this readme.txt

wordpress-popup/popover.php 85% from 13 tests

Analyzing the main PHP file in "Hustle - Email Marketing, Lead Generation, Optins, Popups" version 7.8.2
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wordpress-popup.php" instead of "popover.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected141,410 lines of code in 687 files:
LanguageFilesBlank linesComment linesLines of code
PHP61719,28330,578114,783
JSON110019,237
PO File12,6102,8985,245
JavaScript322893151,623
SVG200201
Markdown2440183
CSS222561138

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity22.55
▷ Minimum class complexity1.00
▷ Maximum class complexity280.00
Average method complexity3.66
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces16
Interfaces3
Traits0
Classes263
▷ Abstract classes145.32%
▷ Concrete classes24994.68%
▷ Final classes10.40%
Methods2,165
▷ Static methods31914.73%
▷ Public methods1,56972.47%
▷ Protected methods1366.28%
▷ Private methods46021.25%
Functions21
▷ Named functions838.10%
▷ Anonymous functions1361.90%
Constants147
▷ Global constants42.72%
▷ Class constants14397.28%
▷ Public constants143100.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
178 PNG files occupy 1.18MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/providers/mautic/images/logo.png14.87KB5.65KB▼ 62.01%
assets/images/slidein-north-active.png0.20KB0.20KB0.00%
assets/images/position-middle-active.png0.14KB0.14KB0.00%
assets/images/onboard-image@2x.png39.57KB22.18KB▼ 43.95%
lib/plugin-notice/assets/images/plugins-defender.png12.38KB5.52KB▼ 55.40%