78% hilp

Code Review | Hilp - Wordpress support

WordPress plugin Hilp - Wordpress support scored78%from 54 tests.

About plugin

  • Plugin page: hilp
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.2.3
  • WordPress version: 6.3.1
  • First release: Nov 2, 2018
  • Latest release: Sep 12, 2019
  • Number of updates: 9
  • Update frequency: every 35.7 days
  • Top authors: hilp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /624 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.34ms] Passed 4 tests

This is a short check of server-side resources used by Hilp - Wordpress support
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0435.27 ▼12.60
Dashboard /wp-admin18.54 ▲15.192,960,205.89 ▲2,960,150.20
Posts /wp-admin/edit.php3.54 ▲0.1455.32 ▲5.12
Add New Post /wp-admin/post-new.php6.03 ▲0.0988.89 ▼16.89
Media Library /wp-admin/upload.php3.35 ▲0.0743.01 ▲3.01
Hilp /wp-admin/options-general.php?page=hilp_settings3.3334.93

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hilp - Wordpress support
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,384 ▲62314.58 ▲0.3635.26 ▲33.5350.96 ▲6.71
Dashboard /wp-admin2,223 ▲495.89 ▲0.3589.19 ▼11.7839.75 ▼4.05
Posts /wp-admin/edit.php2,128 ▲282.44 ▲0.4435.08 ▼1.3433.34 ▼0.16
Add New Post /wp-admin/post-new.php1,546 ▲2023.89 ▲0.86692.21 ▲29.4538.03 ▼11.93
Media Library /wp-admin/upload.php1,428 ▲284.48 ▲0.2598.60 ▼10.7948.02 ▼1.55
Hilp /wp-admin/options-general.php?page=hilp_settings2,3222.0534.2931.15

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=hilp_settings
    • > Notice in wp-content/plugins/hilp/admin/back/settings/views/default.php+74
    Trying to access array offset on value of type bool
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=hilp_settings
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=hilp_settings
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 11× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/hilp/admin/back/settings/views/login.php
    • > /wp-content/plugins/hilp/admin/back/settings/views/create_admin.php
    • > /wp-content/plugins/hilp/admin/back/settings/settings.php
    • > /wp-content/plugins/hilp/admin/back/settings/views/default.php
    • > /wp-content/plugins/hilp/admin/front/output.php
    • > /wp-content/plugins/hilp/actions.php
    • > /wp-content/plugins/hilp/admin/back/settings/views/register.php
    • > /wp-content/plugins/hilp/admin/back/settings/views/finished.php
    • > /wp-content/plugins/hilp/hilp.php
    • > /wp-content/plugins/hilp/functions.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: You are using too many tags: 20 tag instead of maximum 10
  • Plugin Name: Please specify the plugin name on the first line ( === hilp === )
You can look at the official readme.txt

hilp/hilp.php 92% from 13 tests

The main file in "Hilp - Wordpress support" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 161 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin16,243 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript61,1451,4189,155
CSS44402,919
SVG1002,671
Sass6801759
PHP116936739

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
Functions7
▷ Named functions114.29%
▷ Anonymous functions685.71%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/back/images/hilp-icon.png1.98KB1.13KB▼ 43.23%
admin/front/images/hilp-icon.png1.98KB1.13KB▼ 43.23%