Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▲3.42ms] Passed 4 tests
An overview of server-side resources used by Customize Dokan Dashboard Endpoints
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 43.90 ▲5.02 |
Dashboard /wp-admin | 3.56 ▲0.26 | 52.53 ▲2.93 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 53.61 ▲5.45 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 100.55 ▲0.28 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 42.69 ▲9.99 |
Server storage [IO: ▲2.58MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Customize Dokan Dashboard Endpoints: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.27 ▼0.08 | 1.92 ▲0.32 | 40.22 ▲1.01 |
Dashboard /wp-admin | 2,202 ▲21 | 5.59 ▼0.13 | 94.55 ▼14.28 | 43.36 ▲2.04 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.00 ▲0.02 | 41.28 ▲3.06 | 35.78 ▲0.34 |
Add New Post /wp-admin/post-new.php | 1,530 ▲3 | 23.11 ▼0.17 | 671.39 ▲31.19 | 58.94 ▲7.94 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▼0.02 | 100.63 ▼5.15 | 47.33 ▲4.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
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)
Everything seems fine, however 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
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function sysbasics\\is_admin() in wp-content/plugins/customize-dokan-dashboard-endpoints/lib/sysbasics/plugin-deactivation-survey/deactivate-feedback-form.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/customize-dokan-dashboard-endpoints/include/frontend/template.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-dokan-dashboard-endpoints/include/cddep_extra_functions.php:430
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/customize-dokan-dashboard-endpoints/include/frontend/woocommerce_frontend_endpoint.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/customize-dokan-dashboard-endpoints/include/admin/forms/settings_form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-dokan-dashboard-endpoints/include/admin/admin_settings.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 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: menu, endpoints, dokan customize dashboard, dashboard, dokan
customize-dokan-dashboard-endpoints/customize-dokan-dashboard-endpoints.php Passed 13 tests
"Customize Dokan Dashboard Endpoints" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
46 characters long description:
Customize Customize Dokan Dashboard Endpoints.
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
There were no executable files found in this plugin3,925 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 13 | 243 | 131 | 2,059 |
PHP | 7 | 785 | 174 | 1,145 |
JavaScript | 9 | 256 | 93 | 721 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 80.50 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 132.00 |
Average method complexity | 8.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 18 | 81.82% |
▷ Anonymous functions | 4 | 18.18% |
Constants | 7 | |
▷ Global constants | 7 | 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
7 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_cc0000_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
assets/css/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
assets/images/icon.png | 0.75KB | 0.92KB | 0.00% |
assets/css/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
assets/css/images/ui-icons_ffffff_256x240.png | 6.33KB | 4.18KB | ▼ 33.99% |