84% popper

Code Review | Popup with exit intent, scroll triggered and anchor click for opt-ins, lead gen & more

WordPress plugin Popup with exit intent, scroll triggered and anchor click for opt-ins, lead gen & more scored84%from 54 tests.

About plugin

  • Plugin page: popper
  • Plugin version: 0.5.4
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 14, 2021
  • Latest release: Aug 21, 2023
  • Number of updates: 49
  • Update frequency: every 13.8 days
  • Top authors: tropicalista (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /3,682 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.45MB] [CPU: ▲2.40ms] Passed 4 tests

Analyzing server-side resources used by Popup with exit intent, scroll triggered and anchor click for opt-ins, lead gen & more
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.5039.64 ▲2.15
Dashboard /wp-admin3.77 ▲0.4749.69 ▼0.84
Posts /wp-admin/edit.php3.82 ▲0.4747.68 ▲0.27
Add New Post /wp-admin/post-new.php6.34 ▲0.4597.37 ▲9.21
Media Library /wp-admin/upload.php3.63 ▲0.4042.41 ▲8.00
Add New /wp-admin/post-new.php?post_type=popper6.3384.99
Popups /wp-admin/edit.php?post_type=popper3.7442.17

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Popup with exit intent, scroll triggered and anchor click for opt-ins, lead gen & more
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.24 ▼1.321.55 ▼0.3842.24 ▲1.23
Dashboard /wp-admin2,230 ▲595.82 ▲0.9295.64 ▼9.9440.63 ▼8.24
Posts /wp-admin/edit.php2,116 ▲272.01 ▼0.0437.56 ▲1.3231.41 ▼1.89
Add New Post /wp-admin/post-new.php6,386 ▲4,86929.86 ▲12.22893.62 ▲214.2738.01 ▼21.17
Media Library /wp-admin/upload.php1,415 ▲244.21 ▲0.0498.68 ▼5.0340.13 ▼4.30
Add New /wp-admin/post-new.php?post_type=popper1,54417.68900.1836.23
Popups /wp-admin/edit.php?post_type=popper1,1281.9633.0228.68

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/popper/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/popper/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/popper/includes/class-rest.php:13
    • > PHP Warning
      require_once(wp-content/plugins/popper/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/popper/vendor/appsero/client/.php-cs-fixer.dist.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

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
7 plugin tags: popup builder, pop up, popup, wordpress popup block, popup maker...

popper/popper.php Passed 13 tests

The primary PHP file in "Popup with exit intent, scroll triggered and anchor click for opt-ins, lead gen & more" version 0.5.4 is used by WordPress to initiate all plugin functionality
52 characters long description:
Popup builder with exit-intent powered by Gutenberg.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected3,705 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP217091,2582,956
JSON1100329
Markdown1820255
PO File15053129
YAML16032
CSS2002
JavaScript2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity37.64
▷ Minimum class complexity1.00
▷ Maximum class complexity107.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods153
▷ Static methods3019.61%
▷ Public methods11675.82%
▷ Protected methods63.92%
▷ Private methods3120.26%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected