83% jsl-exit-intent-popup

Code Review | JSL Exit Intent Popup

WordPress plugin JSL Exit Intent Popupscored 83% from 54 tests.

About plugin

  • Plugin page: jsl-exit-intent-p...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.4
  • WordPress version: 6.3.1
  • First release: Apr 24, 2020
  • Latest release: May 1, 2020
  • Number of updates: 30
  • Update frequency: every 0.3 days
  • Top authors: janiq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 514 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by JSL Exit Intent Popup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0536.65 ▼5.61
Dashboard /wp-admin3.33 ▲0.0245.44 ▼3.10
Posts /wp-admin/edit.php3.38 ▲0.0248.20 ▼0.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.98 ▼22.80
Media Library /wp-admin/upload.php3.25 ▲0.0233.74 ▼1.65

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by JSL Exit Intent Popup
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲9314.47 ▲0.021.78 ▲0.2641.99 ▼3.41
Dashboard /wp-admin2,206 ▲215.91 ▲0.99103.11 ▼9.5441.08 ▼2.28
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0534.99 ▼4.5031.36 ▼4.85
Add New Post /wp-admin/post-new.php1,534 ▲1723.50 ▲5.95677.47 ▲71.8256.10 ▲2.65
Media Library /wp-admin/upload.php1,388 ▲64.19 ▼0.0594.16 ▼6.0342.48 ▲0.67

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jsl-exit-intent-popup/jsl_customizer_settings.php:132

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)
There were no browser issues found

Optimizations

Plugin configuration 90% 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:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === JSL Exit Intent Popup=== )
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

jsl-exit-intent-popup/jsl_exit_intent_popup.php 92% from 13 tests

"JSL Exit Intent Popup" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("jsl-exit-intent-popup.php" instead of "jsl_exit_intent_popup.php")

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
Everything looks great! No dangerous files found in this plugin160 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32529150
JavaScript10010

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
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
PNG images were not found in this plugin