84% universal-link-in-bio

Code Review | Universal Link in bio

WordPress plugin Universal Link in bio scored84%from 54 tests.

About plugin

  • Plugin page: universal-link-in...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 13, 2021
  • Latest release: May 18, 2021
  • Number of updates: 9
  • Update frequency: every 0.7 days
  • Top authors: talbiconsept (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /433 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.31ms] Passed 4 tests

Server-side resources used by Universal Link in bio
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.71 ▼0.73
Dashboard /wp-admin3.32 ▼0.0344.47 ▼10.85
Posts /wp-admin/edit.php3.37 ▲0.0148.04 ▲2.22
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.62 ▼3.87
Media Library /wp-admin/upload.php3.24 ▲0.0138.05 ▲3.76
Universal Link in bio /wp-admin/options-general.php?page=universal-link-in-bio3.2030.18

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Universal Link in bio
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.33 ▼1.051.66 ▲0.0538.52 ▲1.64
Dashboard /wp-admin2,210 ▲194.88 ▼0.97105.43 ▲0.1637.92 ▼4.25
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0238.81 ▼1.2434.88 ▼5.65
Add New Post /wp-admin/post-new.php1,522 ▲323.16 ▼0.04644.41 ▲34.4154.30 ▼0.18
Media Library /wp-admin/upload.php1,392 ▲44.11 ▼0.14106.52 ▲9.9646.00 ▲3.10
Universal Link in bio /wp-admin/options-general.php?page=universal-link-in-bio8172.0725.6731.10

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/universal-link-in-bio/universal-link-in-bio.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
5 plugin tags: link, pinterest, instagram, social, bio

universal-link-in-bio/universal-link-in-bio.php Passed 13 tests

The main PHP file in "Universal Link in bio" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
Plugin to add a static Link in bio url to your website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin216 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11832111
PO File23030105

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin