84% fusedesk

Code Review | FuseDesk

WordPress plugin FuseDesk scored84%from 54 tests.

About plugin

  • Plugin page: fusedesk
  • Plugin version: 6.6.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-6.0.2
  • WordPress version: 6.3.1
  • First release: Mar 13, 2013
  • Latest release: Jan 3, 2023
  • Number of updates: 47
  • Update frequency: every 76.3 days
  • Top authors: jeremyshapiro (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /7,084 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.26MB] [CPU: ▼2.83ms] Passed 4 tests

A check of server-side resources used by FuseDesk
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2642.48 ▲3.53
Dashboard /wp-admin3.56 ▲0.2548.42 ▼1.08
Posts /wp-admin/edit.php3.67 ▲0.3146.67 ▼0.86
Add New Post /wp-admin/post-new.php6.17 ▲0.2984.62 ▼5.97
Media Library /wp-admin/upload.php3.48 ▲0.2536.14 ▼3.42
FuseDesk /wp-admin/options-general.php?page=fusedesk3.7233.36

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

FuseDesk: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16613.94 ▼0.738.28 ▲6.5741.95 ▼1.20
Dashboard /wp-admin2,212 ▲215.86 ▲0.96102.03 ▼4.9838.76 ▼6.39
Posts /wp-admin/edit.php2,101 ▲152.15 ▲0.1136.89 ▲2.0731.82 ▼4.19
Add New Post /wp-admin/post-new.php6,204 ▲4,68519.81 ▼3.30930.15 ▲334.8340.53 ▼11.54
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0394.36 ▼10.4041.17 ▼4.57
FuseDesk /wp-admin/options-general.php?page=fusedesk1,0411.7224.2131.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fusedesk/fusedesk-blocks/fusedesk-blocks.php:100
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fusedesk/fusedesk.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function fusedesk_verifyscope() in wp-content/plugins/fusedesk/options.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

fusedesk/fusedesk.php 92% from 13 tests

This is the main PHP file of "FuseDesk" version 6.6.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 269 characters long)

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 detected2,169 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP73753431,760
JSON3120284
JavaScript51623119
Markdown1404
CSS3102

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions56
▷ Named functions5496.43%
▷ Anonymous functions23.57%
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
No PNG images were found in this plugin