89% machool-for-woocommerce

Code Review | Machool for WooCommerce

WordPress plugin Machool for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: machool-for-wooco...
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5.1
  • WordPress version: 6.3.1
  • First release: Dec 1, 2020
  • Latest release: Dec 1, 2020
  • Number of updates: 4
  • Update frequency: every 18.0 days
  • Top authors: machool (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /497 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▲0.10ms] Passed 4 tests

A check of server-side resources used by Machool for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0640.35 ▲4.05
Dashboard /wp-admin3.37 ▲0.0747.21 ▼0.27
Posts /wp-admin/edit.php3.42 ▲0.0646.08 ▼0.98
Add New Post /wp-admin/post-new.php5.95 ▲0.0688.66 ▼2.11
Media Library /wp-admin/upload.php3.29 ▲0.0636.65 ▲3.74

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Machool for WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.001.59 ▼0.1638.36 ▼2.30
Dashboard /wp-admin2,195 ▲185.60 ▼0.0689.73 ▲1.5635.46 ▼5.92
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0341.82 ▲3.7136.32 ▲3.59
Add New Post /wp-admin/post-new.php1,528 ▲223.13 ▼0.44652.26 ▼26.4852.12 ▼3.23
Media Library /wp-admin/upload.php1,394 ▼64.18 ▼0.0299.54 ▼6.9247.55 ▲4.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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)
Good news, no errors were detected

SRP Passed 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
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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: cart, e-commerce, machool, checkout, shop...

machool-for-woocommerce/machool_woocommerce.php 77% from 13 tests

The principal PHP file in "Machool for WooCommerce" v. 1.1.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/i18n/languages/")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("machool-for-woocommerce.php" instead of "machool_woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected405 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP251149403
Markdown1102

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity57.00
▷ Minimum class complexity57.00
▷ Maximum class complexity57.00
Average method complexity4.73
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1066.67%
▷ Protected methods00.00%
▷ Private methods533.33%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 files were detected