99% advanced-exit-popup

Code Review | Advanced Exit Popup

WordPress plugin Advanced Exit Popup scored 99% 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: 5.9.2
  • 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

60+ active / 2,628 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Advanced Exit Popup
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0556.42 ▼1.20
Dashboard /wp-admin3.46 ▲0.0546.72 ▲10.01
Posts /wp-admin/edit.php3.69 ▲0.0543.32 ▲2.11
Add New Post /wp-admin/post-new.php6.93 ▼0.05103.07 ▼1,226.54
Media Library /wp-admin/upload.php3.34 ▲0.0526.03 ▼3.54

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Advanced Exit Popup: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,983 ▲22916.82 ▲0.829.70 ▲2.861.91 ▼0.50
Dashboard /wp-admin2,940 ▲826.79 ▲0.58119.49 ▼16.76156.88 ▼4.70
Posts /wp-admin/edit.php2,742 ▲483.54 ▲0.2967.17 ▼0.03157.96 ▲19.61
Add New Post /wp-admin/post-new.php1,695 ▼1616.10 ▼4.65422.98 ▼37.28153.24 ▼8.18
Media Library /wp-admin/upload.php1,746 ▲485.89 ▲0.34126.14 ▼17.42195.42 ▲8.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 25 tag instead of maximum 10
Please take inspiration from this readme.txt

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

This is the main PHP file of "Advanced Exit Popup" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous 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
This plugin has no cyclomatic complexity issues
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
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%
images/wphostpk.png5.16KB2.73KB▼ 47.10%
screenshot-1.png92.60KB31.43KB▼ 66.05%
images/close.png0.84KB0.85KB0.00%