84% hyperlink-group-block

Code Review | Hyperlink Group Block

WordPress plugin Hyperlink Group Block scored84%from 54 tests.

About plugin

  • Plugin page: hyperlink-group-b...
  • Plugin version: 1.17.1
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Jul 7, 2021
  • Latest release: Apr 25, 2023
  • Number of updates: 35
  • Update frequency: every 18.7 days
  • Top authors: Kometschuh (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /16,970 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Hyperlink Group Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.99 ▼2.42
Dashboard /wp-admin3.32 ▲0.0146.81 ▼3.95
Posts /wp-admin/edit.php3.37 ▲0.0143.49 ▼8.62
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.39 ▼16.09
Media Library /wp-admin/upload.php3.24 ▲0.0140.87 ▲3.92

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hyperlink Group Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.33 ▼0.031.69 ▼0.0346.08 ▼1.53
Dashboard /wp-admin2,198 ▲185.65 ▲0.0392.46 ▼7.5041.40 ▼2.92
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0233.59 ▼2.0137.22 ▼0.11
Add New Post /wp-admin/post-new.php6,364 ▲4,83827.80 ▲4.31876.02 ▲236.6456.67 ▼6.93
Media Library /wp-admin/upload.php1,397 ▼04.19 ▲0.0192.43 ▼8.9643.39 ▼1.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function hyperlinkGroup\\add_action() in wp-content/plugins/hyperlink-group-block/hyperlink-group-block.php:57

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: block, hyperlink, link, anchor, gutenberg

hyperlink-group-block/hyperlink-group-block.php Passed 13 tests

The main PHP file in "Hyperlink Group Block" ver. 1.17.1 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
Combine blocks into a group wrapped with an hyperlink (<a>).

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
Success! There were no dangerous files found in this plugin31,072 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JSON30030,986
PHP2102484
CSS1001
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.63
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
Namespaces1
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%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin