84% simple-exit-popup

Code Review | Simple exit popup

WordPress plugin Simple exit popup scored84%from 54 tests.

About plugin

  • Plugin page: simple-exit-popup
  • Plugin version: 1.4
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jun 23, 2020
  • Latest release: Dec 1, 2022
  • Number of updates: 9
  • Update frequency: every 99.0 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /893 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.02ms] Passed 4 tests

Server-side resources used by Simple exit popup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.90 ▲1.85
Dashboard /wp-admin3.37 ▲0.0748.30 ▲3.47
Posts /wp-admin/edit.php3.49 ▲0.1344.65 ▼1.51
Add New Post /wp-admin/post-new.php5.95 ▲0.0780.58 ▼7.90
Media Library /wp-admin/upload.php3.30 ▲0.0737.63 ▲4.78
Simple exit popup /wp-admin/options-general.php?page=simple-exit-popup3.3141.20

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: 1 new table, 7 new options
New tables
wp_sepopups
New WordPress options
widget_recent-posts
theysaidso_admin_options
simple-exit-popup
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple exit popup
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲11713.38 ▼1.239.20 ▲7.5045.48 ▲3.82
Dashboard /wp-admin2,199 ▲225.53 ▼0.1384.91 ▼5.8939.98 ▲1.26
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0232.88 ▼3.1734.61 ▼5.97
Add New Post /wp-admin/post-new.php1,529 ▼223.09 ▼0.06645.68 ▼22.1354.26 ▲1.42
Media Library /wp-admin/upload.php1,407 ▲104.21 ▼0.03108.85 ▲8.5446.73 ▲2.73
Simple exit popup /wp-admin/options-general.php?page=simple-exit-popup8932.0025.3428.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/simple-exit-popup/pages/image-management-add.php
    • > /wp-content/plugins/simple-exit-popup/simple-exit-popup.php
    • > /wp-content/plugins/simple-exit-popup/pages/image-management-edit.php
    • > /wp-content/plugins/simple-exit-popup/pages/image-management-show.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: iframe, widget, plugin

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

The main PHP script in "Simple exit popup" version 1.4 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,277 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP714134847
JavaScript2261249
PO File1427098
CSS2111483

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.26
Average class complexity10.67
▷ Minimum class complexity8.00
▷ Maximum class complexity13.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods1995.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin