90% wc-cart-automation

Code Review | Wc Cart Automation

WordPress plugin Wc Cart Automation scored90%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: 6.3.1
  • 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 /389 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.17MB] [CPU: ▼2.96ms] Passed 4 tests

Analyzing server-side resources used by Wc Cart Automation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1742.48 ▼3.52
Dashboard /wp-admin3.47 ▲0.1753.70 ▲2.23
Posts /wp-admin/edit.php3.58 ▲0.2351.81 ▼3.07
Add New Post /wp-admin/post-new.php6.05 ▲0.16104.12 ▼4.22
Media Library /wp-admin/upload.php3.39 ▲0.1639.01 ▼1.02
Automations /wp-admin/edit.php?post_type=wcca3.4338.80

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Wc Cart Automation: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲7814.35 ▼0.201.72 ▼0.2443.39 ▼0.32
Dashboard /wp-admin2,236 ▲565.63 ▼0.0489.38 ▼4.0841.22 ▼2.50
Posts /wp-admin/edit.php2,102 ▲52.03 ▼0.0134.65 ▼3.8032.93 ▼2.74
Add New Post /wp-admin/post-new.php1,540 ▲318.13 ▲0.10658.80 ▲12.8067.87 ▲2.59
Media Library /wp-admin/upload.php1,408 ▲144.20 ▲0.0997.35 ▼0.8943.07 ▼0.57
Automations /wp-admin/edit.php?post_type=wcca1,0841.9630.2132.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: cart, woocommerce, ecommerce, shop, automation

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

The main PHP file in "Wc Cart Automation" ver. 0.2.0 adds more information about the plugin and also serves as the entry point for this plugin
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 review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin766 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP5114170541
PO File1384287
Markdown116048
Sass18037
CSS11135
JavaScript16018

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods1760.71%
▷ Public methods2589.29%
▷ Protected methods00.00%
▷ Private methods310.71%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants2
▷ Global constants2100.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