Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼12.53ms] Passed 4 tests
This is a short check of server-side resources used by Leave At Door For WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 25.64 ▼15.87 |
Dashboard /wp-admin | 3.36 ▲0.02 | 48.19 ▼18.13 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 54.79 ▲8.65 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 89.99 ▼15.51 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 37.31 ▼0.59 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Leave At Door For WooCommerce: 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,480 ▼291 | 14.79 ▲0.15 | 0.56 ▼1.46 | 18.85 ▼27.25 |
Dashboard /wp-admin | 2,221 ▲18 | 5.79 ▲0.92 | 118.75 ▲10.36 | 44.09 ▲6.97 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.00 | 41.03 ▲4.34 | 35.75 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,545 ▼0 | 23.03 ▼0.39 | 678.33 ▲1.43 | 70.76 ▲8.77 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▼0.03 | 111.80 ▲0.90 | 47.46 ▼2.24 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/leave-at-door-for-woocommerce/leave-at-door-for-woocommerce.php:148
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: woocommerce, plugin, restaurant, checkout, delivery
leave-at-door-for-woocommerce/leave-at-door-for-woocommerce.php 92% from 13 tests
Analyzing the main PHP file in "Leave At Door For WooCommerce" version 1.1.1
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0" instead of "4.4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected214 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 44 | 137 | 199 |
JavaScript | 1 | 1 | 3 | 9 |
CSS | 1 | 1 | 0 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 9 | |
▷ Static methods | 2 | 22.22% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin