89% events-manager-add-on-multisite-mail-settings

Code Review | Events Manager – MultiSite Email

WordPress plugin Events Manager – MultiSite Email scored89%from 54 tests.

About plugin

  • Plugin page: events-manager-ad...
  • Plugin version: 4.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.1.1
  • WordPress version: 6.3.1
  • First release: Nov 24, 2017
  • Latest release: Mar 21, 2019
  • Number of updates: 76
  • Update frequency: every 6.4 days
  • Top authors: DuisterDenHaag (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,076 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.00MB] [CPU: ▼8.15ms] Passed 4 tests

This is a short check of server-side resources used by Events Manager – MultiSite Email
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.56 ▼5.86
Dashboard /wp-admin3.31 ▲0.0053.53 ▲3.42
Posts /wp-admin/edit.php3.36 ▲0.0052.45 ▼0.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.96 ▼24.19
Media Library /wp-admin/upload.php3.23 ▲0.0035.97 ▼2.08

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Events Manager – MultiSite Email
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.021.58 ▼0.6545.36 ▼2.23
Dashboard /wp-admin2,195 ▲185.65 ▲0.0492.65 ▲1.7944.77 ▲5.23
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0338.05 ▼3.1635.31 ▼1.83
Add New Post /wp-admin/post-new.php1,528 ▲223.14 ▼0.12671.90 ▲25.0857.42 ▲2.38
Media Library /wp-admin/upload.php1,400 ▲34.22 ▲0.0798.17 ▼6.3245.04 ▼0.90

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 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 Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can look at the official readme.txt

events-manager-add-on-multisite-mail-settings/events-manager-multisite-email.php 92% from 13 tests

"Events Manager – MultiSite Email" version 4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("events-manager-add-on-multisite-mail-settings.php" instead of "events-manager-multisite-email.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 detected253 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22932174
PO File1286277
CSS1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected