83% moosend-email-marketing

Code Review | Moosend Website Connector

WordPress plugin Moosend Website Connector scored 83% from 54 tests.

About plugin

  • Plugin page: moosend-email-mar...
  • Plugin version: 1.0.190
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Apr 18, 2017
  • Latest release: Sep 25, 2023
  • Number of updates: 147
  • Update frequency: every 16.5 days
  • Top authors: moosend (99.32%)josesotelocohen (1.36%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active / 22,794 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼6.84ms] Passed 4 tests

A check of server-side resources used by Moosend Website Connector
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1942.57 ▲3.33
Dashboard /wp-admin3.55 ▲0.2546.30 ▼2.95
Posts /wp-admin/edit.php3.60 ▲0.2547.08 ▼3.44
Add New Post /wp-admin/post-new.php6.07 ▲0.1886.96 ▼20.37
Media Library /wp-admin/upload.php3.41 ▲0.1836.29 ▼0.59
Moosend Website Tracking Settings /wp-admin/options-general.php?page=moosend-website-tracking3.3831.51

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 202 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Moosend Website Connector
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9714.01 ▼0.217.11 ▲5.3846.61 ▲4.95
Dashboard /wp-admin2,230 ▲425.79 ▲0.9095.80 ▼19.0539.89 ▼3.52
Posts /wp-admin/edit.php2,113 ▲272.06 ▲0.0435.55 ▼6.4231.84 ▼0.88
Add New Post /wp-admin/post-new.php1,551 ▲3223.18 ▼0.02666.71 ▼10.0257.66 ▲6.15
Media Library /wp-admin/upload.php1,412 ▲274.26 ▼0.0394.89 ▼4.0144.54 ▼0.70
Moosend Website Tracking Settings /wp-admin/options-general.php?page=moosend-website-tracking8082.0324.9529.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
  • 60× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/moosend-email-marketing/vendor/guzzlehttp/psr7/src/Request.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/moosend-email-marketing/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/moosend-email-marketing/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/moosend-email-marketing/vendor/psr/http-client/src/NetworkExceptionInterface.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/moosend-email-marketing/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/moosend-email-marketing/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'PhpSpec\\ObjectBehavior' not found in wp-content/plugins/moosend-email-marketing/vendor/moosend/website-tracking/spec/Models/ProductSpec.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/moosend-email-marketing/vendor/guzzlehttp/psr7/src/LimitStream.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/moosend-email-marketing/vendor/guzzlehttp/psr7/src/Response.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/moosend-email-marketing/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7, #8, #9 in moosend-email-marketing/assets to your readme.txt
You can look at the official readme.txt

moosend-email-marketing/index.php 92% from 13 tests

This is the main PHP file of "Moosend Website Connector" version 1.0.190, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("moosend-email-marketing.php" instead of "index.php")

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
There were no executable files found in this plugin16,861 lines of code in 188 files:
LanguageFilesBlank linesComment linesLines of code
PHP1532,4496,49811,823
Markdown171,32303,846
JSON14001,157
YAML34026
make1409

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity11.75
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces17
Interfaces27
Traits3
Classes105
▷ Abstract classes00.00%
▷ Concrete classes105100.00%
▷ Final classes3533.33%
Methods883
▷ Static methods15517.55%
▷ Public methods74384.14%
▷ Protected methods101.13%
▷ Private methods13014.72%
Functions151
▷ Named functions5536.42%
▷ Anonymous functions9663.58%
Constants102
▷ Global constants00.00%
▷ Class constants102100.00%
▷ Public constants9189.22%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected