67% wootrello

Code Review | jav's - WooCommerce and Trello integration WooTrello

WordPress plugin jav's - WooCommerce and Trello integration WooTrello scored67%from 54 tests.

About plugin

  • Plugin page: wootrello
  • Plugin version: 3.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 28, 2019
  • Latest release: Jul 6, 2023
  • Number of updates: 44
  • Update frequency: every 35.5 days
  • Top authors: javmah (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

300+ active /5,737 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲6.41MB] [CPU: ▲40.76ms] 50% from 4 tests

This is a short check of server-side resources used by jav's - WooCommerce and Trello integration WooTrello
Please take the time to fix the following items
  • RAM: Total memory usage should be kept under 10MB (currently 10.41MB on /wp-admin/admin.php?page=freemius)
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 6.41MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /10.39 ▲6.9396.77 ▲54.11
Dashboard /wp-admin10.41 ▲7.11103.60 ▲49.77
Posts /wp-admin/edit.php10.41 ▲7.0693.00 ▲42.65
Add New Post /wp-admin/post-new.php10.41 ▲4.53129.09 ▲24.97
Media Library /wp-admin/upload.php10.41 ▲7.1885.69 ▲45.65
Freemius Debug [v.2.5.9] /wp-admin/admin.php?page=freemius10.4184.12

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 202 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
fs_debug_mode
widget_recent-comments
wootrello_installed
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
fs_accounts
fs_active_plugins

Browser metrics Passed 4 tests

A check of browser resources used by jav's - WooCommerce and Trello integration WooTrello
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,956 ▲19513.58 ▼1.018.84 ▲7.1433.34 ▼9.71
Dashboard /wp-admin2,254 ▲544.95 ▼0.95104.00 ▲3.1842.54 ▼3.48
Posts /wp-admin/edit.php2,134 ▲342.02 ▲0.0435.54 ▼7.3032.72 ▼4.99
Add New Post /wp-admin/post-new.php1,544 ▲1320.98 ▼2.00674.29 ▼13.4955.07 ▼10.25
Media Library /wp-admin/upload.php1,433 ▲364.25 ▲0.03104.21 ▼13.2248.38 ▼1.21
Freemius Debug [v.2.5.9] /wp-admin/admin.php?page=freemius1,1121.7325.1928.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/wootrello/includes/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie WordPress options were found after uninstall: 10 options
    • widget_recent-comments
    • fs_debug_mode
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • wootrello_installed
    • fs_active_plugins
    • fs_accounts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wootrello/public/partials/wootrello-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wootrello/admin/partials/wootrello-settings-display.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: woocommerce and trello, woocommerce, automation, trello, woocommerce integration with trello

wootrello/wootrello.php Passed 13 tests

The main PHP script in "jav's - WooCommerce and Trello integration WooTrello" version 3.2.5 is automatically included on every request by WordPress
45 characters long description:
WooCommerce order information to Trello card.

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin35,355 lines of code in 151 files:
LanguageFilesBlank linesComment linesLines of code
PHP1298,25318,04034,924
JavaScript639110310
CSS15195115
INI1006

PHP code 0% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,079)
  • Method cyclomatic complexity should be reduced to less than 100 (currently 173)
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity94.33
▷ Minimum class complexity1.00
▷ Maximum class complexity3,079.00
Average method complexity5.02
▷ Minimum method complexity1.00
▷ Maximum method complexity173.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes55
▷ Abstract classes23.64%
▷ Concrete classes5396.36%
▷ Final classes00.00%
Methods1,306
▷ Static methods19915.24%
▷ Public methods91269.83%
▷ Protected methods171.30%
▷ Private methods37728.87%
Functions96
▷ Named functions96100.00%
▷ Anonymous functions00.00%
Constants146
▷ Global constants9967.81%
▷ Class constants4732.19%
▷ Public constants47100.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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
includes/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
includes/freemius/assets/img/wootrello.png22.71KB3.69KB▼ 83.77%