Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.60MB] [CPU: ▲2.60ms] Passed 4 tests
An overview of server-side resources used by Popup, Optin Form & Email Newsletters for Mailchimp, HubSpot, AWeber - MailOptin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.86 ▲1.40 | 44.83 ▲2.44 |
Dashboard /wp-admin | 4.98 ▲1.68 | 54.06 ▲7.85 |
Posts /wp-admin/edit.php | 5.01 ▲1.66 | 59.07 ▲9.76 |
Add New Post /wp-admin/post-new.php | 7.66 ▲1.77 | 96.45 ▼3.04 |
Media Library /wp-admin/upload.php | 4.89 ▲1.66 | 40.44 ▲3.14 |
Login Redirect /wp-admin/admin.php?page=mailoptin-loginwp | 4.81 | 42.21 |
Integrations /wp-admin/admin.php?page=mailoptin-integrations | 4.84 | 48.30 |
Emails /wp-admin/admin.php?page=mailoptin-emails | 4.86 | 41.63 |
Leads /wp-admin/admin.php?page=mailoptin-lead-bank | 4.80 | 39.66 |
User Sync NEW /wp-admin/admin.php?page=mailoptin-fusewp | 4.81 | 41.02 |
Optin Campaigns /wp-admin/admin.php?page=mailoptin-optin-campaigns | 5.03 | 43.23 |
Statistics /wp-admin/admin.php?page=mailoptin-statistics | 4.80 | 41.95 |
Settings /wp-admin/admin.php?page=mailoptin-settings | 4.80 | 39.91 |
Server storage [IO: ▲14.98MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2,344 new files
Database: 7 new tables, 12 new options
New tables |
---|
wp_mo_conversions |
wp_mo_campaign_log |
wp_mo_email_campaignmeta |
wp_mo_email_campaigns |
wp_mo_optin_campaignmeta |
wp_mo_optin_campaigns |
wp_mo_campaign_logmeta |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
mo_plugin_activated |
widget_recent-comments |
mo_db_ver |
mailoptin_settings |
mo_install_date |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
Popup, Optin Form & Email Newsletters for Mailchimp, HubSpot, AWeber - MailOptin: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,159 ▲413 | 13.69 ▼0.58 | 14.18 ▲12.54 | 37.94 ▼3.68 |
Dashboard /wp-admin | 2,427 ▲249 | 5.81 ▲0.10 | 95.16 ▼14.93 | 46.63 ▲2.16 |
Posts /wp-admin/edit.php | 2,307 ▲207 | 2.37 ▲0.34 | 42.18 ▲1.38 | 37.73 ▲2.35 |
Add New Post /wp-admin/post-new.php | 6,300 ▲4,763 | 19.22 ▲1.05 | 949.10 ▲297.65 | 37.68 ▼31.35 |
Media Library /wp-admin/upload.php | 1,617 ▲217 | 4.47 ▲0.26 | 101.37 ▲3.48 | 41.39 ▼2.53 |
Login Redirect /wp-admin/admin.php?page=mailoptin-loginwp | 1,101 | 2.38 | 39.16 | 39.31 |
Integrations /wp-admin/admin.php?page=mailoptin-integrations | 3,803 | 2.45 | 48.39 | 103.39 |
Emails /wp-admin/admin.php?page=mailoptin-emails | 1,458 | 2.51 | 34.08 | 60.13 |
Leads /wp-admin/admin.php?page=mailoptin-lead-bank | 1,156 | 2.62 | 34.42 | 57.05 |
User Sync NEW /wp-admin/admin.php?page=mailoptin-fusewp | 1,098 | 2.49 | 32.11 | 39.54 |
Optin Campaigns /wp-admin/admin.php?page=mailoptin-optin-campaigns | 1,546 | 2.50 | 33.29 | 65.11 |
Statistics /wp-admin/admin.php?page=mailoptin-statistics | 1,113 | 2.49 | 32.00 | 73.76 |
Settings /wp-admin/admin.php?page=mailoptin-settings | 1,320 | 2.35 | 32.00 | 78.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure failed, leaving 7 tables in the database
- wp_mo_campaign_log
- wp_mo_optin_campaignmeta
- wp_mo_email_campaignmeta
- wp_mo_optin_campaigns
- wp_mo_campaign_logmeta
- wp_mo_conversions
- wp_mo_email_campaigns
- Zombie WordPress options detected upon uninstall: 12 options
- widget_theysaidso_widget
- db_upgraded
- mo_db_ver
- mo_plugin_activated
- theysaidso_admin_options
- widget_mo_optin_widgets
- mailoptin_connections
- mailoptin_settings
- widget_recent-comments
- mo_install_date
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 49 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mailoptin-integrations
- > Notice in wp-content/plugins/mailoptin/src/core/src/Functions/custom-settings-api.php+589
Undefined index: value
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mailoptin-integrations
- > Notice in wp-content/plugins/mailoptin/src/core/src/Functions/custom-settings-api.php+570
Undefined index: description
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mailoptin-emails
- > Notice in wp-content/plugins/mailoptin/src/core/src/Functions/custom-settings-api.php+122
Undefined index: class
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mailoptin-emails
- > Notice in wp-content/plugins/mailoptin/src/core/src/Functions/custom-settings-api.php+123
Undefined index: style
- > GET request to /wp-admin/admin.php?page=mailoptin-emails
- > Notice in wp-content/plugins/mailoptin/src/core/src/Admin/SettingsPage/Email_Campaign_List.php+405
Undefined index: email-campaign-id
- > GET request to /wp-admin/admin.php?page=mailoptin-optin-campaigns
- > Notice in wp-content/plugins/mailoptin/src/core/src/Admin/SettingsPage/OptinCampaign_List.php+731
Undefined index: optin-campaign
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 fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/mailoptin/src/core/src/Connections/error-html-tmpl.php
- > /wp-content/plugins/mailoptin/src/connections/MailjetConnect/confirm-email-tmpl.php
- 798× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'League\\Csv\\AbstractCsv' not found in wp-content/plugins/mailoptin/vendor/league/csv/src/Writer.php:29
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mailoptin/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'NF_Abstracts_ActionNewsletter' not found in wp-content/plugins/mailoptin/src/connections/NinjaFormsConnect/Integrations/MailerliteConnect.php:11
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/mailoptin/src/core/tests/bootstrap.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/mailoptin/src/connections/ActiveCampaignConnect/APIClass/includes/Webhook.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Exception\\RuntimeException' not found in wp-content/plugins/mailoptin/vendor/symfony/translation/Exception/ProviderException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mailoptin/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Authifly\\Exception\\UnexpectedValueException' not found in wp-content/plugins/mailoptin/vendor/mailoptin/authifly/src/Exception/AuthorizationDeniedException.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mailoptin/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'MailOptin\\SendlaneConnect\\AbstractSendlaneConnect' not found in wp-content/plugins/mailoptin/src/connections/SendlaneConnect/Connect.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: newsletter, popup, mailchimp, popup maker, popups
mailoptin/mailoptin.php Passed 13 tests
"Popup, Optin Form & Email Newsletters for Mailchimp, HubSpot, AWeber - MailOptin" version 1.2.65.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
Best lead generation, email automation & newsletter plugin.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Please make sure to remedy the following
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/mailoptin/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,732 | 32,140 | 52,255 | 135,275 |
JavaScript | 115 | 2,139 | 884 | 8,120 |
CSS | 28 | 932 | 97 | 5,229 |
XSD | 3 | 92 | 48 | 2,803 |
JSON | 8 | 0 | 0 | 1,988 |
Markdown | 10 | 231 | 0 | 965 |
YAML | 5 | 52 | 3 | 257 |
Bourne Shell | 3 | 46 | 18 | 251 |
XML | 3 | 7 | 16 | 75 |
SVG | 11 | 0 | 1 | 38 |
make | 1 | 4 | 0 | 14 |
DOS Batch | 1 | 0 | 0 | 4 |
HTML | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 13.49 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 351.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 175 | |
Interfaces | 54 | |
Traits | 35 | |
Classes | 963 | |
▷ Abstract classes | 42 | 4.36% |
▷ Concrete classes | 921 | 95.64% |
▷ Final classes | 23 | 2.50% |
Methods | 6,943 | |
▷ Static methods | 1,114 | 16.04% |
▷ Public methods | 6,262 | 90.19% |
▷ Protected methods | 364 | 5.24% |
▷ Private methods | 317 | 4.57% |
Functions | 629 | |
▷ Named functions | 151 | 24.01% |
▷ Anonymous functions | 478 | 75.99% |
Constants | 326 | |
▷ Global constants | 87 | 26.69% |
▷ Class constants | 239 | 73.31% |
▷ Public constants | 219 | 91.63% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
79 compressed PNG files occupy 2.92MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/core/src/assets/images/optin-themes/rescript-lightbox.png | 19.01KB | 19.01KB | 0.01% |
src/core/src/assets/images/optin-themes/primrose-sidebar.png | 70.90KB | 70.91KB | 0.00% |
src/core/src/assets/images/optin-themes/scilla/scilla-sidebar-slidein.png | 14.49KB | 15.00KB | 0.00% |
src/core/src/assets/images/advanceanalytics.png | 229.91KB | 252.67KB | 0.00% |
src/core/src/assets/images/optin-themes/letterbox-inpost.png | 12.58KB | 12.58KB | 0.00% |