90% multi-branch-for-woocommerce

Code Review | Multi Branch for WooCommerce

WordPress plugin Multi Branch for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: multi-branch-for-...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Nov 29, 2022
  • Latest release: Oct 22, 2023
  • Number of updates: 8
  • Update frequency: every 40.9 days
  • Top authors: condless (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /415 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼9.00ms] Passed 4 tests

This is a short check of server-side resources used by Multi Branch for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1337.63 ▼3.06
Dashboard /wp-admin3.43 ▲0.0946.14 ▼16.26
Posts /wp-admin/edit.php3.54 ▲0.1948.50 ▲2.82
Add New Post /wp-admin/post-new.php6.01 ▲0.1381.39 ▼19.49
Media Library /wp-admin/upload.php3.35 ▲0.1238.05 ▲6.21

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Multi Branch for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.34 ▼0.061.81 ▼0.0939.36 ▼4.76
Dashboard /wp-admin2,198 ▲185.57 ▼0.0183.97 ▼4.2938.08 ▼2.40
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0235.22 ▲1.3830.98 ▼9.55
Add New Post /wp-admin/post-new.php1,531 ▼623.27 ▲5.00695.91 ▲69.9552.62 ▼11.95
Media Library /wp-admin/upload.php1,397 ▼04.14 ▼0.1193.15 ▼6.7740.75 ▼1.18

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention: You can look at the official readme.txt

multi-branch-for-woocommerce/multi-branch-for-woocommerce.php Passed 13 tests

This is the main PHP file of "Multi Branch for WooCommerce" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
64 characters long description:
WooCommerce plugin for configuring store with multiple branches.

Code Analysis Passed 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 plugin565 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141198565

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity100.00
▷ Minimum class complexity100.00
▷ Maximum class complexity100.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin