74% exit-intent-pop-ups-by-maxtraffic

Code Review | Exit Intent Popups & Promo Bars by MaxTraffic

WordPress plugin Exit Intent Popups & Promo Bars by MaxTraffic scored74%from 54 tests.

About plugin

  • Plugin page: exit-intent-pop-u...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.5.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2016
  • Latest release: Dec 14, 2017
  • Number of updates: 17
  • Update frequency: every 39.5 days
  • Top authors: MaxTraffic (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,079 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼32.05ms] Passed 4 tests

A check of server-side resources used by Exit Intent Popups & Promo Bars by MaxTraffic
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.22 ▼3.68
Dashboard /wp-admin3.04 ▼0.2723.42 ▼19.52
Posts /wp-admin/edit.php3.04 ▼0.3224.96 ▼26.63
Add New Post /wp-admin/post-new.php3.04 ▼2.8524.81 ▼72.81
Media Library /wp-admin/upload.php3.04 ▼0.1924.73 ▼9.25
Create /wp-admin/admin.php?page=maxtraffic-create-account3.0422.84
Logout /wp-admin/admin.php?page=maxtraffic-logout3.0425.48

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Exit Intent Popups & Promo Bars by MaxTraffic: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.34 ▼0.011.74 ▲0.0842.55 ▼3.23
Dashboard /wp-admin2,206 ▲265.55 ▼0.1182.47 ▼15.9357.06 ▲14.24
Posts /wp-admin/edit.php2,114 ▲141.97 ▼0.0433.55 ▼8.3935.24 ▼0.37
Add New Post /wp-admin/post-new.php1,551 ▲2523.08 ▼0.39755.98 ▲88.5761.29 ▲5.10
Media Library /wp-admin/upload.php1,414 ▲174.19 ▼0.0692.25 ▼7.4571.62 ▲28.52
Create /wp-admin/admin.php?page=maxtraffic-create-account8412.0323.5925.39
Logout /wp-admin/admin.php?page=maxtraffic-logout8702.1224.2025.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=maxtraffic-logout
    • > User deprecated in wp-includes/functions.php+5453
    Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
    • > GET request to /wp-admin/admin.php?page=maxtraffic-logout
    • > Notice in wp-content/plugins/exit-intent-pop-ups-by-maxtraffic/maxtraffic.php+343
    Undefined index: _wpnonce

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: There are too many tags (16 tag instead of maximum 10)
Please take inspiration from this readme.txt

exit-intent-pop-ups-by-maxtraffic/maxtraffic.php 92% from 13 tests

The main PHP script in "Exit Intent Popups & Promo Bars by MaxTraffic" version 1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("exit-intent-pop-ups-by-maxtraffic.php" instead of "maxtraffic.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
There were no executable files found in this plugin422 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP511534422

PHP code Passed 2 tests

An short overview of 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.42
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/maxtraffic-icon.png1.40KB0.47KB▼ 66.62%