68% popunder-popup

Code Review | Popunder Popup

WordPress plugin Popunder Popup scored68%from 54 tests.

About plugin

  • Plugin page: popunder-popup
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: May 15, 2014
  • Latest release: Dec 1, 2022
  • Number of updates: 27
  • Update frequency: every 115.6 days
  • Top authors: gopi_plus (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

200+ active /20,103 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Popunder Popup
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.11 ▼1.29
Dashboard /wp-admin3.37 ▲0.0249.02 ▼12.96
Posts /wp-admin/edit.php3.48 ▲0.1346.97 ▼6.36
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.24 ▼17.19
Media Library /wp-admin/upload.php3.29 ▲0.0634.74 ▼0.98
Popunder popup /wp-admin/options-general.php?page=popunder-popup3.3037.50

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: 1 new table, 8 new options
New tables
wp_popunderpopup
New WordPress options
db_upgraded
widget_recent-posts
popunderpopup_session
widget_theysaidso_widget
can_compress_scripts
popunderpopup_popup_db
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Popunder Popup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲12613.44 ▼1.127.91 ▲6.4743.18 ▲5.35
Dashboard /wp-admin2,202 ▲285.63 ▲0.0582.32 ▼4.2538.92 ▼6.12
Posts /wp-admin/edit.php2,101 ▲12.00 ▲0.0337.58 ▲3.5431.20 ▼2.81
Add New Post /wp-admin/post-new.php1,528 ▼323.21 ▲0.17672.57 ▲9.6851.54 ▲1.70
Media Library /wp-admin/upload.php1,404 ▲74.19 ▲0.0092.85 ▼9.3541.58 ▼4.25
Popunder popup /wp-admin/options-general.php?page=popunder-popup9172.1537.3628.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_popunderpopup
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • popunderpopup_popup_db
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • popunderpopup_session

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 7× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/popunder-popup/popunder-popup.php
    • > /wp-content/plugins/popunder-popup/page/popunder-setting.php
    • > /wp-content/plugins/popunder-popup/classes/popunder-query.php
    • > /wp-content/plugins/popunder-popup/page/popunder-edit.php
    • > /wp-content/plugins/popunder-popup/classes/popunder-widget.php
    • > /wp-content/plugins/popunder-popup/page/popunder-show.php
    • > /wp-content/plugins/popunder-popup/page/popunder-add.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: height in wp-content/plugins/popunder-popup/classes/popunder-widget.php on line 35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/popunder-popup/classes/popunder-stater.php:9
    • > PHP Notice
      Undefined variable: width in wp-content/plugins/popunder-popup/classes/popunder-widget.php on line 34

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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: popup, popunder, pop-under

popunder-popup/popunder-popup.php 92% from 13 tests

The main file in "Popunder Popup" v. 3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 273 characters long)

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
Good job! No executable or dangerous file extensions detected1,268 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP1110658998
PO File289112208
JavaScript15148
SQL10014

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity8.75
▷ Minimum class complexity5.00
▷ Maximum class complexity13.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods12
▷ Static methods12100.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
PNG images were not found in this plugin