99% gooten-dropshipping-for-woocommerce

Code Review | Gooten Shipping for WooCommerce

WordPress plugin Gooten Shipping for WooCommerce scored 99% from 53 tests.

About plugin

  • Plugin page: gooten-dropshippi...
  • Plugin version: 2.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 5.8.1
  • First release: Oct 10, 2016
  • Latest release: Sep 21, 2020
  • Number of updates: 38
  • Update frequency: every 38.0 days
  • Top authors: gooten (100%)

Code review

53 tests

User reviews

5 reviews

Install metrics

600+ active / 7,265 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼265.74ms] Passed 4 tests

A check of server-side resources used by Gooten Shipping for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.65 ▲13.41
Dashboard /wp-admin3.08 ▲0.0241.96 ▼0.85
Posts /wp-admin/edit.php3.13 ▲0.0242.76 ▲3.52
Add New Post /wp-admin/post-new.php5.44 ▲0.01113.45 ▼1,057.88
Media Library /wp-admin/upload.php3.02 ▲0.0132.69 ▼7.73

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gooten Shipping for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,650 ▲4416.15 ▲0.487.71 ▼1.0549.27 ▲1.00
Dashboard /wp-admin2,931 ▲785.90 ▲0.05135.63 ▲6.0697.19 ▼3.30
Posts /wp-admin/edit.php2,706 ▼02.68 ▼0.0164.49 ▼6.9097.95 ▼5.84
Add New Post /wp-admin/post-new.php1,656 ▼19518.53 ▲0.96403.68 ▲41.07113.73 ▲6.92
Media Library /wp-admin/upload.php1,775 ▼154.98 ▲0.02144.45 ▲5.16113.33 ▼10.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

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 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: gooten, sell, cart, e-commerce, woocommerce...

gooten-dropshipping-for-woocommerce/gooten-woo.php 85% from 13 tests

This is the main PHP file of "Gooten Shipping for WooCommerce" version 2.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("gooten-dropshipping-for-woocommerce.php" instead of "gooten-woo.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)

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
Success! There were no dangerous files found in this plugin136 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13816136

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin