84% rich-taxonomy

Code Review | Rich Taxonomy

WordPress plugin Rich Taxonomy scored84%from 54 tests.

About plugin

  • Plugin page: rich-taxonomy
  • Plugin version: 1.1.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Nov 17, 2021
  • Latest release: Nov 15, 2023
  • Number of updates: 11
  • Update frequency: every 66.3 days
  • Top authors: Tarosky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,782 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.38MB] [CPU: ▼1.29ms] Passed 4 tests

This is a short check of server-side resources used by Rich Taxonomy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.4040.53 ▼0.71
Dashboard /wp-admin3.68 ▲0.3848.59 ▼3.80
Posts /wp-admin/edit.php3.73 ▲0.3848.45 ▲3.18
Add New Post /wp-admin/post-new.php6.28 ▲0.3992.26 ▼3.77
Media Library /wp-admin/upload.php3.61 ▲0.3836.56 ▲3.13

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Rich Taxonomy
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲13613.78 ▼0.968.13 ▲6.5240.32 ▼4.44
Dashboard /wp-admin2,198 ▲215.62 ▼0.0190.88 ▼12.0039.52 ▼8.44
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.1739.64 ▲0.1836.20 ▲0.67
Add New Post /wp-admin/post-new.php1,546 ▲2022.40 ▼1.19670.27 ▼67.6147.60 ▼4.75
Media Library /wp-admin/upload.php1,394 ▼94.19 ▼0.0999.12 ▼0.5543.53 ▲3.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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
Good news, no errors were detected

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 take a closer look at the following
  • 24× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\RichTaxonomy\\Pattern\\BlockPattern' not found in wp-content/plugins/rich-taxonomy/src/Tarosky/RichTaxonomy/Pattern/DynamicBlockPattern.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\RichTaxonomy\\Pattern\\Singleton' not found in wp-content/plugins/rich-taxonomy/src/Tarosky/RichTaxonomy/Controller/Setting.php:13
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/rich-taxonomy/template-parts/rich-taxonomy/archive-block-wrapper.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\RichTaxonomy\\Pattern\\Singleton' not found in wp-content/plugins/rich-taxonomy/src/Tarosky/RichTaxonomy/Controller/Rewrites.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\RichTaxonomy\\Pattern\\RestApiPattern' not found in wp-content/plugins/rich-taxonomy/src/Tarosky/RichTaxonomy/Api/PostApi.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\RichTaxonomy\\Pattern\\Singleton' not found in wp-content/plugins/rich-taxonomy/src/Tarosky/RichTaxonomy/Pattern/AbstractVendor.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\RichTaxonomy\\Pattern\\Singleton' not found in wp-content/plugins/rich-taxonomy/src/Tarosky/RichTaxonomy/Controller/Editor.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\RichTaxonomy\\Pattern\\Singleton' not found in wp-content/plugins/rich-taxonomy/src/Tarosky/RichTaxonomy/Controller/DataSync.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\RichTaxonomy\\Pattern\\RestApiPattern' not found in wp-content/plugins/rich-taxonomy/src/Tarosky/RichTaxonomy/Api/TermApi.php:13
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/rich-taxonomy/template-parts/rich-taxonomy/archive-block-wrapper.php on line 18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: seo, taxonomy, terms

rich-taxonomy/rich-taxonomy.php 92% from 13 tests

The main file in "Rich Taxonomy" v. 1.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,235 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP353321,0711,700
JavaScript112863232
JSON410190
Sass2260111
CSS20122

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity9.74
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces9
Interfaces0
Traits4
Classes19
▷ Abstract classes526.32%
▷ Concrete classes1473.68%
▷ Final classes00.00%
Methods139
▷ Static methods2014.39%
▷ Public methods10071.94%
▷ Protected methods3525.18%
▷ Private methods42.88%
Functions12
▷ Named functions433.33%
▷ Anonymous functions866.67%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin