Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.50MB] [CPU: ▲23.30ms] 75% from 4 tests
Analyzing server-side resources used by Universal email preference center
Please fix the following
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.50MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.30 ▲5.84 | 68.06 ▲22.38 |
Dashboard /wp-admin | 9.32 ▲6.02 | 76.45 ▲22.42 |
Posts /wp-admin/edit.php | 9.32 ▲5.96 | 82.34 ▲27.61 |
Add New Post /wp-admin/post-new.php | 10.08 ▲4.19 | 121.13 ▲20.79 |
Media Library /wp-admin/upload.php | 9.32 ▲6.09 | 72.84 ▲36.33 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 9.32 | 64.81 |
Server storage [IO: ▲3.61MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 217 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
fs_accounts |
fs_gdpr |
fs_debug_mode |
fs_active_plugins |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Universal email preference center
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲162 | 14.17 ▼0.37 | 6.05 ▲4.36 | 29.21 ▼18.39 |
Dashboard /wp-admin | 2,243 ▲69 | 5.26 ▼0.41 | 110.16 ▲17.74 | 45.83 ▲5.97 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 2.49 ▲0.46 | 44.95 ▲5.12 | 32.76 ▼1.97 |
Add New Post /wp-admin/post-new.php | 1,558 ▲27 | 22.78 ▼0.32 | 691.79 ▼11.17 | 35.22 ▼28.71 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.97 ▲0.80 | 108.92 ▲0.89 | 47.82 ▼0.41 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 1,114 | 2.07 | 39.78 | 30.69 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 10 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- fs_gdpr
- fs_accounts
- db_upgraded
- widget_theysaidso_widget
- fs_debug_mode
- fs_active_plugins
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 | 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 items
- 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: email in wp-content/plugins/universal-email-preference-center/public/partials/preference-center-free.php on line 1
- > PHP Notice
Undefined variable: valid in wp-content/plugins/universal-email-preference-center/public/partials/universal-email-preference-center-public-display.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/universal-email-preference-center/public/partials/universal-email-preference-center-public-display.php:27
- > PHP Notice
Undefined variable: valid in wp-content/plugins/universal-email-preference-center/admin/partials/tabs/lists.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/universal-email-preference-center/admin/partials/universal-email-preference-center-admin-display.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/universal-email-preference-center/admin/partials/tabs/lists.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/universal-email-preference-center/admin/partials/settings-styles.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/universal-email-preference-center/includes/manager/layouts/active-campagin-lists.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/universal-email-preference-center/admin/partials/sidebar.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/universal-email-preference-center/includes/manager/layouts/iterable-lists.php:64
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Settings Screen), #4 (Preference Center Email Lookup), #5 (Preference Center Lists)
- Donate link: Please fix this invalid url: "wpressapi.com"
universal-email-preference-center/universal-email-preference-center.php Passed 13 tests
The primary PHP file in "Universal email preference center" version 1.3.0 is used by WordPress to initiate all plugin functionality
91 characters long description:
Base Program allows users to update their email preferences on ActiveCampaign and Iterable.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin35,744 lines of code in 161 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 139 | 8,258 | 17,641 | 34,872 |
JavaScript | 6 | 84 | 138 | 462 |
Markdown | 1 | 68 | 0 | 214 |
CSS | 15 | 26 | 18 | 196 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,089)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 82.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 2 | 3.57% |
▷ Concrete classes | 54 | 96.43% |
▷ Final classes | 0 | 0.00% |
Methods | 1,323 | |
▷ Static methods | 199 | 15.04% |
▷ Public methods | 936 | 70.75% |
▷ Protected methods | 17 | 1.28% |
▷ Private methods | 370 | 27.97% |
Functions | 102 | |
▷ Named functions | 97 | 95.10% |
▷ Anonymous functions | 5 | 4.90% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
includes/freemius/assets/img/universal-email-preference-center-premium.png | 25.67KB | 17.07KB | ▼ 33.48% |
includes/freemius/assets/img/universal-email-preference-center-css.png | 3.12KB | 2.85KB | ▼ 8.43% |
admin/img/icon.png | 25.67KB | 17.07KB | ▼ 33.48% |
includes/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |