88% ez-popup-manager

Code Review | EZ Popup Manager

WordPress plugin EZ Popup Manager scored 88% from 54 tests.

About plugin

  • Plugin page: ez-popup-manager
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.6
  • WordPress version: 5.8.1
  • First release: Aug 5, 2013
  • Latest release: Aug 12, 2013
  • Number of updates: 18
  • Update frequency: every 0.4 days
  • Top authors: darrenchow (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 2,248 total downloads


Plugin footprint Passed 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.03MB] [CPU: ▼143.50ms] Passed 4 tests

Analyzing server-side resources used by EZ Popup Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.71 ▼0.0124.79 ▼1.33
Dashboard /wp-admin3.11 ▲0.0647.06 ▼2.07
Posts /wp-admin/edit.php3.16 ▲0.0643.46 ▼2.85
Add New Post /wp-admin/post-new.php5.47 ▲0.0392.84 ▼567.74
Media Library /wp-admin/upload.php3.05 ▲0.0533.15 ▲2.82
Popup parameters /wp-admin/options-general.php?page=ez_popup_manager3.0026.82

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for EZ Popup Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲11215.80 ▲0.169.22 ▼0.9446.43 ▲1.01
Dashboard /wp-admin2,975 ▲416.02 ▲0.09138.88 ▼14.82106.29 ▼4.27
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0061.32 ▼9.2288.13 ▲7.78
Add New Post /wp-admin/post-new.php1,675 ▲6018.87 ▼2.62388.57 ▲98.83111.53 ▲1.97
Media Library /wp-admin/upload.php1,812 ▲55.02 ▼0.03153.60 ▼9.19123.66 ▲9.63
Popup parameters /wp-admin/options-general.php?page=ez_popup_manager1,7703.86104.94105.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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
Smoke test failed, please fix the following
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ez_popup_manager
    • > Notice in wp-content/plugins/ez-popup-manager/index.php+78
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=ez_popup_manager
    • > User deprecated in wp-includes/functions.php+5495
    wp_editor() was called with an argument that is deprecated since version 3.9.0! TinyMCE editor IDs cannot have brackets.

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ez-popup-manager/index.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: cookie, plugin, message, lightbox, popup...

ez-popup-manager/index.php 92% from 13 tests

The main PHP script in "EZ Popup Manager" version 1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ez-popup-manager.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected463 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PO File4594187

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/images/spm-close-icon.png1.64KB1.28KB▼ 22.06%