78% email-marketing-by-sendx

Code Review | Email Marketing by SendX

WordPress plugin Email Marketing by SendX scored78%from 54 tests.

About plugin

  • Plugin page: email-marketing-b...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 16, 2016
  • Latest release: Dec 15, 2016
  • Number of updates: 8
  • Update frequency: every 3.0 days
  • Top authors: bitmonk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,450 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.58ms] Passed 4 tests

A check of server-side resources used by Email Marketing by SendX
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.56 ▼0.03
Dashboard /wp-admin3.35 ▲0.0546.44 ▼2.85
Posts /wp-admin/edit.php3.46 ▲0.1144.95 ▼2.81
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.71 ▼2.69
Media Library /wp-admin/upload.php3.27 ▲0.0433.52 ▼1.95
SendX /wp-admin/options-general.php?page=sendx3.2430.94

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

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

Browser metrics Passed 4 tests

Email Marketing by SendX: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲2514.26 ▼0.251.59 ▼0.1139.70 ▼0.41
Dashboard /wp-admin2,195 ▲185.56 ▼0.1079.75 ▼5.1340.95 ▼1.22
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0335.04 ▼3.6233.99 ▼0.05
Add New Post /wp-admin/post-new.php1,534 ▲323.38 ▲0.02595.74 ▼84.9162.43 ▲10.96
Media Library /wp-admin/upload.php1,406 ▲34.40 ▲0.1296.29 ▼0.5240.27 ▼6.45
SendX /wp-admin/options-general.php?page=sendx8502.1222.2536.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/email-marketing-by-sendx/views/tracking-code.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: account_id in wp-content/plugins/email-marketing-by-sendx/views/tracking-code.php on line 11
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/email-marketing-by-sendx/views/options.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/email-marketing-by-sendx/lib/constants.php:18
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/email-marketing-by-sendx/lib/constants.php on line 18
    • > PHP Notice
      Undefined variable: account_id in wp-content/plugins/email-marketing-by-sendx/views/tracking-code.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/email-marketing-by-sendx/lib/constants.php:18
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/email-marketing-by-sendx/lib/constants.php on line 18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: email newsletters, autoresponders, email campaign, drip sequences, email marketing...

email-marketing-by-sendx/sendx.php 85% from 13 tests

The main PHP script in "Email Marketing by SendX" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 324 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("email-marketing-by-sendx.php" instead of "sendx.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
Everything looks great! No dangerous files found in this plugin294 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP547174160
CSS1193134

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity1.72
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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