84% onedesk

Code Review | OneDesk

WordPress plugin OneDesk scored84%from 54 tests.

About plugin

  • Plugin page: onedesk
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.5.36+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.2
  • WordPress version: 6.3.1
  • First release: May 21, 2019
  • Latest release: May 30, 2023
  • Number of updates: 8
  • Update frequency: every 184.1 days
  • Top authors: onedesk (62.5%)tylerrwatsonn (50%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /784 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.87ms] Passed 4 tests

This is a short check of server-side resources used by OneDesk
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0237.70 ▼2.49
Dashboard /wp-admin3.33 ▲0.0345.50 ▼1.15
Posts /wp-admin/edit.php3.38 ▲0.0348.56 ▲3.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.56 ▼3.38
Media Library /wp-admin/upload.php3.25 ▲0.0336.45 ▲3.56
OneDesk Plugin /wp-admin/options-general.php?page=odwidget-settings3.2230.89

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by OneDesk
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9814.45 ▲0.181.88 ▲0.0139.35 ▼6.82
Dashboard /wp-admin2,210 ▲184.84 ▼0.07102.33 ▼8.7940.06 ▼4.63
Posts /wp-admin/edit.php2,093 ▲72.05 ▲0.0440.35 ▲5.2734.22 ▲2.74
Add New Post /wp-admin/post-new.php1,536 ▼623.26 ▲4.71591.23 ▼29.9460.85 ▼5.07
Media Library /wp-admin/upload.php1,395 ▲74.22 ▲0.0696.45 ▼0.8840.86 ▼2.60
OneDesk Plugin /wp-admin/options-general.php?page=odwidget-settings8482.0222.6143.57

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_odplugin_widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 4× 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/onedesk/includes/odplugin-scripts.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/onedesk/templates/ODSettingsPage.php:235
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/onedesk/includes/odplugin-class.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/onedesk/onedesk.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


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
10 plugin tags: solutions, business, software, feedback, messenger...

onedesk/onedesk.php Passed 13 tests

Analyzing the main PHP file in "OneDesk" version 0.1.0
79 characters long description:
Add the OneDesk Widget for easy access to OneDesk from any page on your website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected226 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin