Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.58ms] Passed 4 tests
A check of server-side resources used by Wolt drive for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.59 ▼7.41 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.72 ▼11.17 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.20 ▼0.96 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 84.25 ▼14.77 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.60 ▲2.81 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Wolt drive for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.56 ▼0.79 | 1.69 ▼0.01 | 42.32 ▼2.20 |
Dashboard /wp-admin | 2,203 ▲24 | 4.90 ▼1.01 | 103.17 ▼13.71 | 42.97 ▼8.56 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.03 | 39.03 ▲3.53 | 35.28 ▼1.22 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 23.32 ▲0.13 | 653.00 ▼6.61 | 52.94 ▲1.45 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.25 ▼0.02 | 96.40 ▼1.93 | 43.52 ▼0.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipping-for-wolt-drive-woocommerce/library/wcws_output_functions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipping-for-wolt-drive-woocommerce/library/wcws_promises_functions.php:75
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
These attributes need to be fixed:
- Tags: There are too many tags (14 tag instead of maximum 10)
- Contributors: Plugin contributors field is missing
shipping-for-wolt-drive-woocommerce/woocommerce_wolt_shipping.php 85% from 13 tests
Analyzing the main PHP file in "Wolt drive for WooCommerce" version 1.0.6
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("5.9" instead of "4.5.2")
- Main file name: Name the main plugin file the same as the plugin slug ("shipping-for-wolt-drive-woocommerce.php" instead of "woocommerce_wolt_shipping.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,380 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 238 | 147 | 884 |
SVG | 6 | 0 | 0 | 288 |
PO File | 1 | 68 | 76 | 192 |
CSS | 1 | 2 | 0 | 16 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 6.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 10.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin