72% exit-popup-advanced

Code Review | VF Exit Popup your Fast & Secure Exit Popup for WordPress

WordPress plugin VF Exit Popup your Fast & Secure Exit Popup for WordPress scored72%from 54 tests.

About plugin

  • Plugin page: exit-popup-advanced
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Aug 20, 2021
  • Latest release: Jun 4, 2022
  • Number of updates: 3
  • Update frequency: every 96.0 days
  • Top authors: vikasratudi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /456 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.23MB] [CPU: ▼18.84ms] Passed 4 tests

A check of server-side resources used by VF Exit Popup your Fast & Secure Exit Popup for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0732.62 ▼13.02
Dashboard /wp-admin3.07 ▼0.2326.38 ▼19.02
Posts /wp-admin/edit.php3.21 ▼0.1431.37 ▼20.81
Add New Post /wp-admin/post-new.php5.45 ▼0.4467.67 ▼22.51
Media Library /wp-admin/upload.php3.14 ▼0.0926.36 ▼6.84
Exit Popup /wp-admin/admin.php?page=vfexitpopup3.0623.78
More /wp-admin/admin.php?page=vfexitpopup-more3.0629.80

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: 1 new table, 6 new options
New tables
wp_vfep_data
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for VF Exit Popup your Fast & Secure Exit Popup for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲15414.11 ▼0.2711.45 ▲8.6144.74 ▲1.03
Dashboard /wp-admin2,242 ▲514.88 ▼0.03115.11 ▲2.9142.83 ▼1.75
Posts /wp-admin/edit.php2,122 ▲332.06 ▲0.0235.94 ▲0.5133.03 ▼0.67
Add New Post /wp-admin/post-new.php1,545 ▲1223.42 ▲0.18669.39 ▼28.9359.15 ▲1.11
Media Library /wp-admin/upload.php1,427 ▲394.22 ▼0.02101.90 ▼7.1844.88 ▼1.03
Exit Popup /wp-admin/admin.php?page=vfexitpopup1,9576.83127.56101.26
More /wp-admin/admin.php?page=vfexitpopup-more8301.6926.0037.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vfexitpopup-more
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)

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
  • 5× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/exit-popup-advanced/uninstall.php
    • > /wp-content/plugins/exit-popup-advanced/inc/vfexitpopupstructure.php
    • > /wp-content/plugins/exit-popup-advanced/inc/vfexitpopupcomingsoon.php
    • > /wp-content/plugins/exit-popup-advanced/inc/db.php
    • > /wp-content/plugins/exit-popup-advanced/vfexitpopup.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant VFEXITPOPUP_PLUGIN_URL - assumed 'VFEXITPOPUP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/exit-popup-advanced/inc/vfexitpopupcomingsoon.php on line 9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Contributors: The plugin contributors field is not present
  • Tags: Too many tags (28 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

exit-popup-advanced/vfexitpopup.php 85% from 13 tests

The primary PHP file in "VF Exit Popup your Fast & Secure Exit Popup for WordPress" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("exit-popup-advanced.php" instead of "vfexitpopup.php")

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
Good job! No executable or dangerous file extensions detected4,237 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS31,552203,551
PHP611224434
JavaScript210115252

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions777.78%
▷ Anonymous functions222.22%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected