94% automatorwp-woocommerce-integration

Code Review | AutomatorWP - WooCommerce integration

WordPress plugin AutomatorWP - WooCommerce integration scored 94% from 54 tests.

About plugin

  • Plugin page: automatorwp-wooco...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 5.8.1
  • First release: Apr 2, 2020
  • Latest release: Aug 4, 2021
  • Number of updates: 29
  • Update frequency: every 16.9 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 5,662 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼141.86ms] Passed 4 tests

Analyzing server-side resources used by AutomatorWP - WooCommerce integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1456.05 ▲34.62
Dashboard /wp-admin3.08 ▲0.0345.29 ▼0.12
Posts /wp-admin/edit.php3.14 ▲0.0345.89 ▲3.23
Add New Post /wp-admin/post-new.php5.44 ▲0.0189.46 ▼572.67
Media Library /wp-admin/upload.php3.03 ▲0.0331.67 ▲2.12

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for AutomatorWP - WooCommerce integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,731 ▲13515.94 ▲0.288.91 ▼0.8343.02 ▼1.16
Dashboard /wp-admin3,001 ▲705.95 ▼0.20137.07 ▼7.33111.19 ▼4.10
Posts /wp-admin/edit.php2,770 ▲342.72 ▼0.1265.08 ▲3.5996.84 ▲7.27
Add New Post /wp-admin/post-new.php1,691 ▲1918.83 ▼0.23382.87 ▼18.57105.63 ▼2.81
Media Library /wp-admin/upload.php1,836 ▲265.04 ▲0.01150.67 ▲13.16116.96 ▲0.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automatorwp-woocommerce-integration/automatorwp-woocommerce.php:269

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: ecommerce, automatorwp, store, woocommerce, product...

automatorwp-woocommerce-integration/automatorwp-woocommerce.php 92% from 13 tests

"AutomatorWP - WooCommerce integration" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("automatorwp-woocommerce-integration.php" instead of "automatorwp-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,432 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP165079511,319
SVG111113

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity9.79
▷ Minimum class complexity3.00
▷ Maximum class complexity16.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes17.14%
Methods64
▷ Static methods11.56%
▷ Public methods5992.19%
▷ Protected methods00.00%
▷ Private methods57.81%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin