78% ultimate-popunder

Code Review | Ultimate PopUnder

WordPress plugin Ultimate PopUnder scored78%from 54 tests.

About plugin

  • Plugin page: ultimate-popunder
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Jun 5, 2017
  • Latest release: Aug 25, 2020
  • Number of updates: 13
  • Update frequency: every 90.5 days
  • Top authors: webmasterjunkie (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /6,072 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.02MB] [CPU: ▼8.93ms] Passed 4 tests

An overview of server-side resources used by Ultimate PopUnder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.39 ▲4.01
Dashboard /wp-admin3.34 ▼0.0146.39 ▼14.09
Posts /wp-admin/edit.php3.39 ▲0.0343.94 ▼5.20
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.25 ▼18.48
Media Library /wp-admin/upload.php3.26 ▲0.0335.52 ▲2.07
Ultimate PopUnder /wp-admin/options-general.php?page=ultimate_popunder3.2528.84
Add New /wp-admin/post-new.php?post_type=ultimate_popunder3.4053.64
PopUnders /wp-admin/edit.php?post_type=ultimate_popunder3.3035.60

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
_ultimate_popunder_version
theysaidso_admin_options

Browser metrics Passed 4 tests

Ultimate PopUnder: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14513.47 ▼0.888.39 ▲6.8041.91 ▲2.00
Dashboard /wp-admin2,229 ▲525.65 ▲0.0395.20 ▲6.9740.81 ▼4.93
Posts /wp-admin/edit.php2,128 ▲312.12 ▲0.1135.27 ▼1.6833.54 ▼1.22
Add New Post /wp-admin/post-new.php1,552 ▲2622.95 ▼0.12673.68 ▼19.6660.76 ▲8.56
Media Library /wp-admin/upload.php1,425 ▲224.31 ▲0.14105.55 ▲6.1645.55 ▼1.16
Ultimate PopUnder /wp-admin/options-general.php?page=ultimate_popunder9192.0021.8727.64
Add New /wp-admin/post-new.php?post_type=ultimate_popunder1,5842.6462.9872.35
PopUnders /wp-admin/edit.php?post_type=ultimate_popunder1,0951.9731.5528.88

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ultimate_popunder
    • > Notice in wp-content/plugins/ultimate-popunder/ultimate-popunder.php+112
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ultimate-popunder/ultimate-popunder.php
    • > /wp-content/plugins/ultimate-popunder/activate.php
    • > /wp-content/plugins/ultimate-popunder/uninstall.php
    • > /wp-content/plugins/ultimate-popunder/functions.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Donate link: Invalid url: "paypal.me/GriffithDesignsMD"
  • License uri: Invalid url: "LICENSE"
The official readme.txt might help

ultimate-popunder/ultimate-popunder.php Passed 13 tests

"Ultimate PopUnder" version 1.2.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
101 characters long description:
Be able to create any popunder AD for your site, and track the activity in 3rd party systems as well.

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
Success! There were no dangerous files found in this plugin522 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP47758397
JavaScript42911125

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.43
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin