Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.75ms] Passed 4 tests
An overview of server-side resources used by AWSA Shipping - Advanced Shipping for Woocommerce and Dokan
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.06 ▲2.22 |
Dashboard /wp-admin | 3.36 ▲0.01 | 50.32 ▼18.14 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 55.78 ▲5.50 |
Add New Post /wp-admin/post-new.php | 7.98 ▲2.09 | 107.54 ▲11.24 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 40.62 ▲3.41 |
Tools /wp-admin/admin.php?page=awsa-shipping-tools | 3.29 | 33.13 |
Sefareshi Post /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=awsa-sefareshi | 3.05 | 22.33 |
Shipping Settings /wp-admin/admin.php?page=awsa-shipping-settings | 3.33 | 29.44 |
Fast Delivery /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=awsa-pishtaz | 3.05 | 26.00 |
Air Delivery /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=awsa-air-delivery | 3.05 | 20.24 |
Express delivery /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=awsa-express | 3.05 | 29.09 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 167 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by AWSA Shipping - Advanced Shipping for Woocommerce and Dokan
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲112 | 13.26 ▼1.03 | 4.35 ▲2.12 | 42.94 ▼0.47 |
Dashboard /wp-admin | 2,264 ▲76 | 5.86 ▲0.82 | 112.53 ▼2.07 | 39.89 ▼3.36 |
Posts /wp-admin/edit.php | 2,147 ▲58 | 2.05 ▲0.00 | 40.94 ▲0.57 | 36.48 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,559 ▲29 | 23.46 ▲5.02 | 680.32 ▲40.95 | 58.27 ▼2.61 |
Media Library /wp-admin/upload.php | 1,447 ▲59 | 4.20 ▲0.02 | 96.86 ▼11.00 | 45.67 ▼3.22 |
Tools /wp-admin/admin.php?page=awsa-shipping-tools | 842 | 2.07 | 28.22 | 31.54 |
Sefareshi Post /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=awsa-sefareshi | 28 | 0.44 | 0.06 | 3.82 |
Shipping Settings /wp-admin/admin.php?page=awsa-shipping-settings | 992 | 1.97 | 31.08 | 29.40 |
Fast Delivery /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=awsa-pishtaz | 28 | 0.44 | 0.10 | 3.80 |
Air Delivery /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=awsa-air-delivery | 28 | 0.44 | 0.08 | 3.66 |
Express delivery /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=awsa-express | 28 | 0.44 | 0.14 | 5.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 25% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/awsa-shipping/vendor/asan/phpexcel/tests/xlsTest.php
- > /wp-content/plugins/awsa-shipping/vendor/asan/phpexcel/tests/csvTest.php
- > /wp-content/plugins/awsa-shipping/vendor/asan/phpexcel/tests/xlsxTest.php
- 37× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'AWSA_Core\\APIs\\Settings\\Fields\\Display\\Base' not found in wp-content/plugins/awsa-shipping/includes/core/apis/settings/fields/display/class-html.php:5
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/awsa-shipping/vendor/asan/phpexcel/src/Parser/Excel2007.php on line 404
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/awsa-shipping/includes/class-shipping-method-sefareshi.php:18
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/awsa-shipping/includes/class-shipping-method-express.php:18
- > PHP Fatal error
Uncaught Error: Class 'AWSA_Core\\APIs\\Settings\\Fields\\Display\\Base' not found in wp-content/plugins/awsa-shipping/includes/core/apis/settings/fields/display/class-select.php:5
- > PHP Fatal error
Uncaught Error: Class 'AWSA_Settings_Page_Fields' not found in wp-content/plugins/awsa-shipping/includes/class-shipping-settings-page-fields.php:15
- > PHP Warning
require_once(wp-content/plugins/awsa-shipping/vendor/ellumilel/php-excel-writer/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/awsa-shipping/vendor/ellumilel/php-excel-writer/examples/more-than-one.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'AWSA_Core\\APIs\\Settings\\Fields\\Validate\\Base' not found in wp-content/plugins/awsa-shipping/includes/core/apis/settings/fields/validate/class-select.php:5
- > PHP Fatal error
Uncaught Error: Class 'AWSA_Core\\APIs\\Settings\\Settings_Page_Fields' not found in wp-content/plugins/awsa-shipping/includes/class-settings-page-fields.php:17
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/awsa-shipping/vendor/ellumilel/php-excel-writer/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/awsa-shipping/vendor/ellumilel/php-excel-writer/examples/more-than-one.php on line 2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=awsa-sefareshi
- > Network (severe)
wp-admin/admin.php?page=wc-settings&tab=shipping§ion=awsa-sefareshi - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=awsa-pishtaz
- > Network (severe)
wp-admin/admin.php?page=wc-settings&tab=shipping§ion=awsa-pishtaz - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=awsa-air-delivery
- > Network (severe)
wp-admin/admin.php?page=wc-settings&tab=shipping§ion=awsa-air-delivery - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=awsa-express
- > Network (severe)
wp-admin/admin.php?page=wc-settings&tab=shipping§ion=awsa-express - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
1 plugin tags: awsa-shipping
awsa-shipping/awsa-shipping.php 85% from 13 tests
The main PHP file in "AWSA Shipping - Advanced Shipping for Woocommerce and Dokan" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.0" instead of "7.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected24,026 lines of code in 139 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 117 | 3,307 | 5,313 | 22,311 |
JavaScript | 10 | 144 | 60 | 892 |
PO File | 1 | 156 | 378 | 380 |
Markdown | 2 | 62 | 0 | 233 |
JSON | 4 | 0 | 0 | 170 |
YAML | 2 | 4 | 0 | 27 |
XML | 1 | 0 | 0 | 8 |
CSS | 2 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 16.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 276.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 88 | |
▷ Abstract classes | 5 | 5.68% |
▷ Concrete classes | 83 | 94.32% |
▷ Final classes | 3 | 3.61% |
Methods | 562 | |
▷ Static methods | 196 | 34.88% |
▷ Public methods | 462 | 82.21% |
▷ Protected methods | 22 | 3.91% |
▷ Private methods | 78 | 13.88% |
Functions | 54 | |
▷ Named functions | 48 | 88.89% |
▷ Anonymous functions | 6 | 11.11% |
Constants | 84 | |
▷ Global constants | 23 | 27.38% |
▷ Class constants | 61 | 72.62% |
▷ Public constants | 61 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin