Benchmarks
Plugin footprint 63% 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: ▲6.43MB] [CPU: ▲352.01ms] 0% from 4 tests
An overview of server-side resources used by AcyMailing - Newsletter & mailing automation for WordPress
Please take the time to fix the following items
- RAM: Total memory usage must be kept under 10MB (currently 10.04MB on /wp-admin/admin.php?page=acymailing_lists)
- CPU: The total CPU usage must kept under 500.00ms (currently 689.20ms on /wp-admin/admin.php?page=acymailing_dynamics)
- Extra RAM: The extra memory usage must be under 5MB (currently 6.43MB on /wp-admin/admin.php?page=acymailing_lists)
- Extra CPU: The extra CPU usage must be under 200.00ms (currently 352.01ms on /wp-admin/admin.php?page=acymailing_lists)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.98 ▲6.51 | 401.99 ▲362.58 |
Dashboard /wp-admin | 9.74 ▲6.43 | 402.46 ▲356.09 |
Posts /wp-admin/edit.php | 9.79 ▲6.43 | 427.38 ▲377.32 |
Add New Post /wp-admin/post-new.php | 12.34 ▲6.44 | 443.62 ▲345.59 |
Media Library /wp-admin/upload.php | 9.66 ▲6.43 | 375.69 ▲343.78 |
dynamics /wp-admin/admin.php?page=acymailing_dynamics | 10.00 | 689.20 |
Templates /wp-admin/admin.php?page=acymailing_mails | 10.04 | 401.33 |
Subscription forms /wp-admin/admin.php?page=acymailing_forms | 10.04 | 413.81 |
Queue /wp-admin/admin.php?page=acymailing_queue | 10.04 | 388.16 |
Go Pro /wp-admin/admin.php?page=acymailing_gopro | 10.01 | 399.32 |
Dashboard /wp-admin/admin.php?page=acymailing_dashboard | 10.01 | 389.94 |
Configuration /wp-admin/admin.php?page=acymailing_configuration | 10.04 | 388.23 |
file /wp-admin/admin.php?page=acymailing_file | 10.01 | 407.79 |
Subscribers /wp-admin/admin.php?page=acymailing_users | 10.04 | 375.92 |
Lists /wp-admin/admin.php?page=acymailing_lists | 10.04 | 403.88 |
Server storage [IO: ▲11.90MB] [DB: ▲0.13MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 1,294 new files
Database: 30 new tables, 9 new options
New tables |
---|
wp_acym_mail_has_list |
wp_acym_followup |
wp_acym_plugin |
wp_acym_step |
wp_acym_user |
wp_acym_field |
wp_acym_queue |
wp_acym_user_stat |
wp_acym_url_click |
wp_acym_rule |
... |
New WordPress options |
---|
widget_acym_subscriptionform_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_acym_profile_widget |
widget_recent-posts |
widget_acym_archive_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
AcyMailing - Newsletter & mailing automation for WordPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲142 | 14.40 ▲0.26 | 2.71 ▲1.12 | 42.58 ▲3.19 |
Dashboard /wp-admin | 2,281 ▲104 | 5.63 ▼0.01 | 82.40 ▼11.63 | 37.67 ▼7.77 |
Posts /wp-admin/edit.php | 2,185 ▲85 | 2.01 ▲0.02 | 35.68 ▼5.43 | 32.16 ▼5.85 |
Add New Post /wp-admin/post-new.php | 1,549 ▲14 | 20.49 ▼4.78 | 675.87 ▲61.14 | 56.89 ▼15.00 |
Media Library /wp-admin/upload.php | 1,489 ▲89 | 4.21 ▲0.01 | 108.33 ▲7.01 | 45.42 ▲1.27 |
dynamics /wp-admin/admin.php?page=acymailing_dynamics | 1,300 | 5.28 | 89.04 | 104.81 |
Templates /wp-admin/admin.php?page=acymailing_mails | 1,302 | 5.27 | 95.54 | 51.97 |
Subscription forms /wp-admin/admin.php?page=acymailing_forms | 1,306 | 5.17 | 68.30 | 49.66 |
Queue /wp-admin/admin.php?page=acymailing_queue | 1,303 | 5.34 | 65.74 | 52.23 |
Go Pro /wp-admin/admin.php?page=acymailing_gopro | 1,309 | 5.24 | 66.64 | 46.43 |
Dashboard /wp-admin/admin.php?page=acymailing_dashboard | 1,309 | 5.21 | 71.50 | 48.71 |
Configuration /wp-admin/admin.php?page=acymailing_configuration | 1,303 | 5.20 | 65.91 | 49.13 |
file /wp-admin/admin.php?page=acymailing_file | 1,310 | 5.19 | 70.88 | 45.46 |
Subscribers /wp-admin/admin.php?page=acymailing_users | 1,303 | 5.22 | 67.25 | 49.01 |
Lists /wp-admin/admin.php?page=acymailing_lists | 1,303 | 5.20 | 67.78 | 48.71 |
Uninstaller [IO: ▲0.36MB] [DB: ▲0.13MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 30 tables in the database
- wp_acym_segment
- wp_acym_action
- wp_acym_rule
- wp_acym_mailbox_action
- wp_acym_followup_has_mail
- wp_acym_url
- wp_acym_custom_zone
- wp_acym_mail_has_list
- wp_acym_user_stat
- wp_acym_field
- ...
- The uninstall procedure has failed, leaving 9 options in the database
- widget_acym_subscriptionform_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_acym_archive_widget
- widget_recent-posts
- widget_acym_profile_widget
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=acymailing_lists
- > Warning in wp-content/plugins/acymailing/back/helpers/global/global.php+118
session_start(): Cannot start session when headers already sent
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
- 10× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/acymailing/back/partial/toolbar/button_main.php
- > /wp-content/plugins/acymailing/back/views/forms/tmpl/edit_menu.php
- > /wp-content/plugins/acymailing/back/views/campaigns/tmpl/summary_languages.php
- > /wp-content/plugins/acymailing/back/views/campaigns/tmpl/summary_abtest.php
- > /wp-content/plugins/acymailing/back/partial/forms/cookie.php
- > /wp-content/plugins/acymailing/back/views/users/tmpl/edit_subscription_subscribed.php
- > /wp-content/plugins/acymailing/back/views/users/tmpl/edit_subscription_unsubscribed.php
- > /wp-content/plugins/acymailing/back/partial/editor/default_template.php
- > /wp-content/plugins/acymailing/index.php
- > /wp-content/plugins/acymailing/back/partial/forms/lists.php
- 724× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function acym_completeLink() in wp-content/plugins/acymailing/back/views/dashboard/tmpl/walk_through.php:1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acymailing/back/views/campaigns/tmpl/summary_languages.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'SendinblueClass' not found in wp-content/plugins/acymailing/back/dynamics/sendinblue/list.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function acym_translation() in wp-content/plugins/acymailing/front/views/archive/tmpl/view.php:4
- > PHP Warning
Use of undefined constant WP_CONTENT_URL - assumed 'WP_CONTENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/acymailing/back/libraries/wordpress/defines.php on line 44
- > PHP Fatal error
Uncaught Error: Class 'AcyMailing\\Libraries\\acymView' not found in wp-content/plugins/acymailing/back/views/stats/view.html.php:7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acymailing/back/partial/forms/lists.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'AcyMailing\\Libraries\\acymView' not found in wp-content/plugins/acymailing/back/views/dashboard/view.html.php:7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acymailing/back/views/file/tmpl/select.php on line 1
- > PHP Notice
Undefined variable: form in wp-content/plugins/acymailing/back/partial/forms/header.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: newsletter, automation, email marketing, contact list, drag-and-drop
acymailing/index.php 77% from 13 tests
Analyzing the main PHP file in "AcyMailing - Newsletter & mailing automation for WordPress" version 9.0.2
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "5.0")
- Requires PHP: Required version must match the one declared in readme.txt ("7.2.0" instead of "7.2")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("acymailing.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin90,791 lines of code in 877 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 665 | 13,955 | 8,115 | 86,395 |
INI | 1 | 2 | 0 | 2,782 |
SQL | 1 | 48 | 141 | 549 |
SVG | 10 | 21 | 2 | 427 |
CSS | 49 | 40 | 8 | 291 |
JavaScript | 143 | 0 | 73 | 217 |
JSON | 2 | 0 | 0 | 70 |
XML | 4 | 0 | 0 | 50 |
Markdown | 2 | 6 | 0 | 10 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 193)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 27.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 516.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 193.00 |
Code structure | ||
---|---|---|
Namespaces | 49 | |
Interfaces | 13 | |
Traits | 84 | |
Classes | 288 | |
▷ Abstract classes | 9 | 3.12% |
▷ Concrete classes | 279 | 96.88% |
▷ Final classes | 0 | 0.00% |
Methods | 2,754 | |
▷ Static methods | 94 | 3.41% |
▷ Public methods | 2,175 | 78.98% |
▷ Protected methods | 225 | 8.17% |
▷ Private methods | 354 | 12.85% |
Functions | 287 | |
▷ Named functions | 255 | 88.85% |
▷ Anonymous functions | 32 | 11.15% |
Constants | 337 | |
▷ Global constants | 89 | 26.41% |
▷ Class constants | 248 | 73.59% |
▷ Public constants | 236 | 95.16% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
345 compressed PNG files occupy 1.42MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/images/flags/pe.png | 0.11KB | 0.12KB | 0.00% |
media/images/flags/tv.png | 0.96KB | 0.97KB | 0.00% |
media/images/plugins/rss.png | 15.14KB | 3.79KB | ▼ 74.93% |
media/images/flags/ny.png | 0.36KB | 0.36KB | 0.00% |
media/images/flags/kz.png | 0.71KB | 0.71KB | 0.00% |