Benchmarks
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.03MB] [CPU: ▼172.51ms] Passed 4 tests
Server-side resources used by Gokada Delivery for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.03 | 47.77 ▲2.75 |
Dashboard /wp-admin | 3.09 ▲0.04 | 51.44 ▼7.69 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 53.12 ▼0.30 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 100.23 ▼681.07 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 33.54 ▼0.97 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Gokada Delivery for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,721 ▲125 | 16.00 ▲0.71 | 12.65 ▲2.00 | 52.62 ▲3.02 |
Dashboard /wp-admin | 3,004 ▲73 | 6.00 ▲0.08 | 158.54 ▼14.57 | 114.37 ▼10.19 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.71 ▼0.00 | 76.17 ▼4.86 | 98.40 ▼4.56 |
Add New Post /wp-admin/post-new.php | 1,694 ▲79 | 18.66 ▼2.65 | 412.01 ▲105.04 | 114.97 ▲4.03 |
Media Library /wp-admin/upload.php | 1,825 ▲18 | 5.05 ▲0.02 | 153.65 ▼31.83 | 135.38 ▲9.08 |
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 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gokada-delivery-for-woocommerce/wcommerce-gokada-delivery.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #1, #2, #3 in gokada-delivery-for-woocommerce/assets to your readme.txt
- Contributors: Plugin contributors not specified
gokada-delivery-for-woocommerce/wcommerce-gokada-delivery.php 92% from 13 tests
The principal PHP file in "Gokada Delivery for WooCommerce" v. 1.3.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gokada-delivery-for-woocommerce.php" instead of "wcommerce-gokada-delivery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,153 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 234 | 379 | 935 |
JavaScript | 2 | 20 | 0 | 137 |
Markdown | 1 | 44 | 0 | 70 |
CSS | 1 | 2 | 0 | 11 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 21.80 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 4 | 6.35% |
▷ Public methods | 56 | 88.89% |
▷ Protected methods | 7 | 11.11% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 1 | 14.29% |
▷ Class constants | 6 | 85.71% |
▷ Public constants | 6 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.87MB with 0.58MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/gokada.png | 6.51KB | 2.57KB | ▼ 60.46% |
assets/screenshots/screenshot-2.png | 422.87KB | 121.89KB | ▼ 71.18% |
assets/screenshots/screenshot-3.png | 184.88KB | 71.06KB | ▼ 61.56% |
assets/screenshots/screenshot-1.png | 279.83KB | 81.69KB | ▼ 70.81% |