Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/urwa-for-dokan/urwa-for-dokan.php+127
Declaration of urwa_dokan_widget::widget() should be compatible with WP_Widget::widget($args, $instance)
Server metrics [RAM: ▼1.92MB] [CPU: ▼53.09ms] Passed 4 tests
Server-side resources used by URWA for Dokan
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 5.61 ▼36.59 |
Dashboard /wp-admin | 2.09 ▼1.21 | 6.31 ▼44.18 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 6.04 ▼41.52 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 5.29 ▼90.07 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.48 ▼26.86 |
Server storage [IO: ▲0.02MB] [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: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_urwa_dokan_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for URWA for Dokan
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.74 ▲0.42 | 1.85 ▼0.05 | 44.75 ▼3.63 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▼0.02 | 110.91 ▼4.90 | 41.46 ▼5.17 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.01 ▲0.02 | 34.24 ▼4.01 | 38.49 ▲5.44 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.18 ▲5.31 | 662.68 ▼6.10 | 54.68 ▼8.97 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.21 ▲0.01 | 95.89 ▲0.33 | 43.28 ▼0.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/urwa-for-dokan/urwa-for-dokan.php+127
Declaration of urwa_dokan_widget::widget() should be compatible with WP_Widget::widget($args, $instance)
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_urwa_dokan_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/urwa-for-dokan/urwa-for-dokan.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
urwa-for-dokan/urwa-for-dokan.php Passed 13 tests
The primary PHP file in "URWA for Dokan" version 1.0 is used by WordPress to initiate all plugin functionality
82 characters long description:
Selectively display widgets to logged in users based on standard Dokan user roles.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected92 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 44 | 43 | 92 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.74 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin