78% taro-taxonomy-blocks

Code Review | Taro Taxonomy Blocks

WordPress plugin Taro Taxonomy Blocks scored78%from 54 tests.

About plugin

  • Plugin page: taro-taxonomy-blocks
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4
  • WordPress version: 6.3.1
  • First release: Sep 28, 2021
  • Latest release: Nov 21, 2023
  • Number of updates: 6
  • Update frequency: every 130.8 days
  • Top authors: Tarosky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,847 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.75ms] Passed 4 tests

An overview of server-side resources used by Taro Taxonomy Blocks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0735.03 ▼6.71
Dashboard /wp-admin3.37 ▲0.0647.98 ▼2.53
Posts /wp-admin/edit.php3.42 ▲0.0649.24 ▲0.29
Add New Post /wp-admin/post-new.php5.97 ▲0.0890.10 ▼6.06
Media Library /wp-admin/upload.php3.29 ▲0.0637.59 ▲0.42

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Taro Taxonomy Blocks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5514.34 ▲0.021.80 ▲0.0336.78 ▼6.49
Dashboard /wp-admin2,195 ▲175.63 ▼0.2992.24 ▼20.9743.09 ▼3.97
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0339.63 ▲1.7836.64 ▼3.26
Add New Post /wp-admin/post-new.php6,212 ▲4,68619.16 ▼4.13929.21 ▲262.6036.97 ▼14.19
Media Library /wp-admin/upload.php1,397 ▼04.25 ▲0.0696.43 ▼6.2441.21 ▲0.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/taro-taxonomy-blocks/template-parts/taxonomy-blocks/term-list.php
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/taro-taxonomy-blocks/template-parts/taxonomy-blocks/post-loop.php:10
    • > PHP Warning
      array_values() expects parameter 1 to be array, null given in wp-content/plugins/taro-taxonomy-blocks/template-parts/taxonomy-blocks/term-list-hierarchical.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/taro-taxonomy-blocks/template-parts/taxonomy-blocks/posts-list.php:12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/taro-taxonomy-blocks/template-parts/taxonomy-blocks/posts-list.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/taro-taxonomy-blocks/template-parts/taxonomy-blocks/term-item.php:10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/taro-taxonomy-blocks/template-parts/taxonomy-blocks/term-list.php on line 12
    • > PHP Warning
      array_filter() expects parameter 1 to be array, null given in wp-content/plugins/taro-taxonomy-blocks/template-parts/taxonomy-blocks/term-list-hierarchical.php on line 12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/taro-taxonomy-blocks/template-parts/taxonomy-blocks/term-list-hierarchical.php on line 10
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/taro-taxonomy-blocks/template-parts/taxonomy-blocks/term-list.php on line 12
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/taro-taxonomy-blocks/template-parts/taxonomy-blocks/term-list.php on line 11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: block editor, gutenberg, iframe

taro-taxonomy-blocks/taro-taxonomy-blocks.php 92% from 13 tests

"Taro Taxonomy Blocks" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
Everything looks great! No dangerous files found in this plugin812 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP619102329
JavaScript96043311
Sass218087
JSON20083
CSS2022

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.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 images were found in this plugin