84% taxonomy-terms-list-block

Code Review | Taxonomy Terms List Block

WordPress plugin Taxonomy Terms List Block scored84%from 54 tests.

About plugin

  • Plugin page: taxonomy-terms-li...
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.9
  • WordPress version: 6.3.1
  • First release: Feb 11, 2022
  • Latest release: Dec 12, 2022
  • Number of updates: 16
  • Update frequency: every 19.0 days
  • Top authors: igmoweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,141 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼11.98ms] Passed 4 tests

Server-side resources used by Taxonomy Terms List Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.58 ▼0.36
Dashboard /wp-admin3.34 ▼0.0051.12 ▼18.68
Posts /wp-admin/edit.php3.39 ▲0.0452.28 ▼2.25
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.39 ▼26.62
Media Library /wp-admin/upload.php3.26 ▲0.0339.87 ▲2.02

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Taxonomy Terms List Block
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.45 ▲0.081.94 ▲0.3446.67 ▲4.10
Dashboard /wp-admin2,195 ▲155.61 ▼0.0281.52 ▼9.2439.80 ▼3.95
Posts /wp-admin/edit.php2,103 ▼02.03 ▲0.0439.42 ▼3.2035.86 ▼3.96
Add New Post /wp-admin/post-new.php6,364 ▲4,83827.52 ▲4.49894.77 ▲233.0677.35 ▲23.16
Media Library /wp-admin/upload.php1,400 ▼34.03 ▼0.17104.29 ▼5.3943.64 ▼6.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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 | 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function TaxonomyBlock\\plugin_dir_path() in wp-content/plugins/taxonomy-terms-list-block/taxonomy-block.php:22

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 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: taxonomy, content, block

taxonomy-terms-list-block/taxonomy-block.php 85% from 13 tests

The main PHP file in "Taxonomy Terms List Block" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("taxonomy-terms-list-block.php" instead of "taxonomy-block.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin348 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript7187210
PHP3254173
JSON10054
Markdown1407
CSS2004

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
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
Namespaces2
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin