10% dynamic-taxonomy-menu-items

Code Review | Dynamic Taxonomy Menu Items

WordPress plugin Dynamic Taxonomy Menu Items scored10%from 54 tests.

About plugin

  • Plugin page: dynamic-taxonomy-...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.3.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Apr 21, 2020
  • Latest release: May 5, 2020
  • Number of updates: 11
  • Update frequency: every 1.3 days
  • Top authors: richard.coffee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,347 total downloads


Plugin footprint 58% 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
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/dynamic-taxonomy-menu-items/classes/Register/Register.php+328
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▲0.08MB] [CPU: ▼11.61ms] Passed 4 tests

An overview of server-side resources used by Dynamic Taxonomy Menu Items
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0127.68 ▼17.14
Dashboard /wp-admin3.42 ▲0.0750.94 ▼18.59
Posts /wp-admin/edit.php3.47 ▲0.1149.85 ▼0.75
Add New Post /wp-admin/post-new.php6.00 ▲0.1189.20 ▼9.96
Media Library /wp-admin/upload.php3.34 ▲0.1138.27 ▲0.36
Dynamic Taxonomy /wp-admin/themes.php?page=dyntaxmi3.4145.78

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Dynamic Taxonomy Menu Items: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.40 ▼0.201.78 ▲0.1045.62 ▲2.15
Dashboard /wp-admin2,196 ▲195.58 ▼0.0980.73 ▼37.4637.55 ▼12.17
Posts /wp-admin/edit.php2,104 ▲41.96 ▲0.0035.46 ▼2.0133.23 ▼0.65
Add New Post /wp-admin/post-new.php1,549 ▼523.25 ▲4.99692.70 ▲95.0851.96 ▼2.52
Media Library /wp-admin/upload.php1,404 ▲14.21 ▼0.00106.58 ▲3.8446.30 ▲1.68
Dynamic Taxonomy /wp-admin/themes.php?page=dyntaxmi1,0382.4866.1256.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

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

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
The SRP test was a success

User-side errors Passed 1 test

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


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
5 plugin tags: bbpress, dynamic, menu, woocommerce, taxonomy

dynamic-taxonomy-menu-items/dynamic-taxonomy-menu-items.php 92% from 13 tests

The entry point to "Dynamic Taxonomy Menu Items" version 1.1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,765 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity22.48
▷ Minimum class complexity1.00
▷ Maximum class complexity164.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
▷ Abstract classes425.00%
▷ Concrete classes1275.00%
▷ Final classes00.00%
▷ Static methods2812.39%
▷ Public methods10546.46%
▷ Protected methods6026.55%
▷ Private methods6126.99%
▷ Named functions1392.86%
▷ Anonymous functions17.14%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin