89% taxonomy-chain-menu

Code Review | Taxonomy Chain Menu

WordPress plugin Taxonomy Chain Menu scored89%from 54 tests.

About plugin

  • Plugin page: taxonomy-chain-menu
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: WP 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Feb 25, 2021
  • Latest release: Aug 23, 2023
  • Number of updates: 16
  • Update frequency: every 56.9 days
  • Top authors: RealMag777 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /967 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.00MB] [CPU: ▼10.69ms] Passed 4 tests

Analyzing server-side resources used by Taxonomy Chain Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0340.86 ▼5.33
Dashboard /wp-admin3.32 ▼0.0249.47 ▼18.72
Posts /wp-admin/edit.php3.37 ▲0.0145.18 ▼4.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.28 ▼14.55
Media Library /wp-admin/upload.php3.24 ▲0.0138.11 ▼3.69

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Taxonomy Chain Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1714.38 ▼0.241.83 ▼0.8140.18 ▼9.85
Dashboard /wp-admin2,192 ▲155.58 ▼0.0883.73 ▼3.5940.63 ▼0.79
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0136.10 ▼4.1233.95 ▼3.20
Add New Post /wp-admin/post-new.php1,526 ▼517.59 ▼5.59669.16 ▲27.3453.69 ▲2.18
Media Library /wp-admin/upload.php1,400 ▲64.24 ▲0.0295.12 ▼7.4042.56 ▼1.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

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)
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Basic view) image required
You can look at the official readme.txt

taxonomy-chain-menu/index.php 69% from 13 tests

The principal PHP file in "Taxonomy Chain Menu" v. 1.0.8 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("taxonomy-chain-menu.php" instead of "index.php")
  • Requires PHP: Required version must match the one declared in readme.txt ("4.2" instead of "7.2")
  • Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "WP 3.5")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 293 characters long)

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
Success! There were no dangerous files found in this plugin1,274 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript317532652
PHP110829381
CSS23313160
PO File2202081

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity93.00
▷ Minimum class complexity93.00
▷ Maximum class complexity93.00
Average method complexity8.83
▷ Minimum method complexity3.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods333.33%
▷ Protected methods00.00%
▷ Private methods666.67%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin