83% rapidmail-newsletter-e-mail-marketing-for-woocommerce

Code Review | rapidmail: Newsletter & E-Mail Marketing for WooCommerce

WordPress plugin rapidmail: Newsletter & E-Mail Marketing for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: rapidmail-newslet...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Mar 23, 2021
  • Latest release: Aug 3, 2023
  • Number of updates: 12
  • Update frequency: every 74.0 days
  • Top authors: Rapidmail (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /1,835 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼2.86ms] Passed 4 tests

Server-side resources used by rapidmail: Newsletter & E-Mail Marketing for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1649.41 ▲9.69
Dashboard /wp-admin3.48 ▲0.1352.22 ▼9.78
Posts /wp-admin/edit.php3.59 ▲0.2353.37 ▲5.26
Add New Post /wp-admin/post-new.php6.08 ▲0.1986.70 ▼9.39
Media Library /wp-admin/upload.php3.40 ▲0.1738.88 ▲2.46
Rapidmail Newsletter /wp-admin/admin.php?page=rapidmail-connector-newsletter-settings3.3833.41
Rapidmail /wp-admin/options-general.php?page=rapidmail-connector-settings3.3735.73

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 28 new files
Database: 1 new table, 8 new options
New tables
wp_rapidmail_changes
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
rapidmail_connector_newsletter
rapidmail_connector

Browser metrics Passed 4 tests

A check of browser resources used by rapidmail: Newsletter & E-Mail Marketing for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.72 ▲0.371.62 ▼0.0843.13 ▲2.34
Dashboard /wp-admin2,200 ▲205.68 ▲0.0384.81 ▼1.6139.21 ▼0.11
Posts /wp-admin/edit.php2,111 ▲111.99 ▲0.0439.72 ▲5.4640.05 ▲1.06
Add New Post /wp-admin/post-new.php1,542 ▲1418.04 ▼5.00621.84 ▼25.7165.81 ▲18.70
Media Library /wp-admin/upload.php1,408 ▲114.21 ▼0.01102.91 ▲0.7044.62 ▼0.75
Rapidmail Newsletter /wp-admin/admin.php?page=rapidmail-connector-newsletter-settings9402.1425.9942.54
Rapidmail /wp-admin/options-general.php?page=rapidmail-connector-settings8002.0123.4529.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/rapidmail-newsletter-e-mail-marketing-for-woocommerce/admin/partials/rapidmail-connector-admin-settings-display.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rapidmail-newsletter-e-mail-marketing-for-woocommerce/admin/partials/rapidmail-connector-admin-newsletter-settings-display.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rapidmail-newsletter-e-mail-marketing-for-woocommerce/admin/partials/rapidmail-connector-admin-connection-display.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Auth' not found in wp-content/plugins/rapidmail-newsletter-e-mail-marketing-for-woocommerce/admin/Auth.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: newsletter integration, rapidmail, e-mail-marketing, newsletter tool, newsletter...

rapidmail-newsletter-e-mail-marketing-for-woocommerce/rapidmail-connector.php 77% from 13 tests

The entry point to "rapidmail: Newsletter & E-Mail Marketing for WooCommerce" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("rapidmail-newsletter-e-mail-marketing-for-woocommerce.php" instead of "rapidmail-connector.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,124 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP16204527857
CSS1240142
PO File1292678
JavaScript111145
SVG2002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity7.30
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods50
▷ Static methods36.00%
▷ Public methods3570.00%
▷ Protected methods00.00%
▷ Private methods1530.00%
Functions15
▷ Named functions320.00%
▷ Anonymous functions1280.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

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
2 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/rapidmail-banner.png69.53KB24.23KB▼ 65.15%
admin/assets/rapidmail-logo.png1.85KB1.91KB0.00%