78% sender

Code Review | Sender by BestWebSoft

WordPress plugin Sender by BestWebSoft scored78%from 54 tests.

About plugin

  • Plugin page: sender
  • Plugin version: 1.3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Feb 12, 2014
  • Latest release: Aug 10, 2023
  • Number of updates: 60
  • Update frequency: every 57.8 days
  • Top authors: bestwebsoft (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active /25,903 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.14MB] [CPU: ▲2.74ms] Passed 4 tests

This is a short check of server-side resources used by Sender by BestWebSoft
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.64 ▲1.1848.94 ▲11.88
Dashboard /wp-admin4.49 ▲1.1459.52 ▼0.82
Posts /wp-admin/edit.php4.54 ▲1.1853.88 ▲3.74
Add New Post /wp-admin/post-new.php7.02 ▲1.1484.46 ▼3.83
Media Library /wp-admin/upload.php4.35 ▲1.1248.44 ▲16.03
Priorities /wp-admin/admin.php?page=sndr_priorities4.3140.18
Settings /wp-admin/admin.php?page=sndr_settings4.7153.14
Add New /wp-admin/admin.php?page=sndr_send_user4.3240.74
Lists /wp-admin/admin.php?page=sndr_distribution_list4.3138.86
Campaigns /wp-admin/admin.php?page=view_mail_send4.3341.81
BWS Panel /wp-admin/admin.php?page=sndr-bws-panel4.6446.72
Templates /wp-admin/admin.php?page=sndr_letter_templates4.3147.08
Letters /wp-admin/admin.php?page=sndr_letters_list4.3140.33

Server storage [IO: ▲4.91MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 123 new files
Database: 3 new tables, 8 new options
New tables
wp_sndr_mail_send
wp_sndr_users
wp_sndr_mail_users_info
New WordPress options
theysaidso_admin_options
bstwbsftwppdtplgns_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
sndr_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sender by BestWebSoft
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲12514.84 ▲0.472.00 ▲0.2342.67 ▼7.57
Dashboard /wp-admin2,263 ▲724.89 ▲0.01115.33 ▲14.4144.27 ▲3.51
Posts /wp-admin/edit.php2,131 ▲422.06 ▲0.0236.15 ▲2.2837.24 ▲1.55
Add New Post /wp-admin/post-new.php1,563 ▲3023.13 ▼0.07711.65 ▲9.8259.36 ▲6.61
Media Library /wp-admin/upload.php1,448 ▲574.18 ▼0.10101.47 ▲3.0542.22 ▼2.14
Priorities /wp-admin/admin.php?page=sndr_priorities1,2131.7923.2028.69
Settings /wp-admin/admin.php?page=sndr_settings1,9212.2536.3743.68
Add New /wp-admin/admin.php?page=sndr_send_user9701.9734.1744.12
Lists /wp-admin/admin.php?page=sndr_distribution_list1,1171.8024.6229.39
Campaigns /wp-admin/admin.php?page=view_mail_send1,1591.9728.1830.65
BWS Panel /wp-admin/admin.php?page=sndr-bws-panel3,0441.9833.9676.02
Templates /wp-admin/admin.php?page=sndr_letter_templates1,1731.8024.6328.98
Letters /wp-admin/admin.php?page=sndr_letters_list1,1221.8828.4927.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sender/sender.php:2508
    • > PHP Fatal error
      Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/sender/includes/class-sndr-settings.php:7
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sender/sender.php on line 597
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sender/bws_menu/class-bws-settings.php:1452
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/sender/bws_menu/product_list.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/columns-bws/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/contact-form-plugin/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/captcha-bws/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/custom-admin-page/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/custom-search-plugin/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/contact-form-to-db/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/error-log-viewer/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/donate-button/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/facebook-button-plugin/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/gallery-plugin/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/bws-google-2-step-verification/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/google-captcha/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/bws-google-maps/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/bws-google-analytics/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/google-shortlink/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/google-sitemap-plugin/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/htaccess/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/job-board/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/limit-attempts/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/bws-linkedin/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/multilanguage/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/pagination/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/bws-pinterest/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/portfolio/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/pdf-print/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/post-to-csv/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/profile-extra-fields/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/promobar/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/quotes-and-tips/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/rating-bws/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/relevant/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/realty/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/bws-smtp/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/sender/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/slider-bws/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/social-login-bws/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/social-buttons-pack/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/subscriber/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/bws-testimonials/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/timesheet/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/updater/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/twitter-plugin/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/user-role/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sndr-bws-panel
    • > Network (severe)
    http://ps.w.org/visitors-online/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Sender Settings page.), #2 (Plugin "Add New" page.), #3 (Plugin "Campaigns" page.), #4 (Plugin "Campaigns" page with subscribers list.)
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

sender/sender.php Passed 13 tests

The principal PHP file in "Sender by BestWebSoft" v. 1.3.7 is loaded by WordPress automatically on each request
102 characters long description:
Send bulk email messages to WordPress users. Custom templates, advanced settings and detailed reports.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin21,516 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PO File103,8305,7448,353
PHP95517876,583
CSS101952865,809
JavaScript732123621
SVG400150

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity78.00
▷ Minimum class complexity17.00
▷ Maximum class complexity210.00
Average method complexity8.70
▷ Minimum method complexity1.00
▷ Maximum method complexity79.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods3485.00%
▷ Protected methods00.00%
▷ Private methods615.00%
Functions79
▷ Named functions79100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
63 PNG files occupy 3.14MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_glass_75_e6e6e6_1x400.png0.15KB0.14KB▼ 6.62%
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-icons_cd0a0a_256x240.png4.49KB4.20KB▼ 6.46%