83% woo-bigpost-shipping

Code Review | Big Post Shipping for WooCommerce

WordPress plugin Big Post Shipping for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: woo-bigpost-shipping
  • Plugin version: 1.7.22
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Jul 18, 2019
  • Latest release: Aug 17, 2023
  • Number of updates: 138
  • Update frequency: every 10.9 days
  • Top authors: fusedsoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /7,428 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
This plugin's installer ran successfully

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

A check of server-side resources used by Big Post Shipping for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.66 ▼4.32
Dashboard /wp-admin3.32 ▼0.0245.16 ▼17.68
Posts /wp-admin/edit.php3.37 ▲0.0245.59 ▲1.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.55 ▼17.48
Media Library /wp-admin/upload.php3.24 ▲0.0232.65 ▼0.80

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 188 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Big Post Shipping for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5913.71 ▼0.871.71 ▼0.0539.44 ▼3.22
Dashboard /wp-admin2,211 ▲234.89 ▼0.03107.77 ▼10.3040.01 ▼4.18
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0340.80 ▲0.1637.52 ▲1.21
Add New Post /wp-admin/post-new.php1,519 ▼2317.54 ▼0.45666.56 ▲52.6046.83 ▼15.46
Media Library /wp-admin/upload.php1,393 ▲84.27 ▲0.04106.53 ▲3.2346.52 ▲4.13

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 69× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/woo-bigpost-shipping/vendor/psr/http-client/src/RequestExceptionInterface.php:14
    • > PHP Warning
      Use of undefined constant WOO_BIGPOST_DIR - assumed 'WOO_BIGPOST_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-bigpost-shipping/includes/template-qoute-form/popup.php on line 10
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\BodySummarizerInterface' not found in wp-content/plugins/woo-bigpost-shipping/vendor/guzzlehttp/guzzle/src/BodySummarizer.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/woo-bigpost-shipping/vendor/guzzlehttp/psr7/src/DroppingStream.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/woo-bigpost-shipping/vendor/psr/http-message/src/RequestInterface.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/woo-bigpost-shipping/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/woo-bigpost-shipping/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/woo-bigpost-shipping/vendor/psr/http-message/src/ResponseInterface.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/woo-bigpost-shipping/vendor/guzzlehttp/psr7/src/BufferStream.php:17
    • > PHP Notice
      Undefined variable: class in wp-content/plugins/woo-bigpost-shipping/includes/template-qoute-form/default.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% 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
Attributes that need to be fixed:
  • Tags: You are using too many tags: 22 tag instead of maximum 10
Please take inspiration from this readme.txt

woo-bigpost-shipping/woo-bigpost-shipping.php 69% from 13 tests

The main file in "Big Post Shipping for WooCommerce" v. 1.7.22 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "3.4")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin19,695 lines of code in 172 files:
LanguageFilesBlank linesComment linesLines of code
PHP1383,1156,07914,113
Markdown131,15803,494
JavaScript5246831,010
JSON1100734
CSS35324328
make1409
YAML1007

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity16.24
▷ Minimum class complexity1.00
▷ Maximum class complexity192.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity74.00
Code structure
Namespaces9
Interfaces26
Traits3
Classes85
▷ Abstract classes00.00%
▷ Concrete classes85100.00%
▷ Final classes3440.00%
Methods822
▷ Static methods12515.21%
▷ Public methods70285.40%
▷ Protected methods40.49%
▷ Private methods11614.11%
Functions163
▷ Named functions7344.79%
▷ Anonymous functions9055.21%
Constants68
▷ Global constants57.35%
▷ Class constants6392.65%
▷ Public constants5282.54%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin