84% ultimo-woocommerce-email

Code Review | Ultimo Woocommerce Email Plugin

WordPress plugin Ultimo Woocommerce Email Plugin scored 84% from 54 tests.

About plugin

  • Plugin page: ultimo-woocommerc...
  • Plugin version: 1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 25, 2019
  • Latest release: Jul 25, 2019
  • Number of updates: 7
  • Update frequency: every 2.1 days
  • Top authors: cmsgogran (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

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

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

An overview of server-side resources used by Ultimo Woocommerce Email Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.98 ▲2.05
Dashboard /wp-admin3.31 ▲0.0042.70 ▼2.02
Posts /wp-admin/edit.php3.36 ▲0.0046.79 ▼1.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.86 ▲0.26
Media Library /wp-admin/upload.php3.23 ▲0.0034.00 ▼2.64

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 179 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Ultimo Woocommerce Email Plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.24 ▼1.515.10 ▲3.2940.04 ▼0.91
Dashboard /wp-admin2,209 ▲215.89 ▲0.8697.54 ▼13.8240.78 ▼2.01
Posts /wp-admin/edit.php2,092 ▼02.00 ▼0.0638.33 ▼3.7335.16 ▼2.25
Add New Post /wp-admin/post-new.php1,543 ▲1518.28 ▲0.18625.66 ▲8.9460.25 ▲7.05
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0198.64 ▲1.1844.62 ▲1.59

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_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 20× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/ultimo-woocommerce-email/tools/aweber/aweber_api/aweber_entry.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ultimo-woocommerce-email/tools/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 28
    • > PHP Notice
      Undefined variable: index in wp-content/plugins/ultimo-woocommerce-email/tools/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ultimo-woocommerce-email/tools/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php:74
    • > PHP Notice
      Undefined variable: token in wp-content/plugins/ultimo-woocommerce-email/tools/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 28
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberAPIBase' not found in wp-content/plugins/ultimo-woocommerce-email/tools/aweber/aweber_api/aweber_response.php:14
    • > PHP Notice
      Undefined variable: input_name in wp-content/plugins/ultimo-woocommerce-email/tools/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ultimo-woocommerce-email/tools/woocommerce/payment-gateway/admin/views/html-admin-gateway-status.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimo-woocommerce-email/inc/admin/templates/settings-updated.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ultimo-woocommerce-email/tools/woocommerce/payment-gateway/admin/views/html-user-profile-section.php:26

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: woocommerce drip, woocommerce aweber, woocommerce email plugin, woocommerce email

ultimo-woocommerce-email/ultimo-wooemail.php 85% from 13 tests

Analyzing the main PHP file in "Ultimo Woocommerce Email Plugin" version 1.1
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ultimo-woocommerce-email.php" instead of "ultimo-wooemail.php")
  • 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 | 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 detected14,765 lines of code in 136 files:
LanguageFilesBlank linesComment linesLines of code
PHP1026,74413,14512,446
JavaScript610535907
PO File1287547702
CSS66415689
SVG210021

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity20.19
▷ Minimum class complexity1.00
▷ Maximum class complexity214.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces5
Interfaces15
Traits0
Classes83
▷ Abstract classes1416.87%
▷ Concrete classes6983.13%
▷ Final classes00.00%
Methods1,131
▷ Static methods1069.37%
▷ Public methods85975.95%
▷ Protected methods26323.25%
▷ Private methods90.80%
Functions13
▷ Named functions1076.92%
▷ Anonymous functions323.08%
Constants68
▷ Global constants1623.53%
▷ Class constants5276.47%
▷ Public constants52100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
30 compressed PNG files occupy 0.12MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
tools/woocommerce/payment-gateway/assets/images/card-paypal.png0.76KB0.79KB0.00%
tools/woocommerce/payment-gateway/assets/images/card-visa-debit.png0.80KB0.86KB0.00%
tools/woocommerce/payment-gateway/assets/images/card-echeck.png1.09KB1.15KB0.00%
tools/woocommerce/payment-gateway/assets/images/card-solo.png0.80KB0.86KB0.00%
tools/woocommerce/payment-gateway/assets/images/card-switch.png0.64KB0.68KB0.00%