94% hostdispatch

Code Review | HostDispatch

WordPress plugin HostDispatch scored 94% from 54 tests.

About plugin

  • Plugin page: hostdispatch
  • Plugin version: 1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 5.8.1
  • First release: Feb 16, 2014
  • Latest release: Feb 16, 2014
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: satrap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 532 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼169.25ms] Passed 4 tests

This is a short check of server-side resources used by HostDispatch
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1236.21 ▲15.48
Dashboard /wp-admin3.84 ▲0.7855.89 ▲9.13
Posts /wp-admin/edit.php3.12 ▲0.0142.12 ▼0.10
Add New Post /wp-admin/post-new.php5.44 ▼0.0094.30 ▼685.54
Media Library /wp-admin/upload.php3.01 ▲0.0130.70 ▼0.48

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for HostDispatch
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲18915.93 ▲0.3510.27 ▲0.9947.92 ▲1.24
Dashboard /wp-admin3,083 ▲1505.93 ▼0.29133.04 ▼43.29105.89 ▼2.64
Posts /wp-admin/edit.php2,736 ▼32.72 ▼0.0061.62 ▲0.6090.74 ▼0.02
Add New Post /wp-admin/post-new.php1,615 ▼25721.87 ▲2.76269.95 ▼94.55102.62 ▼14.07
Media Library /wp-admin/upload.php1,807 ▼05.06 ▼0.00141.76 ▼8.19121.64 ▲5.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.16MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hostdispatch/hostdispatch.php:75

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 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
3 plugin tags: rss feed, hostdispatch, dashboard widget

hostdispatch/hostdispatch.php 92% from 13 tests

The principal PHP file in "HostDispatch" v. 1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected49 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP123949

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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