84% optimum-exit-popup

Code Review | Optimum Exit Popup

WordPress plugin Optimum Exit Popup scored84%from 54 tests.

About plugin

  • Plugin page: optimum-exit-popup
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0+
  • WordPress version: 6.3.1
  • First release: Jan 1, 2022
  • Latest release: Feb 14, 2022
  • Number of updates: 14
  • Update frequency: every 78.3 days
  • Top authors: sajiddesigner (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,099 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Optimum Exit Popup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0339.44 ▼9.92
Dashboard /wp-admin3.37 ▼0.0146.66 ▼10.17
Posts /wp-admin/edit.php3.42 ▲0.0350.72 ▲6.08
Add New Post /wp-admin/post-new.php5.95 ▲0.0394.90 ▼10.60
Media Library /wp-admin/upload.php3.29 ▲0.0335.02 ▼1.68

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Optimum Exit Popup
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲17613.96 ▼0.445.22 ▲3.3242.49 ▲0.23
Dashboard /wp-admin2,225 ▲345.83 ▼0.05104.61 ▲6.2947.19 ▲10.46
Posts /wp-admin/edit.php2,105 ▲132.03 ▼0.0141.11 ▼0.0134.27 ▲0.22
Add New Post /wp-admin/post-new.php1,546 ▲1823.15 ▲5.19603.07 ▼24.5354.22 ▲0.82
Media Library /wp-admin/upload.php1,398 ▲134.22 ▼0.03101.23 ▼2.5943.11 ▲1.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% 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)
Good news, no errors were detected

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 fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/optimum-exit-popup/inc/popup.php:73
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/optimum-exit-popup/inc/popup-settings.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: popup, exit popup, lighweight popup, easy exit popup

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

Analyzing the main PHP file in "Optimum Exit Popup" version 1.1.2
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 278 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected416 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33721226
CSS170190

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions12
▷ Named functions12100.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
No PNG images were found in this plugin