84% holler-box

Code Review | Fast & Effective Popups & Lead-Generation for WordPress - HollerBox

WordPress plugin Fast & Effective Popups & Lead-Generation for WordPress - HollerBox scored84%from 54 tests.

About plugin

  • Plugin page: holler-box
  • Plugin version: 2.3.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 6, 2017
  • Latest release: Oct 10, 2023
  • Number of updates: 93
  • Update frequency: every 24.9 days
  • Top authors: scottopolis (52.69%)trainingbusinesspros (48.39%)

Code review

54 tests

User reviews

31 reviews

Install metrics

5,000+ active /150,397 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.08ms] Passed 4 tests

A check of server-side resources used by Fast & Effective Popups & Lead-Generation for WordPress - HollerBox
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1141.77 ▼3.93
Dashboard /wp-admin3.39 ▲0.0951.54 ▲0.16
Posts /wp-admin/edit.php3.50 ▲0.1547.81 ▼1.42
Add New Post /wp-admin/post-new.php6.02 ▲0.1389.39 ▼13.57
Media Library /wp-admin/upload.php3.31 ▲0.0839.07 ▼1.40
Settings /wp-admin/edit.php?post_type=hollerbox&page=hollerbox3.2936.83
Reports /wp-admin/edit.php?post_type=hollerbox&page=hollerbox_reports3.2734.38

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
holler_previous_updates
widget_recent-comments
wp_hollerbox_stats_table_version
widget_recent-posts
hollerbox_settings
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Fast & Effective Popups & Lead-Generation for WordPress - HollerBox
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲14713.27 ▼1.114.06 ▲2.0643.07 ▼1.52
Dashboard /wp-admin2,258 ▲705.89 ▲1.01106.67 ▼3.3043.63 ▲3.42
Posts /wp-admin/edit.php2,141 ▲522.03 ▼0.0035.80 ▼8.0631.86 ▼9.28
Add New Post /wp-admin/post-new.php1,566 ▲3323.47 ▲0.20685.45 ▲1.3361.18 ▲2.89
Media Library /wp-admin/upload.php1,444 ▲594.15 ▼0.05110.85 ▼2.7446.68 ▼0.71
Settings /wp-admin/edit.php?post_type=hollerbox&page=hollerbox1,0643.3054.6544.01
Reports /wp-admin/edit.php?post_type=hollerbox&page=hollerbox_reports8222.6143.4623.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 9 options
    • holler_previous_updates
    • wp_hollerbox_stats_table_version
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • hollerbox_settings
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=hollerbox&page=hollerbox_reports
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28609 "jQuery.Deferred exception: Unexpected token '\u003C', \"\u003Cdiv id=\"e\"... is not valid JSON" "SyntaxError: Unexpected token '\u003C', \"\u003Cdiv id=\"e\"... is not valid JSON" undefined
    • > GET request to /wp-admin/edit.php?post_type=hollerbox&page=hollerbox_reports
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28721 Uncaught SyntaxError: Unexpected token '

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: optin, popup, popups, email, marketing

holler-box/holler-box.php Passed 13 tests

Analyzing the main PHP file in "Fast & Effective Popups & Lead-Generation for WordPress - HollerBox" version 2.3.4.1
81 characters long description:
Powerful Popups & Lead Generation for Small Businesses & Agencies using WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected18,666 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript171,8095,6168,093
Sass4867463,666
CSS5111143,582
PHP141,0531,2293,132
PO File182170193

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity33.85
▷ Minimum class complexity3.00
▷ Maximum class complexity127.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods178
▷ Static methods1810.11%
▷ Public methods15788.20%
▷ Protected methods137.30%
▷ Private methods84.49%
Functions32
▷ Named functions39.38%
▷ Anonymous functions2990.62%
Constants10
▷ Global constants440.00%
▷ Class constants660.00%
▷ Public constants6100.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
14 PNG files occupy 15.99MB with 11.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/default/clothes.png1,689.50KB401.07KB▼ 76.26%
assets/img/default/shopping.png1,458.54KB455.55KB▼ 68.77%
assets/img/default/woman-shopping.png1,490.95KB459.13KB▼ 69.21%
assets/img/default/man-thumbs-up.png1,366.87KB483.08KB▼ 64.66%
assets/img/default/woman-working.png1,309.46KB414.04KB▼ 68.38%