84% desktopserver

Code Review | DesktopServer for WordPress

WordPress plugin DesktopServer for WordPress scored 84% from 54 tests.

About plugin

  • Plugin page: desktopserver
  • Plugin version: 1.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2013
  • Latest release: Sep 18, 2020
  • Number of updates: 28
  • Update frequency: every 99.1 days
  • Top authors: Steveorevo (78.57%)davejesch (25%)

Code review

54 tests

User reviews

24 reviews

Install metrics

1,000+ active / 91,009 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.47ms] Passed 4 tests

This is a short check of server-side resources used by DesktopServer for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.35 ▼2.30
Dashboard /wp-admin3.32 ▲0.0151.77 ▼1.01
Posts /wp-admin/edit.php3.37 ▲0.0145.29 ▲1.82
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.39 ▼8.38
Media Library /wp-admin/upload.php3.24 ▲0.0135.78 ▲2.58

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

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

Browser metrics Passed 4 tests

Checking browser requirements for DesktopServer for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.39 ▼1.204.14 ▲2.5138.37 ▼5.89
Dashboard /wp-admin2,203 ▲154.88 ▼0.0597.27 ▼6.4343.51 ▲3.30
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.1036.38 ▲2.8231.62 ▼2.07
Add New Post /wp-admin/post-new.php1,514 ▼517.76 ▼5.10656.65 ▲0.1261.94 ▼4.96
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.0693.79 ▼8.3040.20 ▼5.76

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/desktopserver/desktopserver.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
8 plugin tags: desktopserver, copy, hosting, localhost, publish...

desktopserver/desktopserver.php 92% from 13 tests

Analyzing the main PHP file in "DesktopServer for WordPress" version 1.6.2
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 333 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
Success! There were no dangerous files found in this plugin778 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3138303778

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity94.50
▷ Minimum class complexity86.00
▷ Maximum class complexity103.00
Average method complexity7.68
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods13.57%
▷ Public methods1139.29%
▷ Protected methods00.00%
▷ Private methods1760.71%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants12100.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