78% exit-intent

Code Review | Exit Intent

WordPress plugin Exit Intent scored78%from 54 tests.

About plugin

  • Plugin page: exit-intent
  • Plugin version: 1.1.32
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.0.0
  • WordPress version: 6.3.1
  • First release: Jun 7, 2017
  • Latest release: Apr 12, 2019
  • Number of updates: 268
  • Update frequency: every 2.5 days
  • Top authors: activeconvert (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /16,926 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.03ms] Passed 4 tests

A check of server-side resources used by Exit Intent
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.43 ▲0.07
Dashboard /wp-admin3.33 ▲0.0350.08 ▼2.79
Posts /wp-admin/edit.php3.38 ▲0.0246.55 ▼0.80
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.21 ▼14.75
Media Library /wp-admin/upload.php3.25 ▲0.0233.60 ▼1.78
Exit Intent /wp-admin/options-general.php?page=exit-intent3.2230.08

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Exit Intent
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.28 ▼0.081.79 ▲0.2243.84 ▲1.30
Dashboard /wp-admin2,210 ▲335.51 ▼0.0287.61 ▼1.9471.34 ▲33.67
Posts /wp-admin/edit.php2,110 ▲101.98 ▲0.0136.14 ▲1.7534.22 ▼1.71
Add New Post /wp-admin/post-new.php1,579 ▲5323.43 ▲0.42715.80 ▲29.9361.95 ▲3.39
Media Library /wp-admin/upload.php1,428 ▲314.18 ▼0.0297.13 ▼6.6477.07 ▲33.04
Exit Intent /wp-admin/options-general.php?page=exit-intent9112.0023.4727.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% 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 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/exit-intent/options.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/exit-intent/exit-intent.php:11

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 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This is an example exit intent popup), #2 (These are screenshots of member pages), #3 (This is a screenshot of the online form designer), #4 (This is a screenshot of email sequences), #5 (Example popup)
The official readme.txt is a good inspiration

exit-intent/exit-intent.php 92% from 13 tests

Analyzing the main PHP file in "Exit Intent" version 1.1.32
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 213 characters long)

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
Success! There were no dangerous files found in this plugin118 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2228118

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
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 functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
6 PNG files occupy 1.18MB with 0.67MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
activeconvert.png13.15KB5.61KB▼ 57.30%
ac-small-white.png0.82KB0.55KB▼ 32.66%
screenshot-2.png67.89KB25.01KB▼ 63.16%
screenshot-1.png641.19KB263.55KB▼ 58.90%
screenshot-3.png235.16KB64.78KB▼ 72.45%