Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼1.46ms] Passed 4 tests
This is a short check of server-side resources used by Pratkabg Shipping for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 48.68 ▲8.96 |
Dashboard /wp-admin | 3.31 ▼0.04 | 56.38 ▼7.70 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.18 ▲3.00 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.35 ▼1.47 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.63 ▲0.34 |
Server storage [IO: ▲0.81MB] [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: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Pratkabg Shipping for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.55 ▼0.82 | 1.94 ▲0.22 | 43.80 ▲1.99 |
Dashboard /wp-admin | 2,206 ▲18 | 5.92 ▲0.07 | 103.66 ▼10.79 | 39.57 ▼1.99 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▼0.01 | 40.88 ▲0.32 | 35.81 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.32 ▲0.81 | 615.74 ▼79.36 | 58.42 ▼1.77 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.26 ▲0.08 | 98.15 ▼11.07 | 41.98 ▼4.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% 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)
Good news, no errors were detected
SRP 0% 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
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wc-pratkabg-shipping/public/partials/woo-pratkabg-shipping-public-display.php
- > /wp-content/plugins/wc-pratkabg-shipping/admin/partials/woo-pratkabg-shipping-admin-display.php
- > /wp-content/plugins/wc-pratkabg-shipping/public/partials/woops-tracker-form.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/wc-pratkabg-shipping/includes/woo/class-wc-shipping-ecount.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/wc-pratkabg-shipping/includes/woo/class-wc-shipping-evropat.php:11
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (This is main plugin settings screen we will find under WooCommerce Settings Page.), #2 (This is a particular shipping zone setting screen where you have to add enable Pratkabg Shipping methods as shown in the screenshot.), #3 (This is WooCommerce checkout screen describes how the Pratkabg shipping method will be shown with the shipping calculated shipping costs.), #4 (This is the WooCommerce order admin screen. All sections marked by the red box are added by this plugin. The left two sections are destinations details and the right one shows the button to view and print the shipping label.)
wc-pratkabg-shipping/wc-pratkabg-shipping.php 92% from 13 tests
"Pratkabg Shipping for WooCommerce" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Git Repository: A Git repository was detected inside this plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin987 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 317 | 687 | 969 |
CSS | 2 | 2 | 8 | 12 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 10.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 2 | 3.28% |
▷ Public methods | 56 | 91.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.20% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.72MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.png | 76.70KB | 19.43KB | ▼ 74.66% |
assets/screenshot-4.png | 148.73KB | 49.16KB | ▼ 66.94% |
assets/screenshot-2.png | 105.98KB | 30.98KB | ▼ 70.77% |
assets/screenshot-1.png | 272.47KB | 75.68KB | ▼ 72.22% |
assets/screenshot-3.png | 136.53KB | 37.38KB | ▼ 72.62% |