Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.87MB] [CPU: ▼32.56ms] Passed 4 tests
An overview of server-side resources used by Shipping-Based Products for woocommerce and Ali2Woo
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.80 ▲0.76 |
Dashboard /wp-admin | 3.07 ▼0.23 | 24.63 ▼23.76 |
Posts /wp-admin/edit.php | 3.07 ▼0.29 | 27.21 ▼24.10 |
Add New Post /wp-admin/post-new.php | 3.07 ▼2.82 | 23.22 ▼73.39 |
Media Library /wp-admin/upload.php | 3.07 ▼0.16 | 26.23 ▼8.99 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Shipping-Based Products for woocommerce and Ali2Woo: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲88 | 13.32 ▼1.46 | 1.59 ▼0.00 | 44.18 ▲1.50 |
Dashboard /wp-admin | 2,229 ▲40 | 5.88 ▲0.94 | 100.91 ▼12.64 | 39.76 ▼5.44 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.05 ▼0.00 | 39.20 ▼1.35 | 36.56 ▲0.97 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 17.59 ▼6.02 | 697.05 ▼25.19 | 52.93 ▼21.31 |
Media Library /wp-admin/upload.php | 1,408 ▲17 | 4.16 ▼0.04 | 99.44 ▼13.93 | 40.92 ▼7.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/functions.php+6691
file_get_contents(wp-content/plugins/ali2woo/ali2woo.php): failed to open stream: No such file or directory
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% 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
Please fix the following attributes:
- Donate link: Invalid url: "paypal.me/younesdro"
shipment-based-product-for-ali2woo/wc-aliexpress-shipping-based-product.php 77% from 13 tests
The principal PHP file in "Shipping-Based Products for woocommerce and Ali2Woo" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.3.2" instead of "3.7.0")
- Main file name: Name the main plugin file the same as the plugin slug ("shipment-based-product-for-ali2woo.php" instead of "wc-aliexpress-shipping-based-product.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin515 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 202 | 289 | 419 |
PO File | 1 | 18 | 19 | 82 |
CSS | 2 | 4 | 8 | 14 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 11 | 22.92% |
▷ Public methods | 47 | 97.92% |
▷ Protected methods | 1 | 2.08% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 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
There were not PNG files found in your plugin