84% desk-net

Code Review | Desk-Net

WordPress plugin Desk-Net scored84%from 54 tests.

About plugin

  • Plugin page: desk-net
  • Plugin version: 1.4.15
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.10-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 15, 2017
  • Latest release: Nov 28, 2023
  • Number of updates: 43
  • Update frequency: every 54.8 days
  • Top authors: desknet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,610 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.81MB] [CPU: ▲0.79ms] Passed 4 tests

Server-side resources used by Desk-Net
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.24 ▲0.7844.08 ▲1.67
Dashboard /wp-admin4.14 ▲0.8054.60 ▼5.75
Posts /wp-admin/edit.php4.20 ▲0.8456.71 ▲10.07
Add New Post /wp-admin/post-new.php6.71 ▲0.82101.28 ▲1.50
Media Library /wp-admin/upload.php4.07 ▲0.8440.75 ▲5.72
Status Matching /wp-admin/admin.php?page=wp_desk_net_status_matching4.0338.50
Slug Syncing /wp-admin/admin.php?page=wp_desk_net_slug_syncing4.0540.83
Content Settings /wp-admin/admin.php?page=wp_desk_net_content_matching4.0436.72
WordPress Credentials /wp-admin/admin.php?page=wp-desk-net4.0336.52
Category Matching /wp-admin/admin.php?page=wp_desk_net_category_matching4.0335.31
Desk-Net Credentials /wp-admin/admin.php?page=wp_desk_net_credential4.0335.74
Custom Fields Matching /wp-admin/admin.php?page=wp_desk_net_custom_fields_matching4.0336.20
Desk-Net ID in URL /wp-admin/admin.php?page=wp_desk_net_permalinks4.0335.30
Task Matching /wp-admin/admin.php?page=wp_desk_net_task_matching4.0335.54

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 29 new files
Database: 1 new table, 8 new options
New tables
wp_desk_net_tokens
New WordPress options
wp_desk_net_api_key
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
wp_desk_net_api_secret
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Desk-Net
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9814.35 ▼0.361.56 ▼0.2239.13 ▼5.39
Dashboard /wp-admin2,250 ▲755.59 ▲0.0195.26 ▼3.2443.63 ▲5.80
Posts /wp-admin/edit.php2,155 ▲552.01 ▲0.0440.26 ▲1.4634.90 ▲2.72
Add New Post /wp-admin/post-new.php1,584 ▲5822.88 ▼0.33675.46 ▲12.4035.73 ▼22.77
Media Library /wp-admin/upload.php1,455 ▲554.42 ▲0.2594.84 ▼4.3740.97 ▼2.02
Status Matching /wp-admin/admin.php?page=wp_desk_net_status_matching8122.1426.3424.51
Slug Syncing /wp-admin/admin.php?page=wp_desk_net_slug_syncing9001.9826.7437.56
Content Settings /wp-admin/admin.php?page=wp_desk_net_content_matching9592.0124.5532.14
WordPress Credentials /wp-admin/admin.php?page=wp-desk-net9011.6524.7927.43
Category Matching /wp-admin/admin.php?page=wp_desk_net_category_matching8152.0225.1525.01
Desk-Net Credentials /wp-admin/admin.php?page=wp_desk_net_credential8432.0226.8127.20
Custom Fields Matching /wp-admin/admin.php?page=wp_desk_net_custom_fields_matching8122.0224.7224.39
Desk-Net ID in URL /wp-admin/admin.php?page=wp_desk_net_permalinks8342.0528.1526.68
Task Matching /wp-admin/admin.php?page=wp_desk_net_task_matching8152.0125.4824.56

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function pages\\plugin_dir_path() in wp-content/plugins/desk-net/include/pages/class-desk-net-pages.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/desk-net/include/pages/task-matching/class-task-matching-page.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function desk_net_credentials_page\\plugin_dir_path() in wp-content/plugins/desk-net/include/pages/desk-net-credentials/class-desk-net-credentials-page.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/desk-net/include/pages/custom-fields/class-custom-fields-matching-page.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/desk-net/include/class-desk-net-request-methods.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/desk-net/include/class-desk-net-delete-methods.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/desk-net/include/pages/status-matching/class-status-matching-page.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/desk-net/include/class-desk-net-update-methods.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/desk-net/include/pages/slug-syncing/class-slug-syncing-page.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/desk-net/desk-net.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: desknet, calendar, desk, story, desk net...

desk-net/desk-net.php Passed 13 tests

The main PHP file in "Desk-Net" ver. 1.4.15 adds more information about the plugin and also serves as the entry point for this plugin
35 characters long description:
Desk-Net integration with WordPress

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
Everything looks great! No dangerous files found in this plugin4,796 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP221,0341,7104,423
CSS2503234
JavaScript2206136
SVG1003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity30.52
▷ Minimum class complexity1.00
▷ Maximum class complexity234.00
Average method complexity4.07
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods202
▷ Static methods2311.39%
▷ Public methods18089.11%
▷ Protected methods10.50%
▷ Private methods2110.40%
Functions10
▷ Named functions550.00%
▷ Anonymous functions550.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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 files were detected