68% exit-pop

Code Review | Wordpress Exit Pop

WordPress plugin Wordpress Exit Pop scored 68% from 54 tests.

About plugin

  • Plugin page: exit-pop
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 6.3.1
  • First release: May 28, 2014
  • Latest release: May 5, 2019
  • Number of updates: 305
  • Update frequency: every 5.9 days
  • Top authors: storeya (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

60+ active / 12,657 total downloads

Benchmarks

Plugin footprint 65% from 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.95MB] [CPU: ▼31.91ms] Passed 4 tests

An overview of server-side resources used by Wordpress Exit Pop
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.94 ▼6.11
Dashboard /wp-admin2.99 ▼0.3128.10 ▼19.31
Posts /wp-admin/edit.php3.00 ▼0.3624.18 ▼23.48
Add New Post /wp-admin/post-new.php2.99 ▼2.8922.13 ▼75.05
Media Library /wp-admin/upload.php3.00 ▼0.2320.39 ▼9.79
StoreYa Exit Pop /wp-admin/options-general.php?page=storeya-exit-pop3.0024.98

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Wordpress Exit Pop
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5514.33 ▲0.081.64 ▼0.5042.11 ▼13.75
Dashboard /wp-admin2,218 ▲335.84 ▲0.02104.13 ▲0.9939.74 ▼4.69
Posts /wp-admin/edit.php2,100 ▲112.02 ▲0.0239.44 ▼1.1936.62 ▲0.36
Add New Post /wp-admin/post-new.php1,525 ▼2117.67 ▼5.41592.93 ▼13.7048.53 ▼11.78
Media Library /wp-admin/upload.php1,400 ▲184.24 ▲0.0599.35 ▲1.7042.54 ▼1.21
StoreYa Exit Pop /wp-admin/options-general.php?page=storeya-exit-pop8432.1526.5432.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/exit-pop/storeya-exit-pop.php+138
    Undefined variable: sep_domain
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=storeya-exit-pop
    • > Notice in wp-content/plugins/exit-pop/storeya-exit-pop.php+138
    Undefined variable: sep_domain
    • > GET request to /wp-admin/options-general.php?page=storeya-exit-pop
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=storeya-exit-pop
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/exit-pop/storeya-exit-pop.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (27 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

exit-pop/storeya-exit-pop.php 92% from 13 tests

The primary PHP file in "Wordpress Exit Pop" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("exit-pop.php" instead of "storeya-exit-pop.php")

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
Good job! No executable or dangerous file extensions detected114 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11314114

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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%
Functions8
▷ Named functions8100.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
2 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lock.png0.73KB0.91KB0.00%
storeya_exit_pop.png82.31KB31.07KB▼ 62.25%