Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲5.42MB] [CPU: ▲16.09ms] 75% from 4 tests
Analyzing server-side resources used by ActiveCampaign Email Preference Center
Please have a look at the following items
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.42MB on /wp-admin/options-general.php?page=activecampaign-preference-center)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.27 ▲5.80 | 64.81 ▲22.03 |
Dashboard /wp-admin | 9.29 ▲5.94 | 73.52 ▲2.33 |
Posts /wp-admin/edit.php | 9.29 ▲5.93 | 84.12 ▲38.47 |
Add New Post /wp-admin/post-new.php | 9.92 ▲4.03 | 106.70 ▲5.14 |
Media Library /wp-admin/upload.php | 9.29 ▲6.06 | 70.35 ▲34.87 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.29 | 63.01 |
ActiveCampaign Preference Center /wp-admin/options-general.php?page=activecampaign-preference-center | 9.29 | 65.96 |
Server storage [IO: ▲3.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 219 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_accounts |
fs_active_plugins |
db_upgraded |
fs_debug_mode |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by ActiveCampaign Email Preference Center
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲160 | 13.39 ▼0.96 | 8.55 ▲6.80 | 29.70 ▼14.97 |
Dashboard /wp-admin | 2,221 ▲47 | 5.64 ▲0.13 | 94.58 ▲7.33 | 48.16 ▲7.13 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.01 ▲0.03 | 39.61 ▲4.42 | 38.41 ▲1.36 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 22.99 ▲0.12 | 678.58 ▲17.30 | 50.99 ▼10.73 |
Media Library /wp-admin/upload.php | 1,423 ▲26 | 4.21 ▲0.02 | 100.28 ▼15.56 | 44.17 ▼3.94 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,088 | 1.74 | 27.13 | 29.27 |
ActiveCampaign Preference Center /wp-admin/options-general.php?page=activecampaign-preference-center | 986 | 1.69 | 26.49 | 62.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/pramadillo-activecampaign-email-preference-center/vendor/freemius/wordpress-sdk/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- fs_active_plugins
- fs_debug_mode
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- fs_accounts
Smoke tests 50% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/pramadillo-activecampaign-email-preference-center/public/partials/preference-center-free.php
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/pramadillo-activecampaign-email-preference-center/public/partials/preference-center-free.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/pramadillo-activecampaign-email-preference-center/admin/partials/settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/pramadillo-activecampaign-email-preference-center/admin/partials/settings-styles.php:2
- > PHP Notice
Undefined variable: email in wp-content/plugins/pramadillo-activecampaign-email-preference-center/public/partials/preference-center-free.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/pramadillo-activecampaign-email-preference-center/admin/partials/settings-sidebar.php:3
- > PHP Notice
Undefined variable: email in wp-content/plugins/pramadillo-activecampaign-email-preference-center/public/partials/preference-center.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/pramadillo-activecampaign-email-preference-center/admin/partials/settings-free.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function ac_freemius() in wp-content/plugins/pramadillo-activecampaign-email-preference-center/public/partials/preference-center.php:26
- > PHP Notice
Undefined variable: lists in wp-content/plugins/pramadillo-activecampaign-email-preference-center/public/partials/preference-center-free.php on line 6
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Donate link: Please fix this invalid url: "pramschufer.com"
- Screenshots: Add images for these screenshots: #4 (Preference Center Email Lookup), #5 (Preference Center Lists)
- Screenshots: These screenshots lack descriptions #2, #3 in pramadillo-activecampaign-email-preference-center/assets to your readme.txt
pramadillo-activecampaign-email-preference-center/activecampaign-email-preference-center.php 85% from 13 tests
The entry point to "ActiveCampaign Email Preference Center" version 2.0.12 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pramadillo-activecampaign-email-preference-center.php" instead of "activecampaign-email-preference-center.php")
- Text Domain: Please use dashes and lowercase characters for text domains
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
Success! There were no dangerous files found in this plugin35,930 lines of code in 163 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 139 | 8,330 | 17,596 | 34,521 |
PO File | 4 | 248 | 288 | 1,107 |
JavaScript | 5 | 51 | 59 | 254 |
JSON | 2 | 0 | 0 | 35 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 81.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 2 | 3.51% |
▷ Concrete classes | 55 | 96.49% |
▷ Final classes | 0 | 0.00% |
Methods | 1,347 | |
▷ Static methods | 215 | 15.96% |
▷ Public methods | 944 | 70.08% |
▷ Protected methods | 24 | 1.78% |
▷ Private methods | 379 | 28.14% |
Functions | 103 | |
▷ Named functions | 102 | 99.03% |
▷ Anonymous functions | 1 | 0.97% |
Constants | 146 | |
▷ Global constants | 98 | 67.12% |
▷ Class constants | 48 | 32.88% |
▷ Public constants | 48 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/icon.png | 12.59KB | 12.40KB | ▼ 1.52% |
vendor/freemius/wordpress-sdk/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
vendor/freemius/wordpress-sdk/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |