Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼10.64ms] Passed 4 tests
A check of server-side resources used by Burq: On-Demand Delivery for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.45 ▼4.29 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.60 ▼4.90 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.29 ▼12.68 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.31 ▼20.70 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.88 ▲2.05 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Burq: On-Demand Delivery for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.72 ▲0.07 | 1.98 ▲0.30 | 43.13 ▼1.11 |
Dashboard /wp-admin | 2,198 ▲21 | 5.49 ▼0.11 | 88.48 ▼9.84 | 39.87 ▼2.75 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.02 | 34.98 ▼5.13 | 33.71 ▼7.36 |
Add New Post /wp-admin/post-new.php | 1,528 ▼9 | 23.30 ▲4.92 | 659.59 ▲22.05 | 52.87 ▼15.61 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.20 ▲0.02 | 109.71 ▲7.98 | 47.71 ▲4.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-burq-on-demand-delivery/burq-on-demand-delivery-for-woocommerce.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-burq-on-demand-delivery/includes/shipping.php:104
- > PHP Fatal error
require_once(): Failed opening required 'BURQ_PLUGIN_DIRincludes/api.php' (include_path='.:/usr/share/php') in wp-content/plugins/wc-burq-on-demand-delivery/includes/loader.php on line 21
- > PHP Warning
Use of undefined constant BURQ_PLUGIN_DIR - assumed 'BURQ_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wc-burq-on-demand-delivery/includes/loader.php on line 21
- > PHP Warning
require_once(BURQ_PLUGIN_DIRincludes/api.php): failed to open stream: No such file or directory in wp-content/plugins/wc-burq-on-demand-delivery/includes/loader.php on line 21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: on-demand-delivery, shipping-quote, shipping-plugin, woocommerce, wordpress...
wc-burq-on-demand-delivery/burq-on-demand-delivery-for-woocommerce.php 92% from 13 tests
Analyzing the main PHP file in "Burq: On-Demand Delivery for WooCommerce" version 1.0
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-burq-on-demand-delivery.php" instead of "burq-on-demand-delivery-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin345 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 126 | 116 | 345 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin