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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.15MB] [CPU: ▲4.51ms] Passed 4 tests
A check of server-side resources used by MailBard Newsletters
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.60 ▲1.14 | 48.28 ▲6.90 |
Dashboard /wp-admin | 4.45 ▲1.15 | 52.76 ▲4.98 |
Posts /wp-admin/edit.php | 4.50 ▲1.15 | 53.52 ▲3.02 |
Add New Post /wp-admin/post-new.php | 7.06 ▲1.17 | 98.75 ▲3.12 |
Media Library /wp-admin/upload.php | 4.37 ▲1.14 | 43.94 ▲8.89 |
Newsletters /wp-admin/admin.php?page=wysija_campaigns | 5.48 | 53.15 |
Subscribers /wp-admin/admin.php?page=wysija_subscribers | 5.41 | 55.64 |
Settings /wp-admin/admin.php?page=wysija_config | 5.75 | 62.75 |
Server storage [IO: ▲4.55MB] [DB: ▲0.05MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 744 new files
Database: 16 new tables, 12 new options
New tables |
---|
wp_wysija_campaign_list |
wp_wysija_email |
wp_wysija_user_field |
wp_wysija_queue |
wp_wysija_url |
wp_wysija_user_list |
wp_wysija_campaign |
wp_wysija_list |
wp_wysija_custom_field |
wp_wysija_email_user_url |
... |
New WordPress options |
---|
wysija_post_type_updated |
widget_theysaidso_widget |
db_upgraded |
widget_wysija |
wysija |
wysija_schedules |
installation_step |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by MailBard Newsletters
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲122 | 13.21 ▼1.16 | 1.70 ▼0.06 | 38.55 ▼9.78 |
Dashboard /wp-admin | 2,234 ▲43 | 5.84 ▲0.96 | 101.46 ▼4.71 | 69.44 ▲27.67 |
Posts /wp-admin/edit.php | 2,114 ▲22 | 2.04 ▲0.04 | 33.26 ▼6.01 | 31.75 ▼4.73 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.25 ▲4.90 | 646.14 ▲7.98 | 64.78 ▲7.60 |
Media Library /wp-admin/upload.php | 1,413 ▲28 | 4.23 ▲0.05 | 114.88 ▲12.66 | 47.37 ▼0.93 |
Newsletters /wp-admin/admin.php?page=wysija_campaigns | 915 | 2.29 | 42.68 | 34.45 |
Subscribers /wp-admin/admin.php?page=wysija_subscribers | 1,173 | 2.39 | 42.16 | 25.19 |
Settings /wp-admin/admin.php?page=wysija_config | 2,222 | 2.98 | 53.68 | 23.38 |
Uninstaller [IO: ▲0.26MB] [DB: ▲0.05MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure failed, leaving 16 tables in the database
- wp_wysija_campaign
- wp_wysija_form
- wp_wysija_url
- wp_wysija_user_list
- wp_wysija_list
- wp_wysija_url_mail
- wp_wysija_user_history
- wp_wysija_user
- wp_wysija_subscriber_ips
- wp_wysija_email_user_stat
- ...
- The uninstall procedure has failed, leaving 12 options in the database
- widget_recent-comments
- wysija_post_type_updated
- installation_step
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- wysija
- wysija_post_type_created
- db_upgraded
- theysaidso_admin_options
- ...
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 130× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/mailbard-newsletters/legacy/modules/archive_std/archive_std.php
- > /wp-content/plugins/mailbard-newsletters/legacy/helpers/http.php
- > /wp-content/plugins/mailbard-newsletters/legacy/classes/WJ_StatsSessionManager.php
- > /wp-content/plugins/mailbard-newsletters/legacy/classes/WJ_Export.php
- > /wp-content/plugins/mailbard-newsletters/legacy/core/controller.php
- > /wp-content/plugins/mailbard-newsletters/legacy/controllers/back/config.php
- > /wp-content/plugins/mailbard-newsletters/legacy/inc/mailer/class.sendgrid.php
- > /wp-content/plugins/mailbard-newsletters/legacy/models/config.php
- > /wp-content/plugins/mailbard-newsletters/legacy/helpers/encoding.php
- > /wp-content/plugins/mailbard-newsletters/legacy/controllers/ajax/tmce.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/mailbard-newsletters/legacy/helpers/shortcodes.php on line 100
- > PHP Warning
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 86% 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
8 plugin tags: welcome email, newsletter, signup, email, smtp...
mailbard-newsletters/index.php 69% from 13 tests
"MailBard Newsletters" version 0.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 268 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mailbard-newsletters.php" instead of "index.php")
- Domain Path: The domain path folder does not exist ("/languages/")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin64,803 lines of code in 391 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 131 | 7,336 | 7,474 | 34,905 |
JavaScript | 130 | 3,505 | 2,405 | 24,262 |
CSS | 48 | 572 | 317 | 3,727 |
HTML | 78 | 121 | 40 | 1,722 |
SQL | 2 | 32 | 29 | 173 |
SVG | 1 | 0 | 0 | 11 |
Markdown | 1 | 1 | 0 | 3 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 163)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 50.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 387.00 |
Average method complexity | 5.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 163.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 129 | |
▷ Abstract classes | 2 | 1.55% |
▷ Concrete classes | 127 | 98.45% |
▷ Final classes | 0 | 0.00% |
Methods | 1,424 | |
▷ Static methods | 61 | 4.28% |
▷ Public methods | 1,223 | 85.88% |
▷ Protected methods | 77 | 5.41% |
▷ Private methods | 124 | 8.71% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 91 | |
▷ Global constants | 55 | 60.44% |
▷ Class constants | 36 | 39.56% |
▷ Public constants | 36 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
205 PNG files occupy 0.53MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
legacy/img/nl-placeholder.png | 3.04KB | 2.29KB | ▼ 24.45% |
legacy/data/bookmarks/medium/07/linkedin.png | 0.89KB | 0.75KB | ▼ 15.86% |
legacy/img/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
legacy/img/popup/close.png | 0.49KB | 0.42KB | ▼ 14.62% |
legacy/img/default-newsletter/newsletter/youtube-video.png | 15.10KB | 7.22KB | ▼ 52.18% |