Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼146.44ms] Passed 4 tests
Analyzing server-side resources used by Widz
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.21 | 38.24 ▲11.40 |
Dashboard /wp-admin | 3.56 ▲0.50 | 48.07 ▼0.54 |
Posts /wp-admin/edit.php | 3.67 ▲0.56 | 48.93 ▼10.34 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.48 | 96.84 ▼580.67 |
Media Library /wp-admin/upload.php | 3.54 ▲0.53 | 38.03 ▲5.79 |
Server storage [IO: ▲1.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_widz_tabbed_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Widz
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,790 ▲194 | 16.32 ▲0.82 | 10.70 ▼0.78 | 48.09 ▼4.81 |
Dashboard /wp-admin | 2,973 ▲42 | 5.89 ▼0.01 | 142.18 ▼14.07 | 126.68 ▲10.09 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.02 | 72.04 ▼0.18 | 93.24 ▼2.87 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.69 ▲2.82 | 399.95 ▼4.58 | 124.72 ▲9.14 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.02 ▼0.02 | 158.04 ▲7.03 | 126.80 ▼1.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- widget_widz_tabbed_widget
Smoke tests 50% 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 0% 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 fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/widz/includes/admin-fields/field_default.php
- > /wp-content/plugins/widz/includes/admin-fields/field_icon_picker.php
- > /wp-content/plugins/widz/includes/admin-fields/field_widget.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/widz/widz.php:94
- > PHP Fatal error
Uncaught Error: Class 'Widz_Widget' not found in wp-content/plugins/widz/includes/widgets/tabbed.php:15
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
widz/widz.php Passed 13 tests
"Widz" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
136 characters long description:
Widz is a WordPress Widget that helps user easy to create Tab Item by available widget and display as Tabbed on the Front end in Sidebar
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin9,586 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 185 | 81 | 3,635 |
SVG | 2 | 0 | 0 | 2,690 |
PHP | 6 | 215 | 339 | 1,326 |
Sass | 5 | 112 | 0 | 1,268 |
JavaScript | 8 | 192 | 256 | 626 |
Markdown | 1 | 16 | 0 | 21 |
HTML | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 16.67 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
assets/images/remove.png | 0.26KB | 0.25KB | ▼ 3.77% |
assets/images/select2.png | 0.60KB | 0.99KB | 0.00% |
assets/images/add-large.png | 0.11KB | 0.11KB | 0.00% |
assets/images/add.png | 0.13KB | 0.11KB | ▼ 17.91% |