94% woo-fast-mail

Code Review | WooCommerce Fast Mail Shipping

WordPress plugin WooCommerce Fast Mail Shipping scored 94% from 54 tests.

About plugin

  • Plugin page: woo-fast-mail
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.3.2
  • WordPress version: 5.8.1
  • First release: Jan 10, 2020
  • Latest release: Jan 10, 2020
  • Number of updates: 3
  • Update frequency: every 28.0 days
  • Top authors: ConradoGalli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 230 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼141.08ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce Fast Mail Shipping
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1532.26 ▲5.92
Dashboard /wp-admin3.10 ▲0.0443.07 ▼1.20
Posts /wp-admin/edit.php3.15 ▲0.0444.24 ▼0.00
Add New Post /wp-admin/post-new.php5.46 ▲0.0389.20 ▼557.76
Media Library /wp-admin/upload.php3.04 ▲0.0331.53 ▼5.37

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Fast Mail Shipping
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,668 ▲7215.95 ▲0.495.85 ▼2.4653.98 ▲8.86
Dashboard /wp-admin2,973 ▲425.95 ▼0.05135.33 ▼7.19114.19 ▼3.16
Posts /wp-admin/edit.php2,736 ▼32.69 ▼0.0167.58 ▲1.9088.45 ▼3.69
Add New Post /wp-admin/post-new.php1,672 ▲17418.81 ▲0.01362.68 ▼5.32105.72 ▲0.66
Media Library /wp-admin/upload.php1,807 ▼04.96 ▼0.06146.65 ▼3.65114.61 ▼7.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 3× 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/woo-fast-mail/wanderlust-fastmail-shipping.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-fast-mail/includes/data/services.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-fast-mail/includes/functions.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: fastmail, rates, woocommerce, shipping

woo-fast-mail/wanderlust-fastmail-shipping.php 92% from 13 tests

The main file in "WooCommerce Fast Mail Shipping" v. 0.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-fast-mail.php" instead of "wanderlust-fastmail-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,221 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity24.75
▷ Minimum class complexity3.00
▷ Maximum class complexity35.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4989.09%
▷ Protected methods00.00%
▷ Private methods610.91%
▷ Named functions12100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin