10% widget-taxonomy

Code Review | Widget Taxonomy

WordPress plugin Widget Taxonomy scored 10% from 54 tests.

About plugin

  • Plugin page: widget-taxonomy
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.1.1
  • WordPress version: 6.3.1
  • First release: Jun 7, 2017
  • Latest release: Mar 30, 2019
  • Number of updates: 5
  • Update frequency: every 132.4 days
  • Top authors: juiiee8487 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 808 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/widget-taxonomy/widget-texonomy .php+176
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼50.50ms] Passed 4 tests

Server-side resources used by Widget Taxonomy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.29 ▼36.38
Dashboard /wp-admin2.05 ▼1.266.02 ▼43.71
Posts /wp-admin/edit.php2.05 ▼1.315.74 ▼36.79
Add New Post /wp-admin/post-new.php2.05 ▼3.846.45 ▼85.10
Media Library /wp-admin/upload.php2.05 ▼1.185.00 ▼25.61

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_taxonomy_terms
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Widget Taxonomy: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.14 ▼1.251.69 ▼0.1944.61 ▲0.10
Dashboard /wp-admin2,206 ▲185.87 ▲0.97102.83 ▼15.4338.89 ▼9.69
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0441.64 ▲1.6237.51 ▲1.10
Add New Post /wp-admin/post-new.php1,521 ▼1723.39 ▲0.11719.58 ▲48.1155.41 ▲1.00
Media Library /wp-admin/upload.php1,388 ▲34.18 ▼0.0298.34 ▼8.8941.34 ▼3.23

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
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/widget-taxonomy/widget-texonomy .php+176
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_taxonomy_terms

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: custom post type taxonomy widget, term, widget taxonomy, taxonomy, widget

widget-taxonomy/widget-texonomy .php 85% from 13 tests

"Widget Taxonomy" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("widget-taxonomy.php" instead of "widget-texonomy .php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected117 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12732117

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.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%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png44.50KB20.80KB▼ 53.26%
screenshot-1.png7.79KB4.62KB▼ 40.66%