78% bio-links

Code Review | Bio Links

WordPress plugin Bio Links scored78%from 54 tests.

About plugin

  • Plugin page: bio-links
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Dec 28, 2017
  • Latest release: Jan 17, 2020
  • Number of updates: 27
  • Update frequency: every 27.8 days
  • Top authors: justnorris (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

800+ active /6,726 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.89ms] Passed 4 tests

This is a short check of server-side resources used by Bio Links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.98 ▲0.19
Dashboard /wp-admin3.45 ▲0.1549.52 ▼3.07
Posts /wp-admin/edit.php3.50 ▲0.1543.69 ▼6.46
Add New Post /wp-admin/post-new.php6.04 ▲0.1682.70 ▼14.20
Media Library /wp-admin/upload.php3.36 ▲0.1335.96 ▲0.83
All Items /wp-admin/edit.php?post_type=biolink3.4233.41
Add New /wp-admin/post-new.php?post_type=biolink3.8152.80

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 442 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Bio Links: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲11413.28 ▼1.092.09 ▲0.3942.46 ▼2.62
Dashboard /wp-admin2,241 ▲505.94 ▲0.96106.46 ▼10.0940.12 ▼10.40
Posts /wp-admin/edit.php2,127 ▲382.09 ▲0.0937.21 ▼2.3633.07 ▼3.53
Add New Post /wp-admin/post-new.php1,543 ▲1023.38 ▲0.25685.82 ▲54.9356.09 ▲2.91
Media Library /wp-admin/upload.php1,426 ▲414.26 ▼0.0098.22 ▼3.1041.99 ▲0.73
All Items /wp-admin/edit.php?post_type=biolink1,0881.9939.3527.32
Add New /wp-admin/post-new.php?post_type=biolink1,8413.6162.5046.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/bio-links/vendor/cmb2/cmb2/apigen/hook-docs.php
  • 48× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/bio-links/vendor/cmb2/cmb2/includes/CMB2.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/bio-links/vendor/cmb2/cmb2/includes/types/CMB2_Type_File_List.php:13
    • > PHP Warning
      file_get_contents(/Users/JT/Sites/wpengine/api/tree.html): failed to open stream: No such file or directory in wp-content/plugins/bio-links/vendor/cmb2/cmb2/apigen/hook-docs.php on line 221
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/bio-links/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/bio-links/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/bio-links/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/bio-links/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/bio-links/vendor/cmb2/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/bio-links/vendor/cmb2/cmb2/includes/types/CMB2_Type_Title.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/bio-links/vendor/cmb2/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16

User-side errors Passed 1 test

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


Plugin configuration 97% 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
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in bio-links/assets to your readme.txt
The official readme.txt might help

bio-links/bio-links.php Passed 13 tests

The main PHP file in "Bio Links" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
118 characters long description:
With Bio Links plugin you can turn a single link into many. A helpful tool direct your visitors where they need to go.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin66,954 lines of code in 261 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity16.75
▷ Minimum class complexity1.00
▷ Maximum class complexity183.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
▷ Abstract classes89.76%
▷ Concrete classes7490.24%
▷ Final classes11.35%
▷ Static methods10016.72%
▷ Public methods49983.44%
▷ Protected methods9115.22%
▷ Private methods81.34%
▷ Named functions4894.12%
▷ Anonymous functions35.88%
▷ Global constants1164.71%
▷ Class constants635.29%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
22 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/collapsed.png0.24KB0.14KB▼ 41.77%
vendor/cmb2/cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%