90% link-in-bio-wp

Code Review | Link In Bio WP

WordPress plugin Link In Bio WP scored90%from 54 tests.

About plugin

  • Plugin page: link-in-bio-wp
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Apr 1, 2020
  • Latest release: Apr 23, 2020
  • Number of updates: 7
  • Update frequency: every 3.1 days
  • Top authors: sgarza (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /998 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.43MB] [CPU: ▼3.43ms] Passed 4 tests

A check of server-side resources used by Link In Bio WP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4645.93 ▲7.18
Dashboard /wp-admin3.76 ▲0.4156.89 ▼2.74
Posts /wp-admin/edit.php3.81 ▲0.4647.08 ▼0.26
Add New Post /wp-admin/post-new.php6.34 ▲0.4584.85 ▼14.42
Media Library /wp-admin/upload.php3.62 ▲0.3938.28 ▲3.72
Add New /wp-admin/post-new.php?post_type=link-in-bio3.7453.90
Links /wp-admin/edit.php?post_type=link-in-bio3.7336.83

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Link In Bio WP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8314.35 ▼0.211.96 ▲0.0143.03 ▲2.69
Dashboard /wp-admin2,225 ▲445.68 ▼0.0786.05 ▼10.0338.34 ▼0.31
Posts /wp-admin/edit.php2,127 ▲302.02 ▲0.0733.48 ▼0.6033.00 ▼2.58
Add New Post /wp-admin/post-new.php1,553 ▲2523.33 ▲0.29669.95 ▲1.0855.48 ▲0.57
Media Library /wp-admin/upload.php1,427 ▲274.18 ▲0.0095.39 ▲0.1243.26 ▲0.25
Add New /wp-admin/post-new.php?post_type=link-in-bio1,6783.5963.4932.33
Links /wp-admin/edit.php?post_type=link-in-bio1,1131.9729.6930.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: social media, instagram link, social links, social profile, landing page...

link-in-bio-wp/link-in-bio-wp.php 92% from 13 tests

The main PHP script in "Link In Bio WP" version 1.2.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
No dangerous file extensions were detected569 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP697167407
JavaScript2232993
Sass18168
CSS1011

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity14.50
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods417.39%
▷ Public methods2191.30%
▷ Protected methods00.00%
▷ Private methods28.70%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/user-circle-solid-108.png1.94KB0.91KB▼ 52.92%
assets/images/user-circle-solid-156.png3.97KB2.63KB▼ 33.92%