90% tkt-tree-view

Code Review | TukuToi Hierarchical Posts Tree View

WordPress plugin TukuToi Hierarchical Posts Tree View scored90%from 54 tests.

About plugin

  • Plugin page: tkt-tree-view
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 6.3.1
  • First release: Jul 7, 2021
  • Latest release: Jul 7, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: bedas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /480 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by TukuToi Hierarchical Posts Tree View
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0146.95 ▲1.66
Dashboard /wp-admin3.38 ▲0.0856.12 ▲7.20
Posts /wp-admin/edit.php3.49 ▲0.1454.57 ▲3.56
Add New Post /wp-admin/post-new.php5.96 ▲0.0892.44 ▼15.13
Media Library /wp-admin/upload.php3.30 ▲0.0735.87 ▼0.72

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

TukuToi Hierarchical Posts Tree View: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲5014.35 ▲0.061.66 ▼0.6043.15 ▼5.27
Dashboard /wp-admin2,242 ▲655.67 ▼0.0291.52 ▲3.8642.61 ▲0.82
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0635.68 ▼6.0835.18 ▼4.43
Add New Post /wp-admin/post-new.php1,534 ▲817.95 ▼5.38635.05 ▼49.3667.86 ▲17.68
Media Library /wp-admin/upload.php1,394 ▼34.13 ▼0.0696.13 ▼10.7543.40 ▼4.59

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 Passed 29 tests

readme.txt Passed 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
5 plugin tags: widget, pages, tree-view, hierarchical, classicpress

tkt-tree-view/tkt-tree-view.php Passed 13 tests

The main PHP script in "TukuToi Hierarchical Posts Tree View" version 1.0.3 is automatically included on every request by WordPress
81 characters long description:
WordPress Dashboard Widget displaying a Tree View of Hierarchical Pages or Posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin398 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6152457282
JavaScript1431564
CSS11452

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity5.75
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.63
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods1860.00%
▷ Protected methods00.00%
▷ Private methods1240.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin