84% newsletter-popupmaker

Code Review | Popup Maker Addon for Newsletter

WordPress plugin Popup Maker Addon for Newsletter scored84%from 54 tests.

About plugin

  • Plugin page: newsletter-popupm...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Nov 12, 2020
  • Latest release: Aug 31, 2021
  • Number of updates: 11
  • Update frequency: every 42.1 days
  • Top authors: satollo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,475 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.01ms] Passed 4 tests

An overview of server-side resources used by Popup Maker Addon for Newsletter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0246.79 ▲8.96
Dashboard /wp-admin3.32 ▲0.0244.31 ▼7.25
Posts /wp-admin/edit.php3.38 ▲0.0142.06 ▼5.27
Add New Post /wp-admin/post-new.php5.91 ▲0.0191.51 ▼9.88
Media Library /wp-admin/upload.php3.25 ▲0.0134.00 ▼1.65

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Popup Maker Addon for Newsletter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.07 ▼0.501.74 ▲0.1342.83 ▲2.30
Dashboard /wp-admin2,195 ▲215.51 ▼0.2185.18 ▼0.8341.60 ▼3.16
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0136.57 ▲2.6834.29 ▼1.75
Add New Post /wp-admin/post-new.php1,529 ▲323.81 ▲0.78666.64 ▲47.2652.15 ▼8.83
Media Library /wp-admin/upload.php1,403 ▲34.16 ▼0.10111.37 ▲12.0147.37 ▲2.87

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 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/newsletter-popupmaker/popupmaker.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'NewsletterAddon' not found in wp-content/plugins/newsletter-popupmaker/plugin.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: popup, subscription, newsletter

newsletter-popupmaker/popupmaker.php 92% from 13 tests

The main PHP file in "Popup Maker Addon for Newsletter" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("newsletter-popupmaker.php" instead of "popupmaker.php")

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
Everything looks great! No dangerous files found in this plugin96 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.22
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions5100.00%
▷ Global constants00.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
PNG images were not found in this plugin