Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▲1.78ms] 75% from 4 tests
Server-side resources used by Constant Contact Forms by MailMunch
The following require your attention
- CPU: The total CPU usage must kept under 500.00ms (currently 1,031.45ms on /wp-admin/admin.php?page=constantcontact-mailmunch-autoresponders)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 40.79 ▼0.60 |
Dashboard /wp-admin | 3.69 ▲0.38 | 49.65 ▼0.44 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 51.79 ▲2.91 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 100.47 ▲11.52 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 38.70 ▲5.24 |
Landing Pages /wp-admin/edit.php?post_type=mailmunch_page | 3.66 | 39.88 |
Add New Page /wp-admin/post-new.php?post_type=mailmunch_page | 3.80 | 2,699.65 |
Constant Contact /wp-admin/options-general.php?page=constantcontact-mailmunch | 3.60 | 433.69 |
Settings /wp-admin/admin.php?page=constantcontact-mailmunch-settings | 3.60 | 368.29 |
Forms /wp-admin/admin.php?page=constantcontact-mailmunch | 3.60 | 443.42 |
Autoresponders /wp-admin/admin.php?page=constantcontact-mailmunch-autoresponders | 3.64 | 1,031.45 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 95 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
cc_mm_user_token |
widget_theysaidso_widget |
theysaidso_admin_options |
cc_mm_site_id |
can_compress_scripts |
db_upgraded |
widget_cc_mm_widget |
cc_mm_activation_date |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Constant Contact Forms by MailMunch
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,083 ▲337 | 13.56 ▼0.72 | 14.78 ▲12.88 | 26.10 ▼18.50 |
Dashboard /wp-admin | 2,325 ▲154 | 5.70 ▲0.04 | 83.19 ▼15.30 | 80.39 ▲37.44 |
Posts /wp-admin/edit.php | 2,174 ▲77 | 2.04 ▲0.06 | 40.25 ▲6.37 | 35.08 ▲1.71 |
Add New Post /wp-admin/post-new.php | 1,599 ▲71 | 18.16 ▼5.17 | 679.79 ▲24.45 | 54.69 ▼10.33 |
Media Library /wp-admin/upload.php | 1,471 ▲77 | 4.37 ▲0.21 | 100.54 ▲2.01 | 67.46 ▲26.68 |
Landing Pages /wp-admin/edit.php?post_type=mailmunch_page | 1,159 | 2.00 | 34.09 | 30.13 |
Add New Page /wp-admin/post-new.php?post_type=mailmunch_page | 1,575 | 2.55 | 48.14 | 70.65 |
Constant Contact /wp-admin/options-general.php?page=constantcontact-mailmunch | 1,105 | 2.08 | 25.18 | 20.79 |
Settings /wp-admin/admin.php?page=constantcontact-mailmunch-settings | 982 | 2.17 | 55.04 | 53.17 |
Forms /wp-admin/admin.php?page=constantcontact-mailmunch | 1,108 | 2.05 | 37.90 | 33.02 |
Autoresponders /wp-admin/admin.php?page=constantcontact-mailmunch-autoresponders | 1,832 | 7.96 | 339.58 | 29.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_cc_mm_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=mailmunch_page
- > Notice in wp-content/plugins/constant-contact-forms-by-mailmunch/includes/class-constantcontact-mailmunch-post-type.php+91
Undefined offset: 0
- > GET request to /wp-admin/post-new.php?post_type=mailmunch_page
- > Notice in wp-content/plugins/constant-contact-forms-by-mailmunch/includes/class-constantcontact-mailmunch-post-type.php+91
Trying to get property 'id' of non-object
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/constant-contact-forms-by-mailmunch/public/partials/constantcontact-mailmunch-public-display.php
- 48× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Services\\BaseService' not found in wp-content/plugins/constant-contact-forms-by-mailmunch/includes/Ctct/Services/LibraryService.php:9
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/constant-contact-forms-by-mailmunch/includes/Ctct/Components/EmailMarketing/MessageFooter.php:13
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/constant-contact-forms-by-mailmunch/includes/Ctct/Components/Account/AccountInfo.php:13
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/constant-contact-forms-by-mailmunch/includes/Ctct/Components/Activities/AddContacts.php:15
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/constant-contact-forms-by-mailmunch/includes/Ctct/Components/Contacts/CustomField.php:13
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/constant-contact-forms-by-mailmunch/includes/Ctct/Components/Activities/ExportContacts.php:13
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Services\\BaseService' not found in wp-content/plugins/constant-contact-forms-by-mailmunch/includes/Ctct/Services/ActivityService.php:15
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Services\\BaseService' not found in wp-content/plugins/constant-contact-forms-by-mailmunch/includes/Ctct/Services/CampaignTrackingService.php:21
- > PHP Fatal error
Uncaught Error: Class 'Ctct\\Components\\Component' not found in wp-content/plugins/constant-contact-forms-by-mailmunch/includes/Ctct/Components/Contacts/Contact.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/constant-contact-forms-by-mailmunch/admin/partials/constantcontact-mailmunch-connect.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=constantcontact-mailmunch-autoresponders
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=constantcontact-mailmunch-autoresponders 202:34 Uncaught ReferenceError: currentUser is not defined
- > GET request to /wp-admin/admin.php?page=constantcontact-mailmunch-autoresponders
- > Console-api (warning) in unknown
https://static.hotjar.com/c/hotjar-1291326.js?sv=7 2:6897 "Hotjar not launching due to suspicious userAgent:" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/118.0.5993.117 Safari/537.36"
Optimizations
Plugin configuration 90% 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
8 plugin tags: constant contact subscribe, constant contact signup, constantcontact, constant contact form, constant contact newsletter...
constant-contact-forms-by-mailmunch/constantcontact-mailmunch.php 77% from 13 tests
The principal PHP file in "Constant Contact Forms by MailMunch" v. 2.0.11 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 181 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("constant-contact-forms-by-mailmunch.php" instead of "constantcontact-mailmunch.php")
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin4,749 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 79 | 948 | 2,942 | 4,049 |
CSS | 1 | 73 | 2 | 468 |
JavaScript | 1 | 28 | 28 | 232 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 64 | |
▷ Abstract classes | 2 | 3.12% |
▷ Concrete classes | 62 | 96.88% |
▷ Final classes | 0 | 0.00% |
Methods | 327 | |
▷ Static methods | 35 | 10.70% |
▷ Public methods | 314 | 96.02% |
▷ Protected methods | 2 | 0.61% |
▷ Private methods | 11 | 3.36% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/check.png | 1.64KB | 1.53KB | ▼ 6.95% |
admin/img/smallcheck.png | 0.85KB | 0.79KB | ▼ 7.47% |
admin/img/close.png | 0.26KB | 0.27KB | 0.00% |
admin/img/constantcontact_logo.png | 9.06KB | 4.03KB | ▼ 55.56% |
admin/img/icon.png | 0.83KB | 0.96KB | 0.00% |