99% exit-popups

Code Review | Exit Popups

WordPress plugin Exit Popups scored 99% from 54 tests.

About plugin

  • Plugin page: exit-popups
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Apr 17, 2019
  • Latest release: Apr 17, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: singinglark (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 296 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼141.82ms] Passed 4 tests

Server-side resources used by Exit Popups
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1745.79 ▲23.55
Dashboard /wp-admin3.13 ▲0.0761.38 ▲7.98
Posts /wp-admin/edit.php3.17 ▲0.0661.06 ▼0.50
Add New Post /wp-admin/post-new.php5.49 ▲0.05113.22 ▼594.26
Media Library /wp-admin/upload.php3.07 ▲0.0747.78 ▲19.50
Categories /wp-admin/edit-tags.php?taxonomy=exit_popups_categories&post_type=exit_popups3.0742.75
All Exit Popups /wp-admin/edit.php?post_type=exit_popups3.1051.56
Add New /wp-admin/post-new.php?post_type=exit_popups3.1872.25

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Exit Popups
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,874 ▲27816.70 ▲1.2021.79 ▲10.2551.03 ▼2.27
Dashboard /wp-admin3,007 ▲795.95 ▼0.09156.65 ▼54.52123.78 ▼0.62
Posts /wp-admin/edit.php2,779 ▲402.73 ▲0.0066.78 ▼21.9599.46 ▼16.02
Add New Post /wp-admin/post-new.php1,641 ▼4221.45 ▲5.24322.10 ▼86.34116.34 ▼4.13
Media Library /wp-admin/upload.php1,847 ▲405.01 ▲0.02167.63 ▼10.80129.64 ▲2.61
Categories /wp-admin/edit-tags.php?taxonomy=exit_popups_categories&post_type=exit_popups1,7792.4170.6482.21
All Exit Popups /wp-admin/edit.php?post_type=exit_popups1,4482.6275.3480.55
Add New /wp-admin/post-new.php?post_type=exit_popups3,3019.03260.52163.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tested up to: Invalid version format
  • Requires at least: Invalid version format
You can take inspiration from this readme.txt

exit-popups/exit-popup.php 85% from 13 tests

"Exit Popups" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("exit-popups.php" instead of "exit-popup.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin331 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript25358206
PHP1271097
CSS13028

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.10
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%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin