Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▲5.20ms] Passed 4 tests
Server-side resources used by Popup Builder by OptinMonster - WordPress Popups for Optins, Email Newsletters and Lead Generation
Server-side resource usage in normal parameters
| Page | Memory (MB) | CPU Time (ms) |
|---|---|---|
| Home / | 3.58 ▲0.12 | 40.28 ▲0.08 |
| Dashboard /wp-admin | 3.61 ▲0.31 | 51.95 ▲3.30 |
| Posts /wp-admin/edit.php | 3.67 ▲0.31 | 54.82 ▲5.93 |
| Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 677.06 ▲589.73 |
| Media Library /wp-admin/upload.php | 3.47 ▲0.25 | 43.20 ▲11.50 |
| Integrations /wp-admin/admin.php?page=optin-monster-integrations | 3.51 | 38.84 |
| Campaigns /wp-admin/admin.php?page=optin-monster-campaigns | 3.48 | 40.12 |
| OptinMonster /wp-admin/admin.php?page=optin-monster-api-settings | 3.33 | 29.14 |
| University /wp-admin/admin.php?page=optin-monster-university | 3.48 | 37.11 |
| Subscribers /wp-admin/admin.php?page=optin-monster-monsterleads | 3.48 | 37.04 |
| Dashboard /wp-admin/admin.php?page=optin-monster-dashboard | 3.48 | 36.30 |
| Onboarding Wizard /wp-admin/admin.php?page=optin-monster-onboarding-wizard | 3.48 | 34.11 |
| Personalization /wp-admin/admin.php?page=optin-monster-personalization | 3.48 | 38.05 |
| Playbooks /wp-admin/admin.php?page=optin-monster-playbooks | 3.48 | 36.32 |
| Templates /wp-admin/admin.php?page=optin-monster-templates | 3.48 | 37.73 |
Server storage [IO: ▲37.21MB] [DB: ▲0.13MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
- The filesystem usage should be lower than 25MB (currently using 37.21MB)
Filesystem: 379 new files
Database: no new tables, 10 new options
| New WordPress options |
|---|
| widget_theysaidso_widget |
| optin_monster_api |
| widget_recent-posts |
| theysaidso_admin_options |
| widget_recent-comments |
| can_compress_scripts |
| omapi_review |
| optinmonster_upgrade_completed |
| db_upgraded |
| widget_optin-monster-api |
Browser metrics Passed 4 tests
A check of browser resources used by Popup Builder by OptinMonster - WordPress Popups for Optins, Email Newsletters and Lead Generation
Minimal impact on browser resources
| Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
|---|---|---|---|---|
| Home / | 2,963 ▲201 | 14.77 ▲0.49 | 1.81 ▼0.03 | 41.56 ▼4.33 |
| Dashboard /wp-admin | 2,368 ▲188 | 5.77 ▲0.13 | 97.63 ▲3.74 | 87.29 ▲43.56 |
| Posts /wp-admin/edit.php | 2,252 ▲149 | 2.17 ▲0.20 | 43.24 ▲5.81 | 42.27 ▲7.70 |
| Add New Post /wp-admin/post-new.php | 1,870 ▲344 | 27.10 ▲3.56 | 780.43 ▲69.28 | 42.75 ▼12.48 |
| Media Library /wp-admin/upload.php | 1,549 ▲146 | 4.34 ▲0.16 | 102.22 ▲3.52 | 48.33 ▲3.07 |
| Integrations /wp-admin/admin.php?page=optin-monster-integrations | 2,680 | 18.96 | 321.73 | 69.13 |
| Campaigns /wp-admin/admin.php?page=optin-monster-campaigns | 1,277 | 9.86 | 300.00 | 46.66 |
| OptinMonster /wp-admin/admin.php?page=optin-monster-api-settings | 1,810 | 10.57 | 135.33 | 63.22 |
| University /wp-admin/admin.php?page=optin-monster-university | 1,423 | 10.34 | 130.78 | 48.60 |
| Subscribers /wp-admin/admin.php?page=optin-monster-monsterleads | 1,271 | 9.71 | 127.98 | 43.67 |
| Dashboard /wp-admin/admin.php?page=optin-monster-dashboard | 1,810 | 10.55 | 127.96 | 51.50 |
| Onboarding Wizard /wp-admin/admin.php?page=optin-monster-onboarding-wizard | 1,259 | 9.72 | 137.10 | 64.42 |
| Personalization /wp-admin/admin.php?page=optin-monster-personalization | 1,356 | 10.11 | 128.52 | 45.74 |
| Playbooks /wp-admin/admin.php?page=optin-monster-playbooks | 2,929 | 14.64 | 141.94 | 90.51 |
| Templates /wp-admin/admin.php?page=optin-monster-templates | 10,406 | 33.25 | 150.17 | 67.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.14MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
-
This plugin did not uninstall successfully, leaving 9 options in the
database
- optinmonster_upgrade_completed
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- omapi_review
- widget_recent-posts
- theysaidso_admin_options
- widget_optin-monster-api
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following
-
5× PHP files output non-empty strings when accessed directly via GET
requests:
- > /wp-content/plugins/optinmonster/views/upgrade-link-css.php
- > /wp-content/plugins/optinmonster/views/jiggle-css.php
- > /wp-content/plugins/optinmonster/views/woocommerce-marketing-card-css.php
- > /wp-content/plugins/optinmonster/views/shortcode-modal-css.php
- > /wp-content/plugins/optinmonster/views/archie-loading.php
-
15× PHP files trigger server-side errors or warnings when accessed
directly (only 10 are shown):
-
> PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/optinmonster/views/plugin-banner.php:8
-
> PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/optinmonster/views/seedprod-settings-page.php:3
-
> PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/optinmonster/views/monsterlink-campaign-shortcode-modal.php:6
-
> PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Button' not found in wp-content/plugins/optinmonster/OMAPI/Elementor/ButtonWidget.php:20
-
> PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/optinmonster/views/trustpulse-settings-page.php:5
-
> PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/optinmonster/views/product-metabox.php:7
-
> PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/optinmonster/views/inline-campaign-shortcode-modal.php:5
-
> PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/optinmonster/views/install-plugin-form.php:2
-
> PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/optinmonster/views/coupon-metabox.php:8
-
> PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/optinmonster/views/woocommerce-marketing-card.php:9
-
> PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
-
- > GET request to /wp-admin/admin.php?page=optin-monster-playbooks
- > Network (severe)
https://api.omwpapi.com/v2/embed/130236?d=wp.com - Failed to load resource: the server responded with a status of 401 ()
-
- > GET request to /wp-admin/admin.php?page=optin-monster-playbooks
- > Console-api (severe) in unknown
https://a.omwpapi.com/app/js/api.min.js 0:24793 "[OptinMonster]" "This account is not currently active. It is either expired, paused, archived, cancelled or temporarily suspended."
Optimizations
Plugin configuration 73% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
- Screenshots: Screenshot #1 (Select a Campaign type (popup, full screen, floating bar, slide-in, inline or Gamified)) image required
optinmonster/optin-monster-wp-api.php 54% from 13 tests
The primary PHP file in "Popup Builder by OptinMonster - WordPress Popups for Optins, Email Newsletters and Lead Generation" version 2.15.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("optinmonster.php" instead of "optin-monster-wp-api.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.7.0" instead of "3.2")
- Description: The description should be shorter than 140 characters (currently 175 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path must begin with a forward slash character ("/languages")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin14,948 lines of code in
275 files:
| Language | Files | Blank lines | Comment lines | Lines of code |
|---|---|---|---|---|
| PHP | 91 | 2,768 | 8,458 | 10,880 |
| SVG | 90 | 1 | 2 | 2,019 |
| JavaScript | 67 | 210 | 890 | 1,244 |
| Markdown | 1 | 166 | 0 | 631 |
| JSON | 2 | 0 | 0 | 150 |
| CSS | 24 | 0 | 3 | 24 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues
detected
| Cyclomatic complexity | |
|---|---|
| Average complexity per logical line of code | 0.43 |
| Average class complexity | 20.38 |
| ▷ Minimum class complexity | 1.00 |
| ▷ Maximum class complexity | 102.00 |
| Average method complexity | 3.16 |
| ▷ Minimum method complexity | 1.00 |
| ▷ Maximum method complexity | 28.00 |
| Code structure | ||
|---|---|---|
| Namespaces | 0 | |
| Interfaces | 0 | |
| Traits | 0 | |
| Classes | 72 | |
| ▷ Abstract classes | 4 | 5.56% |
| ▷ Concrete classes | 68 | 94.44% |
| ▷ Final classes | 0 | 0.00% |
| Methods | 652 | |
| ▷ Static methods | 115 | 17.64% |
| ▷ Public methods | 594 | 91.10% |
| ▷ Protected methods | 54 | 8.28% |
| ▷ Private methods | 4 | 0.61% |
| Functions | 6 | |
| ▷ Named functions | 4 | 66.67% |
| ▷ Anonymous functions | 2 | 33.33% |
| Constants | 24 | |
| ▷ Global constants | 11 | 45.83% |
| ▷ Class constants | 13 | 54.17% |
| ▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
45 compressed PNG files occupy 4.14MB
Potential savings
| Compression of 5 random PNG files using pngquant | |||
|---|---|---|---|
| File | Size - original | Size - compressed | Savings |
| assets/css/images/om-step-3-sm.png | 13.79KB | 12.35KB | ▼ 10.44% |
| assets/css/images/om-step-1-sm.png | 17.33KB | 16.40KB | ▼ 5.32% |
| assets/css/images/gravity-forms.png | 35.69KB | 20.37KB | ▼ 42.92% |
| vue/dist/img/measuring.b5e3f58e.png | 17.81KB | 18.13KB | 0.00% |
| assets/css/images/logo-formidable.png | 3.80KB | 4.23KB | 0.00% |