10% sm-dashboard-pages-navigator-tree

Code Review | SM Dashboard Pages Navigator Tree

WordPress plugin SM Dashboard Pages Navigator Tree scored10%from 54 tests.

About plugin

  • Plugin page: sm-dashboard-page...
  • Plugin version: 2.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.1.1
  • WordPress version: 6.3.1
  • First release: Feb 21, 2014
  • Latest release: Apr 12, 2019
  • Number of updates: 29
  • Update frequency: every 68.9 days
  • Top authors: sethcarstens (68.97%)sethmatics (34.48%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /3,020 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.15MB] [CPU: ▼1.45ms] Passed 4 tests

An overview of server-side resources used by SM Dashboard Pages Navigator Tree
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1447.46 ▲1.23
Dashboard /wp-admin3.48 ▲0.1861.10 ▲7.52
Posts /wp-admin/edit.php3.55 ▲0.2057.82 ▲5.15
Add New Post /wp-admin/post-new.php6.03 ▲0.1485.22 ▼15.05
Media Library /wp-admin/upload.php3.36 ▲0.1441.28 ▲2.88

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

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

Browser metrics Passed 4 tests

SM Dashboard Pages Navigator Tree: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14114.35 ▼0.282.39 ▲0.7541.30 ▲0.78
Dashboard /wp-admin2,311 ▲1345.72 ▲0.1591.25 ▼4.7936.44 ▼6.29
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0338.61 ▲0.4336.86 ▲1.60
Add New Post /wp-admin/post-new.php1,526 ▼223.74 ▲0.66677.77 ▼31.2251.27 ▼3.84
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.0397.98 ▼6.6442.32 ▼6.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WPAZ_Plugin_Base\\V_2_6\\Abstract_Plugin' not found in wp-content/plugins/sm-dashboard-pages-navigator-tree/app/class-plugin.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt might help

sm-dashboard-pages-navigator-tree/sm-dashboard-pages-navigator-tree.php Passed 13 tests

The main PHP script in "SM Dashboard Pages Navigator Tree" version 2.1.4 is automatically included on every request by WordPress
86 characters long description:
Dashboard widget with Pages Navigator and a FrontEnd shortcode to build html sitemaps.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,000 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP6148499543
Markdown5480168
YAML240126
JSON50079
JavaScript22135
XML20030
CSS10019

PHP code Passed 2 tests

This is a short overview 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.29
Average class complexity15.60
▷ Minimum class complexity2.00
▷ Maximum class complexity27.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods44
▷ Static methods2965.91%
▷ Public methods3784.09%
▷ Protected methods36.82%
▷ Private methods49.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected