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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.44 ▼5.55 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.22 ▲1.23 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.54 ▲0.79 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.13 ▼1.93 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.17 ▼1.22 | 4.43 ▲2.64 | 40.79 ▲0.98 |
Dashboard /wp-admin | 2,209 ▲37 | 5.91 ▼0.01 | 96.61 ▼13.53 | 41.87 ▲1.78 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 1.98 ▼0.01 | 40.05 ▼0.71 | 36.05 ▼0.39 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 23.18 ▼0.03 | 674.48 ▼30.02 | 63.98 ▼0.48 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.21 ▲0.05 | 94.24 ▼12.97 | 44.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 256 | 71 | 1,360 |
JavaScript | 1 | 30 | 1 | 156 |
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 code | 0.35 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 19 | 36.54% |
▷ Public methods | 39 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 25.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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