83% popups-for-divi

Code Review | Popups for Divi

WordPress plugin Popups for Divi scored83%from 54 tests.

About plugin

  • Plugin page: popups-for-divi
  • Plugin version: 3.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 9, 2018
  • Latest release: Mar 6, 2023
  • Number of updates: 64
  • Update frequency: every 29.4 days
  • Top authors: stracker.phil (98.44%)Otto42 (3.13%)

Code review

54 tests

User reviews

333 reviews

Install metrics

100,000+ active /567,097 total downloads

Benchmarks

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
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼6.43ms] Passed 4 tests

Analyzing server-side resources used by Popups for Divi
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1842.46 ▼8.23
Dashboard /wp-admin3.48 ▲0.1847.17 ▼0.01
Posts /wp-admin/edit.php3.60 ▲0.2445.10 ▼2.29
Add New Post /wp-admin/post-new.php6.06 ▲0.1780.23 ▼15.20
Media Library /wp-admin/upload.php3.41 ▲0.1736.18 ▲4.85

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
dm_pfd_data
dm_core_notices

Browser metrics Passed 4 tests

An overview of browser requirements for Popups for Divi
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲19713.77 ▼0.8210.58 ▲8.7546.78 ▲6.28
Dashboard /wp-admin2,251 ▲715.58 ▼0.0582.63 ▼6.5246.59 ▲2.13
Posts /wp-admin/edit.php2,100 ▲32.01 ▲0.0335.75 ▼1.5933.23 ▼3.51
Add New Post /wp-admin/post-new.php1,526 ▼122.94 ▼0.24692.06 ▲6.4352.64 ▼4.13
Media Library /wp-admin/upload.php1,400 ▼04.27 ▲0.0698.46 ▼1.7243.53 ▼3.01

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/popups-for-divi/constants.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/popups-for-divi/includes/admin/templates/onboarding.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
3 plugin tags: divi, marketing, popup

popups-for-divi/plugin.php 77% from 13 tests

The main PHP file in "Popups for Divi" ver. 3.0.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/lang")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("popups-for-divi.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,470 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP193241,0351,427
PO File16637
JavaScript4004
CSS2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions39
▷ Named functions39100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.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