52% link-in-bio

Code Review | Link In Bio by EyeSeeT

WordPress plugin Link In Bio by EyeSeeT scored 52% from 54 tests.

About plugin

  • Plugin page: link-in-bio
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.3-5.8
  • WordPress version: 5.9.2
  • First release: Feb 6, 2021
  • Latest release: Sep 10, 2021
  • Number of updates: 9
  • Update frequency: every 24.4 days
  • Top authors: eyeseet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 757 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.15MB] [CPU: ▼342.59ms] Passed 4 tests

Server-side resources used by Link In Bio by EyeSeeT
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.2664.84 ▲10.97
Dashboard /wp-admin3.18 ▼0.2316.39 ▼22.24
Posts /wp-admin/edit.php3.18 ▼0.4615.55 ▼89.76
Add New Post /wp-admin/post-new.php3.18 ▼3.7916.62 ▼1,237.23
Media Library /wp-admin/upload.php3.18 ▼0.1214.69 ▼21.12
Link In Bio /wp-admin/edit.php?post_type=linkinbio3.1816.81
Settings /wp-admin/edit.php?post_type=linkinbio&page=settings3.4119.81
Add New /wp-admin/post-new.php?post_type=linkinbio3.1816.35

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Link In Bio by EyeSeeT
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,827 ▲7315.43 ▼0.215.80 ▼0.053.45 ▲1.08
Dashboard /wp-admin2,934 ▲736.13 ▼0.03116.37 ▼20.84158.68 ▼9.02
Posts /wp-admin/edit.php2,733 ▲393.25 ▲0.0163.56 ▼3.10141.81 ▼7.64
Add New Post /wp-admin/post-new.php1,737 ▼1521.36 ▲0.57443.30 ▼43.82184.53 ▲23.62
Media Library /wp-admin/upload.php1,738 ▲375.52 ▲0.01151.29 ▲3.03239.80 ▲47.16
Link In Bio /wp-admin/edit.php?post_type=linkinbio1,4063.1560.97114.43
Settings /wp-admin/edit.php?post_type=linkinbio&page=settings2,0665.5799.83140.67
Add New /wp-admin/post-new.php?post_type=linkinbio1,9933.9196.90138.89

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/link-in-bio/Base/Controllers/AbstractAdminController.php+38
    Undefined index: page
  • Uninstaller has failed for this plugin, leaving 17 files (0.08MB) in the plugin directory
    • (new file) Base/Controllers/AbstractAdminController.php
    • (new file) Base/Models/AdminMenu.php
    • (new file) Base/PluginHelper.php
    • (new file) Base/Controllers/CustomPostTypeController.php
    • (new file) Base/Controllers/AdminSettingsController.php
    • (new file) Controllers/LinkInBioCPT.php
    • (new file) Base/Controllers/AbstractController.php
    • (new file) Base/Helpers/SettingsUtil.php
    • (new file) Base/assets/admin/js/admin.js
    • (new file) Base/assets/admin/css/jquery-ui-fresh.css
    • ...
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • recovery_mode_email_last_sent

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=linkinbio
    • > Notice in wp-content/plugins/link-in-bio/Base/Controllers/AbstractAdminController.php+38
    Undefined index: page
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=linkinbio&page=settings
    • > Notice in wp-content/plugins/link-in-bio/Base/Controllers/AbstractAdminController.php+72
    Undefined index: action

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 take a closer look at the following
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'linkinbio\\Base\\Controllers\\AbstractController' not found in wp-content/plugins/link-in-bio/Controllers/LinkInBioPage.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'linkinbio\\Base\\Controllers\\AbstractController' not found in wp-content/plugins/link-in-bio/Base/Controllers/AbstractAdminController.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'linkinbio\\Base\\Controllers\\AdminSettingsController' not found in wp-content/plugins/link-in-bio/Controllers/LinkInBioSettings.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/link-in-bio/template/linkinbio.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'linkinbio\\Base\\Controllers\\AbstractAdminController' not found in wp-content/plugins/link-in-bio/Base/Controllers/AdminSettingsController.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'linkinbio\\Base\\Controllers\\CustomPostTypeController' not found in wp-content/plugins/link-in-bio/Controllers/LinkInBioCPT.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'linkinbio\\Base\\Controllers\\AbstractController' not found in wp-content/plugins/link-in-bio/Base/Controllers/CustomPostTypeController.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit.php?post_type=linkinbio&page=settings
    • > Network (severe)
    wp-content/plugins/link-in-bio/Base/assets/admin/css/admin.css?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots require images: #1 (Link In Bio in action), #2 (All Items Page), #3 (Add/Edit Item Page), #4 (Settings Page), #5 (Admin page status Link In Bio)
The official readme.txt is a good inspiration

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

"Link In Bio by EyeSeeT" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("link-in-bio.php" instead of "linkinbio.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,380 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP1226104810
CSS237152418
JavaScript1207152

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity9.40
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes10
▷ Abstract classes440.00%
▷ Concrete classes660.00%
▷ Final classes00.00%
Methods63
▷ Static methods1015.87%
▷ Public methods3250.79%
▷ Protected methods2946.03%
▷ Private methods23.17%
Functions23
▷ Named functions00.00%
▷ Anonymous functions23100.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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 images were found in this plugin