84% wp-bio-links

Code Review | WP Bio Links

WordPress plugin WP Bio Links scored84%from 54 tests.

About plugin

  • Plugin page: wp-bio-links
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.3-5.9
  • WordPress version: 6.3.1
  • First release: Oct 9, 2019
  • Latest release: Jan 30, 2022
  • Number of updates: 9
  • Update frequency: every 93.8 days
  • Top authors: gpepe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,798 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by WP Bio Links
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1138.94 ▼1.82
Dashboard /wp-admin3.39 ▲0.0950.40 ▲2.42
Posts /wp-admin/edit.php3.45 ▲0.0944.29 ▼1.48
Add New Post /wp-admin/post-new.php5.97 ▲0.0987.26 ▼4.40
Media Library /wp-admin/upload.php3.31 ▲0.0938.34 ▲3.63
All Items /wp-admin/edit.php?post_type=wp-bio-links3.3942.75
Settings /wp-admin/edit.php?post_type=wp-bio-links&page=wp-bio-links3.3136.93
Add New /wp-admin/post-new.php?post_type=wp-bio-links3.3749.08

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Bio Links
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.76 ▲0.481.60 ▼0.2339.85 ▼7.74
Dashboard /wp-admin2,229 ▲525.62 ▼0.0583.87 ▼13.5037.56 ▲1.36
Posts /wp-admin/edit.php2,128 ▲251.97 ▼0.0037.56 ▲0.2231.20 ▼2.08
Add New Post /wp-admin/post-new.php1,552 ▲2623.21 ▲0.13632.90 ▲11.5356.34 ▼15.01
Media Library /wp-admin/upload.php1,434 ▲374.22 ▼0.0198.03 ▼8.3842.15 ▼0.57
All Items /wp-admin/edit.php?post_type=wp-bio-links1,2773.4350.3027.22
Settings /wp-admin/edit.php?post_type=wp-bio-links&page=wp-bio-links1,3913.8166.1743.18
Add New /wp-admin/post-new.php?post_type=wp-bio-links1,7133.7175.3934.17

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wp-bio-links/wp-bio-links.tpl.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: The official readme.txt is a good inspiration

wp-bio-links/wp-bio-links.php 92% from 13 tests

This is the main PHP file of "WP Bio Links" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
Good job! No executable or dangerous file extensions detected533 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP317762477
JavaScript114456

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions18
▷ Named functions18100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
placeholder.png2.40KB2.57KB0.00%