83% hello-server

Code Review | Hello Server by Liquid Web

WordPress plugin Hello Server by Liquid Web scored83%from 54 tests.

About plugin

  • Plugin page: hello-server
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.3.0
  • WordPress version: 6.3.1
  • First release: Feb 22, 2017
  • Latest release: Nov 21, 2019
  • Number of updates: 78
  • Update frequency: every 12.9 days
  • Top authors: liquidwebdan (97.44%)norcross (3.85%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,460 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▲1.46ms] Passed 4 tests

An overview of server-side resources used by Hello Server by Liquid Web
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0844.97 ▲1.71
Dashboard /wp-admin3.36 ▲0.0653.64 ▲2.94
Posts /wp-admin/edit.php3.41 ▲0.0551.01 ▲3.03
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.68 ▼1.85
Media Library /wp-admin/upload.php3.29 ▲0.0540.45 ▲6.36

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Hello Server by Liquid Web
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲15313.30 ▼1.071.69 ▼0.1448.76 ▲2.26
Dashboard /wp-admin2,254 ▲634.89 ▼0.96106.98 ▲0.3543.12 ▲2.60
Posts /wp-admin/edit.php2,131 ▲422.03 ▲0.0235.33 ▼5.2733.25 ▼4.64
Add New Post /wp-admin/post-new.php1,577 ▲5723.49 ▲0.15652.80 ▼96.4656.46 ▼12.89
Media Library /wp-admin/upload.php1,430 ▲424.21 ▼0.0292.42 ▼5.9740.49 ▼7.06

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
The following issues need your attention
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/hello-server/tests/bootstrap.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-server/hello-server.php:63
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/hello-server/tests/bootstrap.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-server/hello-server.php:63

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 86% 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: cluster, multi-node, hostname, clustering, server info...

hello-server/hello-server.php 69% from 13 tests

Analyzing the main PHP file in "Hello Server by Liquid Web" version 1.3.1
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin878 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PO File11165165535
PHP463132222
Bourne Shell121799
XML22022

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.16
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected