100% wc-cart-automation

Code Review | Wc Cart Automation

WordPress plugin Wc Cart Automation scored 100% from 54 tests.

About plugin

  • Plugin page: wc-cart-automation
  • Plugin version: 0.2.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.9
  • WordPress version: 5.9.2
  • First release: Feb 14, 2022
  • Latest release: Mar 6, 2022
  • Number of updates: 6
  • Update frequency: every 5.5 days
  • Top authors: timotheemoulin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 89 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by Wc Cart Automation
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0452.84 ▼1.69
Dashboard /wp-admin3.45 ▲0.0440.61 ▲8.81
Posts /wp-admin/edit.php3.67 ▲0.0338.96 ▲3.39
Add New Post /wp-admin/post-new.php6.92 ▼0.0595.31 ▼1,169.28
Media Library /wp-admin/upload.php3.32 ▲0.0324.32 ▼7.12
Automations /wp-admin/edit.php?post_type=wcca3.3724.72

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Wc Cart Automation: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,875 ▲12116.17 ▼0.136.12 ▼0.152.72 ▲0.30
Dashboard /wp-admin2,971 ▲846.47 ▼0.01143.42 ▲2.73160.90 ▼1.92
Posts /wp-admin/edit.php2,694 ▲33.56 ▲0.0164.05 ▲1.55139.37 ▼3.90
Add New Post /wp-admin/post-new.php1,666 ▲616.63 ▼0.09408.43 ▼27.08153.82 ▼27.88
Media Library /wp-admin/upload.php1,704 ▲65.72 ▲0.00139.73 ▲3.42184.83 ▼1.45
Automations /wp-admin/edit.php?post_type=wcca1,3903.4858.06113.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 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
5 plugin tags: cart, automation, shop, ecommerce, woocommerce

wc-cart-automation/wc-cart-automation.php Passed 13 tests

"Wc Cart Automation" version 0.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
55 characters long description:
Enhance your sales with custom cart automation process.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected766 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PO File1384287

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity28.67
▷ Minimum class complexity11.00
▷ Maximum class complexity43.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods1760.71%
▷ Public methods2589.29%
▷ Protected methods00.00%
▷ Private methods310.71%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ Global constants2100.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
No PNG images were found in this plugin