90% wc-sendy

Code Review | Integration of Sendy with WooCommerce

WordPress plugin Integration of Sendy with WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wc-sendy
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Feb 18, 2021
  • Latest release: Mar 27, 2021
  • Number of updates: 8
  • Update frequency: every 4.6 days
  • Top authors: prothoughts (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /805 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Integration of Sendy with WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.52 ▼0.50
Dashboard /wp-admin3.31 ▲0.0145.01 ▼4.29
Posts /wp-admin/edit.php3.36 ▲0.0148.14 ▲4.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0178.97 ▼20.86
Media Library /wp-admin/upload.php3.23 ▲0.0037.94 ▲4.19

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Integration of Sendy with WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.101.74 ▲0.0243.91 ▲1.08
Dashboard /wp-admin2,206 ▲244.85 ▼1.01110.59 ▼6.6539.96 ▼5.88
Posts /wp-admin/edit.php2,068 ▼212.04 ▲0.0439.77 ▲2.7534.64 ▲2.74
Add New Post /wp-admin/post-new.php1,542 ▲2818.10 ▲0.50611.67 ▼89.8352.81 ▼11.54
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0497.98 ▼12.5642.23 ▼6.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: sendy, woo sendy, woocommerce, woocommerce sendy, woo

wc-sendy/wc-sendy.php Passed 13 tests

The primary PHP file in "Integration of Sendy with WooCommerce" version 1.1 is used by WordPress to initiate all plugin functionality
44 characters long description:
Add Customers to Sendy List from WooCommerce

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
Good job! No executable or dangerous file extensions detected106 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32661106

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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