84% biogram-linkpage

Code Review | Biogram Linkpage - A link in bio solution

WordPress plugin Biogram Linkpage - A link in bio solution scored84%from 54 tests.

About plugin

  • Plugin page: biogram-linkpage
  • Plugin version: 1.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.6-5.9.3
  • WordPress version: 6.3.1
  • First release: Aug 20, 2019
  • Latest release: Apr 25, 2022
  • Number of updates: 12
  • Update frequency: every 81.7 days
  • Top authors: juist (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,003 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.08ms] Passed 4 tests

This is a short check of server-side resources used by Biogram Linkpage - A link in bio solution
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0348.83 ▲2.63
Dashboard /wp-admin3.33 ▲0.0254.17 ▲4.48
Posts /wp-admin/edit.php3.38 ▲0.0252.53 ▼2.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.49 ▼13.89
Media Library /wp-admin/upload.php3.25 ▲0.0239.54 ▲1.43

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
juist_biogram_page_id
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Biogram Linkpage - A link in bio solution
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲4913.17 ▼1.122.15 ▼0.0140.03 ▼8.61
Dashboard /wp-admin2,239 ▲334.84 ▼0.24114.15 ▼13.4246.11 ▲1.23
Posts /wp-admin/edit.php2,122 ▲192.06 ▲0.0539.17 ▲1.1934.35 ▼3.78
Add New Post /wp-admin/post-new.php1,544 ▲1823.27 ▲5.82614.00 ▼28.7393.86 ▲29.44
Media Library /wp-admin/upload.php1,418 ▲184.19 ▼0.01110.59 ▼13.7747.60 ▼1.36

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 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)
Good news, no errors were detected

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 take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/biogram-linkpage/includes/biogram-landingspage.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/biogram-linkpage/includes/biogram-landingspage-template.php:152

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: instagram, landingspage, content, landing page

biogram-linkpage/biogram-landingspage.php 85% from 13 tests

The main PHP file in "Biogram Linkpage - A link in bio solution" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 159 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("biogram-linkpage.php" instead of "biogram-landingspage.php")

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
Everything looks great! No dangerous files found in this plugin656 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP68984598
CSS110258

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/juist-blauw.png6.27KB3.17KB▼ 49.52%
assets/images/juist-wit.png12.79KB4.97KB▼ 61.18%