10% taxonomies-widget

Code Review | Taxonomies Widget

WordPress plugin Taxonomies Widget scored10%from 54 tests.

About plugin

  • Plugin page: taxonomies-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Apr 6, 2018
  • Latest release: Apr 6, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: deepaksharma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /502 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/taxonomies-widget/widget-taxonomies.php+10
    Methods with the same name as their class will not be constructors in a future version of PHP; vh_taxonomy_cat has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼55.57ms] Passed 4 tests

An overview of server-side resources used by Taxonomies Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.53 ▼37.05
Dashboard /wp-admin2.09 ▼1.2110.20 ▼46.42
Posts /wp-admin/edit.php2.09 ▼1.266.40 ▼40.72
Add New Post /wp-admin/post-new.php2.09 ▼3.795.87 ▼98.09
Media Library /wp-admin/upload.php2.09 ▼1.144.78 ▼34.16

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_taxonomy-cat-widget
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Taxonomies Widget: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.41 ▲0.061.86 ▼0.0945.22 ▲4.40
Dashboard /wp-admin2,195 ▲245.63 ▼0.0288.81 ▲2.6438.82 ▼7.24
Posts /wp-admin/edit.php2,097 ▼31.96 ▼0.0135.14 ▲0.3532.63 ▼11.32
Add New Post /wp-admin/post-new.php1,536 ▲122.98 ▲4.86637.18 ▼51.5249.21 ▼35.90
Media Library /wp-admin/upload.php1,394 ▼64.20 ▼0.0298.15 ▼4.2743.60 ▼5.61

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
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/taxonomies-widget/widget-taxonomies.php+10
    Methods with the same name as their class will not be constructors in a future version of PHP; vh_taxonomy_cat has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_taxonomy-cat-widget
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/taxonomies-widget/widget-taxonomies.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Admin Widget.), #2 (Visiable in frontend Sidebar.)
The official readme.txt might help

taxonomies-widget/widget-taxonomies.php 92% from 13 tests

Analyzing the main PHP file in "Taxonomies Widget" version 1.0
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("taxonomies-widget.php" instead of "widget-taxonomies.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin69 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15869

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png15.12KB5.75KB▼ 61.99%
screenshot-2.png7.83KB2.70KB▼ 65.57%