90% woocommerce-email-test

Code Review | WooCommerce Email Test

WordPress plugin WooCommerce Email Test scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-email...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Oct 16, 2014
  • Latest release: Dec 17, 2021
  • Number of updates: 42
  • Update frequency: every 62.4 days
  • Top authors: raiserweb (100%)

Code review

54 tests

User reviews

46 reviews

Install metrics

10,000+ active /99,353 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.64ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce Email Test
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.11 ▼1.86
Dashboard /wp-admin3.31 ▼0.0445.36 ▼15.58
Posts /wp-admin/edit.php3.36 ▲0.0041.19 ▼4.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0076.66 ▼20.25
Media Library /wp-admin/upload.php3.24 ▲0.0034.75 ▲0.25

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Email Test
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.004.85 ▲2.9946.59 ▲4.92
Dashboard /wp-admin2,203 ▲185.85 ▲0.97110.81 ▲7.3942.00 ▼0.52
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0136.14 ▼0.6531.96 ▼5.45
Add New Post /wp-admin/post-new.php1,537 ▲2318.21 ▲0.67632.28 ▼69.1348.96 ▼10.97
Media Library /wp-admin/upload.php1,388 ▼04.30 ▲0.16104.14 ▲6.6744.44 ▼2.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% 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
3 plugin tags: woocommerce, woocommerce email test, email test

woocommerce-email-test/woocommerce-email-test.php 92% from 13 tests

Analyzing the main PHP file in "WooCommerce Email Test" version 1.2.2
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
No dangerous file extensions were detected251 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP416342251

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin