Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/urwa-for-woocommerce/urwa-for-woocommerce.php+105
Declaration of urwa_woocommerce_widget::widget() should be compatible with WP_Widget::widget($args, $instance)
Server metrics [RAM: ▼1.92MB] [CPU: ▼53.87ms] Passed 4 tests
This is a short check of server-side resources used by URWA for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.40 | 4.37 ▼35.32 |
Dashboard /wp-admin | 2.09 ▼1.22 | 5.63 ▼45.12 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 6.22 ▼39.65 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 6.10 ▼95.40 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.29 ▼31.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 |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_urwa_woocommerce_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for URWA for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.38 ▼0.21 | 1.66 ▼0.03 | 36.94 ▼2.84 |
Dashboard /wp-admin | 2,192 ▲15 | 5.55 ▼0.10 | 82.75 ▼9.29 | 37.49 ▼1.10 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.97 ▲0.02 | 35.76 ▼0.74 | 37.28 ▲4.88 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.14 ▼0.04 | 664.50 ▼15.45 | 55.64 ▲3.71 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.14 ▼0.12 | 109.38 ▲11.93 | 47.93 ▲3.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/urwa-for-woocommerce/urwa-for-woocommerce.php+105
Declaration of urwa_woocommerce_widget::widget() should be compatible with WP_Widget::widget($args, $instance)
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- widget_urwa_woocommerce_widget
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- 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 | 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/urwa-for-woocommerce/urwa-for-woocommerce.php
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
urwa-for-woocommerce/urwa-for-woocommerce.php Passed 13 tests
Analyzing the main PHP file in "URWA for WooCommerce" version 1.0
88 characters long description:
Selectively display widgets to logged in users based on standard WooCommerce 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
There were no executable files found in this plugin73 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 40 | 42 | 73 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin