100% gophr-same-day-shipping-method-for-woocommerce

Code Review | Gophr Same Day Delivery for WooCommerce

WordPress plugin Gophr Same Day Delivery for WooCommerce scored 100% from 54 tests.

About plugin

  • Plugin page: gophr-same-day-sh...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7.4
  • WordPress version: 5.9.2
  • First release: Jun 23, 2016
  • Latest release: May 2, 2017
  • Number of updates: 30
  • Update frequency: every 10.6 days
  • Top authors: gophr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,131 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼297.60ms] Passed 4 tests

This is a short check of server-side resources used by Gophr Same Day Delivery for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0254.64 ▲2.63
Dashboard /wp-admin3.42 ▲0.0134.66 ▲1.33
Posts /wp-admin/edit.php3.66 ▲0.0137.09 ▼1.17
Add New Post /wp-admin/post-new.php6.90 ▼0.0797.40 ▼1,188.32
Media Library /wp-admin/upload.php3.31 ▲0.0024.93 ▼2.23

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Gophr Same Day Delivery for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.95 ▼0.065.99 ▼0.153.00 ▲0.29
Dashboard /wp-admin2,892 ▲316.00 ▼0.20120.57 ▼18.94156.88 ▼8.27
Posts /wp-admin/edit.php2,694 ▲63.23 ▲0.0060.38 ▼5.13136.84 ▼4.33
Add New Post /wp-admin/post-new.php1,760 ▲9222.21 ▲4.17436.87 ▲25.17158.97 ▲4.30
Media Library /wp-admin/upload.php1,698 ▲65.50 ▼0.02144.66 ▲8.12191.78 ▼2.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 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
9 plugin tags: express delivery, cargo, vans, courier, shipping rates...

gophr-same-day-shipping-method-for-woocommerce/gophr-woocommerce-shipping.php 92% from 13 tests

The primary PHP file in "Gophr Same Day Delivery for WooCommerce" version 1.1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gophr-same-day-shipping-method-for-woocommerce.php" instead of "gophr-woocommerce-shipping.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,646 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity63.00
▷ Minimum class complexity1.00
▷ Maximum class complexity140.00
Average method complexity5.68
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods23.77%
▷ Public methods4584.91%
▷ Protected methods11.89%
▷ Private methods713.21%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected