78% popup-wp

Code Review | Popup - Popup Maker

WordPress plugin Popup - Popup Maker scored 78% from 54 tests.

About plugin

  • Plugin page: popup-wp
  • Plugin version: 1.2.52
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.0.0
  • WordPress version: 6.3.1
  • First release: Nov 29, 2016
  • Latest release: Apr 12, 2019
  • Number of updates: 385
  • Update frequency: every 2.3 days
  • Top authors: activeconvert (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active / 35,664 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Popup - Popup Maker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.52 ▲0.23
Dashboard /wp-admin3.33 ▲0.0344.68 ▼12.07
Posts /wp-admin/edit.php3.38 ▲0.0245.19 ▼3.82
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.38 ▼15.39
Media Library /wp-admin/upload.php3.25 ▲0.0240.17 ▲0.09
Popup WP /wp-admin/options-general.php?page=popup-wp3.2233.41

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Popup - Popup Maker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲5714.79 ▲0.191.76 ▼0.3746.42 ▲1.18
Dashboard /wp-admin2,237 ▲495.80 ▼0.10103.69 ▼22.9170.19 ▲12.60
Posts /wp-admin/edit.php2,117 ▲252.06 ▲0.0435.21 ▼5.0233.74 ▼0.56
Add New Post /wp-admin/post-new.php1,694 ▲15122.42 ▲3.93738.09 ▲107.6655.36 ▼1.94
Media Library /wp-admin/upload.php1,414 ▲264.22 ▲0.02106.84 ▼5.8249.11 ▲2.69
Popup WP /wp-admin/options-general.php?page=popup-wp9032.0323.9027.66

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/popup-wp/options.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/popup-wp/popup-wp.php:11

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 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (This is an example exit intent popup), #2 (These are screenshots of member pages), #3 (This is a screenshot of the online form designer), #4 (This is a screenshot of the contacts page)
Please take inspiration from this readme.txt

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

The principal PHP file in "Popup - Popup Maker" v. 1.2.52 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 233 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin118 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2228118

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.73MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png186.53KB48.57KB▼ 73.96%
screenshot-2.png67.89KB25.01KB▼ 63.16%
screenshot-3.png235.16KB64.78KB▼ 72.45%
activeconvert.png13.15KB5.61KB▼ 57.30%
screenshot-1.png243.93KB72.40KB▼ 70.32%