89% woo-benchmark-email

Code Review | Woo Benchmark Email

WordPress plugin Woo Benchmark Email scored89%from 54 tests.

About plugin

  • Plugin page: woo-benchmark-email
  • Plugin version: 1.6.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Sep 24, 2018
  • Latest release: Jul 22, 2023
  • Number of updates: 37
  • Update frequency: every 47.7 days
  • Top authors: seanconklin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /5,970 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.18ms] Passed 4 tests

A check of server-side resources used by Woo Benchmark Email
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.13 ▼3.22
Dashboard /wp-admin3.31 ▲0.0143.40 ▼4.12
Posts /wp-admin/edit.php3.36 ▲0.0047.62 ▼3.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.67 ▼14.28
Media Library /wp-admin/upload.php3.23 ▲0.0032.97 ▲0.06

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Woo Benchmark Email: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5414.41 ▼0.031.97 ▼0.0845.00 ▲6.02
Dashboard /wp-admin2,206 ▲145.90 ▲1.02109.99 ▼1.7938.78 ▼8.46
Posts /wp-admin/edit.php2,092 ▼02.01 ▼0.0341.43 ▼0.3234.89 ▲0.28
Add New Post /wp-admin/post-new.php1,542 ▼018.40 ▲0.24597.07 ▼45.3152.33 ▲0.90
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0395.85 ▼12.1243.10 ▼2.78

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 detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: abandoned cart, benchmark email, woocommerce, drip campaigns, email marketing automation

woo-benchmark-email/woo-benchmark-email.php 85% from 13 tests

The main PHP script in "Woo Benchmark Email" version 1.6.2 is automatically included on every request by WordPress
The following require your attention:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.9" instead of "5.9")
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin741 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5191153655
JavaScript2212286

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity15.50
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods22
▷ Static methods2090.91%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions17.69%
▷ Anonymous functions1292.31%
Constants0
▷ Global constants00.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