83% multiple-packages-for-woocommerce

Code Review | Multiple Packages for WooCommerce

WordPress plugin Multiple Packages for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: multiple-packages...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 18, 2014
  • Latest release: Jan 31, 2023
  • Number of updates: 28
  • Update frequency: every 115.8 days
  • Top authors: hystericallyme (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

1,000+ active /22,016 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.84ms] Passed 4 tests

Analyzing server-side resources used by Multiple Packages for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.47 ▼2.86
Dashboard /wp-admin3.31 ▲0.0155.54 ▲2.63
Posts /wp-admin/edit.php3.36 ▲0.0053.94 ▲2.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.90 ▼11.65
Media Library /wp-admin/upload.php3.23 ▲0.0039.05 ▲0.61

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Multiple Packages for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2913.56 ▼0.811.73 ▼0.0541.63 ▼3.42
Dashboard /wp-admin2,221 ▲184.82 ▼1.06111.30 ▲8.3839.44 ▼3.47
Posts /wp-admin/edit.php2,100 ▲32.18 ▲0.1336.42 ▼0.9232.48 ▼4.81
Add New Post /wp-admin/post-new.php1,545 ▼023.03 ▼0.16648.29 ▼38.8846.08 ▼8.39
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0694.89 ▼22.3341.84 ▼6.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multiple-packages-for-woocommerce/multiple-packages-shipping.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === multiple-packages-for-woocommerce === )
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
Please take inspiration from this readme.txt

multiple-packages-for-woocommerce/multiple-packages-shipping.php 85% from 13 tests

The entry point to "Multiple Packages for WooCommerce" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.8" instead of "2.6.0")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("multiple-packages-for-woocommerce.php" instead of "multiple-packages-shipping.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin362 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP396140362

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity16.33
▷ Minimum class complexity12.00
▷ Maximum class complexity23.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.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