84% woo-aus-ezi-freight

Code Review | Woo Aus EZi Freight

WordPress plugin Woo Aus EZi Freight scored84%from 54 tests.

About plugin

  • Plugin page: woo-aus-ezi-freight
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 6.3.1
  • First release: Jan 22, 2015
  • Latest release: Aug 20, 2018
  • Number of updates: 29
  • Update frequency: every 45.1 days
  • Top authors: renoirIII (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,479 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by Woo Aus EZi Freight
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.44 ▼5.55
Dashboard /wp-admin3.31 ▲0.0143.22 ▲1.23
Posts /wp-admin/edit.php3.36 ▲0.0047.54 ▲0.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.13 ▼1.93
Media Library /wp-admin/upload.php3.23 ▲0.0035.26 ▼0.72

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Aus EZi Freight
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.224.43 ▲2.6440.79 ▲0.98
Dashboard /wp-admin2,209 ▲375.91 ▼0.0196.61 ▼13.5341.87 ▲1.78
Posts /wp-admin/edit.php2,092 ▼01.98 ▼0.0140.05 ▼0.7136.05 ▼0.39
Add New Post /wp-admin/post-new.php1,519 ▼1423.18 ▼0.03674.48 ▼30.0263.98 ▼0.48
Media Library /wp-admin/upload.php1,385 ▼64.21 ▲0.0594.24 ▼12.9744.27 ▼6.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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
Good news, no errors were detected

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
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'EFW_PLUGIN_DIR/admin/setting/class-efw-settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-aus-ezi-freight/admin/admin.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/woo-aus-ezi-freight/ezihosting-freight-woocommerce.php:12
    • > PHP Warning
      require_once(EFW_PLUGIN_DIR/admin/setting/class-efw-settings.php): failed to open stream: No such file or directory in wp-content/plugins/woo-aus-ezi-freight/admin/admin.php on line 2
    • > PHP Warning
      Use of undefined constant EFW_PLUGIN_DIR - assumed 'EFW_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-aus-ezi-freight/admin/admin.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/woo-aus-ezi-freight/includes/class-efw-shipping.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: woocommerce, australia, freight

woo-aus-ezi-freight/ezihosting-freight-woocommerce.php 85% from 13 tests

The main file in "Woo Aus EZi Freight" v. 1.1.3 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:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-aus-ezi-freight.php" instead of "ezihosting-freight-woocommerce.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 300 characters long)

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 plugin1,516 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP12256711,360
JavaScript1301156

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity20.50
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods52
▷ Static methods1936.54%
▷ Public methods3975.00%
▷ Protected methods00.00%
▷ Private methods1325.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
There were not PNG files found in your plugin