Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.22MB] [CPU: ▲0.67ms] Passed 4 tests
An overview of server-side resources used by Dokan Order Approval
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 47.80 ▲8.86 |
Dashboard /wp-admin | 3.58 ▲0.28 | 77.39 ▲26.33 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 47.33 ▲1.68 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 80.98 ▼11.53 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.28 ▲3.66 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Dokan Order Approval: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 14.29 ▼0.43 | 1.76 ▲0.05 | 44.91 ▼2.45 |
Dashboard /wp-admin | 2,239 ▲58 | 5.63 ▼0.29 | 83.18 ▼17.34 | 41.92 ▼6.59 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.13 ▲0.12 | 35.96 ▼0.16 | 31.54 ▼3.04 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 23.11 ▼0.05 | 678.40 ▲3.08 | 58.91 ▲2.16 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.25 ▲0.05 | 100.33 ▼8.53 | 46.51 ▼0.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/dokan-order-approval/includes/class-dokan-order-approval-vendor-order.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dokan-order-approval/includes/class-sg-dokan-order-approval-wc_email.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function sevengits\\is_admin() in wp-content/plugins/dokan-order-approval/plugin-deactivation-survey/deactivate-feedback-form.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: dokan pre order, dokan, dokan order, dokan order approval, dokan-lite
dokan-order-approval/dokan-order-approval.php 92% from 13 tests
"Dokan Order Approval" version 2.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "3.7")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,547 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 267 | 1,020 | 1,084 |
CSS | 6 | 108 | 47 | 353 |
JavaScript | 2 | 25 | 12 | 92 |
Markdown | 1 | 7 | 0 | 18 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 7.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 3 | 4.92% |
▷ Public methods | 45 | 73.77% |
▷ Protected methods | 8 | 13.11% |
▷ Private methods | 8 | 13.11% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin