Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼143.79ms] Passed 4 tests
Analyzing server-side resources used by Plugin Name: Wicommerce Shipping Extension
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 39.48 ▲16.11 |
Dashboard /wp-admin | 3.06 ▲0.00 | 49.02 ▼3.22 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 48.11 ▲3.53 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 90.29 ▼577.53 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 33.00 ▲2.06 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Plugin Name: Wicommerce Shipping Extension
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.83 ▲0.28 | 11.15 ▲0.87 | 53.39 ▲5.72 |
Dashboard /wp-admin | 2,967 ▲30 | 5.85 ▼0.09 | 140.88 ▼7.42 | 114.79 ▼0.46 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.01 | 65.95 ▼3.80 | 95.58 ▲3.11 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.49 ▼0.31 | 374.80 ▼18.64 | 108.20 ▼0.10 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.05 ▲0.00 | 153.66 ▼10.91 | 118.45 ▼3.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wc-trinicargo-shipping/public/partials/wc-trinicargo-shipping-public-display.php
- > /wp-content/plugins/wc-trinicargo-shipping/admin/partials/wc-trinicargo-shipping-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== Plugin Name: Wicommerce Shipping Extension ===
)
wc-trinicargo-shipping/wc-trinicargo-shipping.php Passed 13 tests
The primary PHP file in "Plugin Name: Wicommerce Shipping Extension" version 1.0.0 is used by WordPress to initiate all plugin functionality
108 characters long description:
Shipping Extension Plugin for WooCommerce. Delivery services for Trinidad and Tobago provided by Trin-e-box.
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
Success! There were no dangerous files found in this plugin676 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 196 | 575 | 647 |
JSON | 1 | 0 | 0 | 19 |
JavaScript | 2 | 2 | 53 | 10 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 3.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 3 | 5.36% |
▷ Public methods | 47 | 83.93% |
▷ Protected methods | 2 | 3.57% |
▷ Private methods | 7 | 12.50% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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