89% navigation-tree-elementor

Code Review | Navigation Tree Elementor

WordPress plugin Navigation Tree Elementor scored89%from 54 tests.

About plugin

  • Plugin page: navigation-tree-e...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Apr 27, 2018
  • Latest release: May 23, 2018
  • Number of updates: 8
  • Update frequency: every 3.3 days
  • Top authors: wpdistillery (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

300+ active /7,287 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.17MB] [CPU: ▼17.50ms] Passed 4 tests

Analyzing server-side resources used by Navigation Tree Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.54 ▲1.47
Dashboard /wp-admin3.21 ▼0.1432.97 ▼27.14
Posts /wp-admin/edit.php3.27 ▼0.0938.50 ▼8.76
Add New Post /wp-admin/post-new.php5.45 ▼0.4471.59 ▼26.58
Media Library /wp-admin/upload.php3.21 ▼0.0228.49 ▼7.51

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Navigation Tree Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.011.73 ▲0.1042.39 ▼2.16
Dashboard /wp-admin2,192 ▲155.54 ▲0.0184.07 ▼0.4836.21 ▼4.00
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0138.97 ▲0.7136.60 ▼0.07
Add New Post /wp-admin/post-new.php1,535 ▲718.18 ▼5.01622.02 ▼19.2975.02 ▲24.69
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0893.97 ▼23.9442.18 ▼6.41

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Once the plugin is activated a new tab will appear on the right side of the editor screen.), #2 (Use the CSS ID field to set custom names for sections, columns or widgets)
Please take inspiration from this readme.txt

navigation-tree-elementor/elementor-navigation-tree.php 92% from 13 tests

The principal PHP file in "Navigation Tree Elementor" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("navigation-tree-elementor.php" instead of "elementor-navigation-tree.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected341 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS110150
PHP34448129
JavaScript118862

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants1
▷ 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
No PNG files were detected