10% multisite-taxonomy-widget

Code Review | Multisite Taxonomy Widget

WordPress plugin Multisite Taxonomy Widget scored10%from 54 tests.

About plugin

  • Plugin page: multisite-taxonom...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-4.3
  • WordPress version: 6.3.1
  • First release: Jan 13, 2013
  • Latest release: Aug 18, 2015
  • Number of updates: 22
  • Update frequency: every 43.0 days
  • Top authors: realloc (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,426 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
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/multisite-taxonomy-widget/MultisiteTaxonomyWidget.php+181
    Function create_function() is deprecated

Server metrics [RAM: ▼1.89MB] [CPU: ▼56.90ms] Passed 4 tests

A check of server-side resources used by Multisite Taxonomy Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.80 ▼36.67
Dashboard /wp-admin2.11 ▼1.196.33 ▼46.95
Posts /wp-admin/edit.php2.11 ▼1.245.65 ▼46.37
Add New Post /wp-admin/post-new.php2.11 ▼3.775.43 ▼97.62
Media Library /wp-admin/upload.php2.11 ▼1.115.51 ▼31.14

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Multisite Taxonomy Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.211.85 ▲0.0146.96 ▲2.86
Dashboard /wp-admin2,206 ▲214.88 ▼0.95103.07 ▼2.5441.21 ▼3.95
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0336.97 ▼4.1839.09 ▲1.12
Add New Post /wp-admin/post-new.php1,514 ▼517.76 ▼5.08680.91 ▲64.1257.98 ▼7.92
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.02103.54 ▼5.7845.57 ▲0.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/multisite-taxonomy-widget/MultisiteTaxonomyWidget.php+181
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_mtw
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/multisite-taxonomy-widget/MultisiteTaxonomyWidget.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: multisite, taxonomy, widget, recent posts, tag...

multisite-taxonomy-widget/MultisiteTaxonomyWidget.php 92% from 13 tests

"Multisite Taxonomy Widget" version 1.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 ("multisite-taxonomy-widget.php" instead of "MultisiteTaxonomyWidget.php")

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 plugin264 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP146160202
PO File2121262

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected