78% widz

Code Review | Widz

WordPress plugin Widz scored 78% from 54 tests.

About plugin

  • Plugin page: widz
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7
  • WordPress version: 5.8.1
  • First release: Dec 29, 2016
  • Latest release: Dec 29, 2016
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: vutuan.sw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 447 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.2138.24 ▲11.40
Dashboard /wp-admin3.56 ▲0.5048.07 ▼0.54
Posts /wp-admin/edit.php3.67 ▲0.5648.93 ▼10.34
Add New Post /wp-admin/post-new.php5.92 ▲0.4896.84 ▼580.67
Media Library /wp-admin/upload.php3.54 ▲0.5338.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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Widz
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,790 ▲19416.32 ▲0.8210.70 ▼0.7848.09 ▼4.81
Dashboard /wp-admin2,973 ▲425.89 ▼0.01142.18 ▼14.07126.68 ▲10.09
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0272.04 ▼0.1893.24 ▼2.87
Add New Post /wp-admin/post-new.php1,683 ▼018.69 ▲2.82399.95 ▼4.58124.72 ▲9.14
Media Library /wp-admin/upload.php1,810 ▲35.02 ▼0.02158.04 ▲7.03126.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

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


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: ""
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.45
Average class complexity16.67
▷ Minimum class complexity9.00
▷ Maximum class complexity30.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
▷ Static methods14.55%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions12100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/images/select2x2.png0.83KB0.77KB▼ 6.15%
assets/images/remove.png0.26KB0.25KB▼ 3.77%
assets/images/add.png0.13KB0.11KB▼ 17.91%