78% multi-link-in-bio

Code Review | Multi Link in Bio

WordPress plugin Multi Link in Bio scored78%from 54 tests.

About plugin

  • Plugin page: multi-link-in-bio
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 14, 2021
  • Latest release: Dec 7, 2022
  • Number of updates: 10
  • Update frequency: every 54.1 days
  • Top authors: renzotejada (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /648 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Multi Link in Bio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.52 ▲1.68
Dashboard /wp-admin3.40 ▲0.0947.76 ▼2.60
Posts /wp-admin/edit.php3.45 ▲0.0949.66 ▲1.58
Add New Post /wp-admin/post-new.php5.98 ▲0.0982.56 ▼16.77
Media Library /wp-admin/upload.php3.32 ▲0.0935.29 ▲0.79
Link in Bio /wp-admin/admin.php?page=link_settings3.2627.41

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Multi Link in Bio
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.28 ▼0.072.02 ▲0.4042.19 ▼2.16
Dashboard /wp-admin2,214 ▲375.63 ▲0.0597.20 ▼4.0042.05 ▼2.49
Posts /wp-admin/edit.php2,119 ▲192.03 ▲0.0634.61 ▼2.9334.10 ▼2.85
Add New Post /wp-admin/post-new.php1,542 ▲1623.61 ▼0.06674.08 ▲14.4452.71 ▼2.83
Media Library /wp-admin/upload.php1,419 ▲164.17 ▲0.00101.18 ▲5.8543.46 ▼1.47
Link in Bio /wp-admin/admin.php?page=link_settings9741.9922.2328.63

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=link_settings
    • > Notice in wp-content/plugins/multi-link-in-bio/link_admin.php+43
    Undefined index: tab

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multi-link-in-bio/link_shortcode.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/multi-link-in-bio/template/link-bio-template.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Attributes that require attention: The official readme.txt is a good inspiration

multi-link-in-bio/multi-link-in-bio.php 85% from 13 tests

The main PHP file in "Multi Link in Bio" ver. 0.1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • 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
  • Requires at least: Required version does not match the one declared in readme.txt ("5.2" instead of "2.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected979 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP44928612
PO File28082202
CSS114512165

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants1
▷ Global constants1100.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
No PNG files were detected