89% advanced-exit-popup

Code Review | Advanced Exit Popup

WordPress plugin Advanced Exit Popup scored89%from 54 tests.

About plugin

  • Plugin page: advanced-exit-popup
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.4.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2017
  • Latest release: May 25, 2020
  • Number of updates: 15
  • Update frequency: every 80.4 days
  • Top authors: wphostpk (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /2,925 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.00MB] [CPU: ▼12.04ms] Passed 4 tests

This is a short check of server-side resources used by Advanced Exit Popup
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.70 ▼0.19
Dashboard /wp-admin3.32 ▼0.0348.22 ▼17.80
Posts /wp-admin/edit.php3.37 ▲0.0145.15 ▼8.10
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.06 ▼22.07
Media Library /wp-admin/upload.php3.24 ▲0.0138.92 ▲2.26

Server storage [IO: ▲0.37MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 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-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Exit Popup
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,934 ▲18813.71 ▼1.028.90 ▲7.0942.05 ▼0.96
Dashboard /wp-admin2,230 ▲505.84 ▲0.2587.74 ▼1.6641.10 ▲2.83
Posts /wp-admin/edit.php2,140 ▲372.26 ▲0.2638.66 ▼2.2735.79 ▼1.54
Add New Post /wp-admin/post-new.php1,555 ▲2823.12 ▲0.06693.52 ▲59.0437.45 ▼17.21
Media Library /wp-admin/upload.php1,435 ▲354.47 ▲0.29112.46 ▼0.3349.46 ▲3.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
Attributes that need to be fixed:
  • Tags: There are too many tags (25 tag instead of maximum 10)
The official readme.txt is a good inspiration

advanced-exit-popup/advanced-exit-popup.php 92% from 13 tests

The principal PHP file in "Advanced Exit Popup" v. 1.0.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin295 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP23812259
JavaScript20724
CSS20712

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.35MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png260.35KB132.90KB▼ 48.95%
screenshot-1.png92.60KB31.43KB▼ 66.05%
images/close.png0.84KB0.85KB0.00%
images/wphostpk.png5.16KB2.73KB▼ 47.10%