84% rapidmail-newsletter-software

Code Review | Wordpress Newsletter Plugin von rapidmail

WordPress plugin Wordpress Newsletter Plugin von rapidmail scored84%from 54 tests.

About plugin

  • Plugin page: rapidmail-newslet...
  • Plugin version: 2.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5.1
  • WordPress version: 6.3.1
  • First release: May 5, 2015
  • Latest release: Sep 7, 2020
  • Number of updates: 46
  • Update frequency: every 42.7 days
  • Top authors: Rapidmail (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

2,000+ active /15,009 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.19MB] [CPU: ▼1.88ms] Passed 4 tests

An overview of server-side resources used by Wordpress Newsletter Plugin von rapidmail
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1142.28 ▲1.40
Dashboard /wp-admin3.57 ▲0.2658.91 ▲8.89
Posts /wp-admin/edit.php3.62 ▲0.2652.52 ▲2.31
Add New Post /wp-admin/post-new.php6.08 ▲0.2091.00 ▼14.41
Media Library /wp-admin/upload.php3.43 ▲0.2038.60 ▲3.18
rapidmail /wp-admin/options-general.php?page=rapidmail3.3933.13

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
rm_options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_rapidmail_subscription_form
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Wordpress Newsletter Plugin von rapidmail
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14113.41 ▼0.998.45 ▲7.0142.66 ▼1.54
Dashboard /wp-admin2,199 ▲315.66 ▲0.1296.83 ▲9.0638.73 ▼0.68
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0839.13 ▲2.8035.55 ▼1.95
Add New Post /wp-admin/post-new.php1,529 ▲323.12 ▼0.46681.26 ▲48.6256.03 ▼0.47
Media Library /wp-admin/upload.php1,407 ▲74.22 ▲0.0297.36 ▼3.8547.89 ▲3.82
rapidmail /wp-admin/options-general.php?page=rapidmail8911.6926.4330.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • can_compress_scripts
    • widget_rapidmail_subscription_form
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • rm_options
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rapidmail-newsletter-software/classes/Widget.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Rapidmail\\Api\\AdapterInterface' not found in wp-content/plugins/rapidmail-newsletter-software/classes/Api.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Rapidmail\\Api\\AdapterInterface' not found in wp-content/plugins/rapidmail-newsletter-software/classes/Api/Apiv3.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/rapidmail-newsletter-software/rapidmail_plugin.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Rapidmail\\Api\\AdapterInterface' not found in wp-content/plugins/rapidmail-newsletter-software/classes/Api/Apiv1.php:8

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: email marketing, newsletter, newsletter software, rapidmail, email marketing service provider...

rapidmail-newsletter-software/rapidmail_plugin.php 85% from 13 tests

The main PHP script in "Wordpress Newsletter Plugin von rapidmail" version 2.1.5 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 155 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rapidmail-newsletter-software.php" instead of "rapidmail_plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,459 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP156107071,325
JavaScript242086
CSS28048

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity12.13
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods90
▷ Static methods1112.22%
▷ Public methods7583.33%
▷ Protected methods22.22%
▷ Private methods1314.44%
Functions20
▷ Named functions00.00%
▷ Anonymous functions20100.00%
Constants22
▷ Global constants29.09%
▷ Class constants2090.91%
▷ Public constants20100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin