89% emailtools

Code Review | Emailtools for WordPress

WordPress plugin Emailtools for WordPress scored89%from 54 tests.

About plugin

  • Plugin page: emailtools
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-7.3
  • WordPress version: 6.3.1
  • First release: May 16, 2020
  • Latest release: Jun 20, 2020
  • Number of updates: 12
  • Update frequency: every 3.4 days
  • Top authors: cheryukin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /646 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Emailtools for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1247.97 ▲4.32
Dashboard /wp-admin3.43 ▲0.1249.64 ▼3.00
Posts /wp-admin/edit.php3.54 ▲0.1951.89 ▲2.50
Add New Post /wp-admin/post-new.php6.01 ▲0.1297.00 ▼1.02
Media Library /wp-admin/upload.php3.35 ▲0.1240.23 ▲2.28
Emailtools settings /wp-admin/options-general.php?page=emailtools3.3236.19

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Emailtools for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.17 ▼1.521.71 ▼0.4643.22 ▲0.98
Dashboard /wp-admin2,213 ▲284.84 ▼1.0199.06 ▼10.4739.67 ▼4.05
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0540.64 ▲0.0535.11 ▼2.12
Add New Post /wp-admin/post-new.php1,517 ▲317.68 ▲0.10644.95 ▼65.3171.16 ▲16.84
Media Library /wp-admin/upload.php1,389 ▲44.13 ▼0.07117.93 ▲12.3048.41 ▲0.01
Emailtools settings /wp-admin/options-general.php?page=emailtools8022.0624.4527.15

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: email campaign, email triggers, email

emailtools/emailtools.php 85% from 13 tests

The principal PHP file in "Emailtools for WordPress" v. 1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 229 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin484 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9166289484
PO File1100

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.86
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods46
▷ Static methods12.17%
▷ Public methods3984.78%
▷ Protected methods00.00%
▷ Private methods715.22%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin