84% hello-hal

Code Review | Hello HAL

WordPress plugin Hello HAL scored 84% from 54 tests.

About plugin

  • Plugin page: hello-hal
  • Plugin version: 3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 30, 2008
  • Latest release: Feb 23, 2023
  • Number of updates: 69
  • Update frequency: every 78.0 days
  • Top authors: doc4 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,421 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.18MB] [CPU: ▼18.95ms] Passed 4 tests

Server-side resources used by Hello HAL
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.32 ▼3.76
Dashboard /wp-admin3.13 ▼0.1729.91 ▼21.65
Posts /wp-admin/edit.php3.26 ▼0.0930.73 ▼18.73
Add New Post /wp-admin/post-new.php5.46 ▼0.4373.15 ▼29.94
Media Library /wp-admin/upload.php3.20 ▼0.0329.79 ▼5.48

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hello HAL
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.63 ▼0.794.41 ▲2.6938.09 ▼10.56
Dashboard /wp-admin2,221 ▲324.84 ▼0.0996.80 ▼29.4338.73 ▼2.40
Posts /wp-admin/edit.php2,100 ▲142.02 ▲0.0235.99 ▼3.8433.24 ▼4.59
Add New Post /wp-admin/post-new.php1,549 ▲1523.13 ▼0.12574.21 ▼38.3958.96 ▲5.33
Media Library /wp-admin/upload.php1,400 ▲94.21 ▼0.0197.82 ▼5.8043.08 ▲0.69

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-hal/hello-HAL.php:181

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

hello-hal/hello-HAL.php 92% from 13 tests

The principal PHP file in "Hello HAL" v. 3.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hello-hal.php" instead of "hello-HAL.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin166 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11832166

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.09
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