78% exit-popup-free

Code Review | Exit Popup Free

WordPress plugin Exit Popup Free scored78%from 54 tests.

About plugin

  • Plugin page: exit-popup-free
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.4
  • WordPress version: 6.3.1
  • First release: Jan 13, 2020
  • Latest release: Jan 20, 2020
  • Number of updates: 8
  • Update frequency: every 1.1 days
  • Top authors: promoz73 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /568 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.99ms] Passed 4 tests

Server-side resources used by Exit Popup Free
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.06 ▲2.10
Dashboard /wp-admin3.36 ▲0.0645.25 ▼11.76
Posts /wp-admin/edit.php3.41 ▲0.0642.69 ▼3.93
Add New Post /wp-admin/post-new.php5.94 ▲0.0579.98 ▼14.30
Media Library /wp-admin/upload.php3.28 ▲0.0632.63 ▲2.02

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
epp_options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Exit Popup Free
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲17913.92 ▼0.769.40 ▲7.5842.66 ▼3.17
Dashboard /wp-admin2,210 ▲195.89 ▲0.85115.51 ▲9.3542.86 ▲3.40
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0536.84 ▼8.3732.39 ▼2.17
Add New Post /wp-admin/post-new.php1,539 ▼523.15 ▲5.13684.92 ▲80.1652.53 ▲1.73
Media Library /wp-admin/upload.php1,392 ▲14.24 ▲0.12108.99 ▲1.6147.72 ▲6.38
Exit Popup Free /wp-admin/exit-popup-promo.php260.440.0912.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • epp_options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/exit-popup-free/admin/admin-page.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/exit-popup-promo.php
    • > Network (severe)
    wp-admin/exit-popup-promo.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png)
The official readme.txt is a good inspiration

exit-popup-free/exit-popup-promo.php 85% from 13 tests

"Exit Popup Free" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 159 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("exit-popup-free.php" instead of "exit-popup-promo.php")

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 plugin287 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP21511175
PO File1151555
CSS10052
JavaScript1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png59.70KB27.52KB▼ 53.90%
assets/images/exit.png0.50KB0.50KB▼ 0.78%
screenshot-1.png43.81KB21.41KB▼ 51.14%
assets/images/banner.png18.94KB9.11KB▼ 51.89%