84% e-mail-campaign-manager

Code Review | E-mail Campaign Manager

WordPress plugin E-mail Campaign Manager scored84%from 54 tests.

About plugin

  • Plugin page: e-mail-campaign-m...
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Jun 10, 2016
  • Latest release: Sep 10, 2017
  • Number of updates: 41
  • Update frequency: every 11.2 days
  • Top authors: romancieciuch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,070 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.03MB] [CPU: ▼6.40ms] Passed 4 tests

A check of server-side resources used by E-mail Campaign Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.05 ▲3.13
Dashboard /wp-admin3.34 ▲0.0349.79 ▲0.21
Posts /wp-admin/edit.php3.39 ▲0.0344.35 ▼9.18
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.46 ▼19.75
Media Library /wp-admin/upload.php3.26 ▲0.0346.96 ▲10.58

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

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

Browser metrics Passed 4 tests

A check of browser resources used by E-mail Campaign Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲6114.45 ▲0.221.89 ▼0.0547.09 ▲0.21
Dashboard /wp-admin2,224 ▲324.86 ▼0.13128.16 ▲19.0746.43 ▼0.89
Posts /wp-admin/edit.php2,107 ▲181.97 ▼0.0837.05 ▼5.7933.42 ▲0.11
Add New Post /wp-admin/post-new.php1,546 ▲3223.19 ▲5.71637.97 ▼23.7291.95 ▲28.47
Media Library /wp-admin/upload.php1,409 ▲214.24 ▲0.02104.74 ▼9.9143.57 ▼1.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-mail-campaign-manager/email-campaign-manager.php:15

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 94% 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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

e-mail-campaign-manager/email-campaign-manager.php 92% from 13 tests

The principal PHP file in "E-mail Campaign Manager" v. 1.9 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("e-mail-campaign-manager.php" instead of "email-campaign-manager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,611 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP19407731,605
CSS1406

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin