66% biol-me

Code Review | Biol.me - Multiple bio links

WordPress plugin Biol.me - Multiple bio links scored66%from 54 tests.

About plugin

  • Plugin page: biol-me
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Aug 22, 2020
  • Latest release: Aug 23, 2020
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: biol (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /527 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.32MB] [CPU: ▼20.95ms] Passed 4 tests

Analyzing server-side resources used by Biol.me - Multiple bio links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.83 ▼0.6323.44 ▼21.98
Dashboard /wp-admin3.22 ▼0.0834.94 ▼16.18
Posts /wp-admin/edit.php3.20 ▼0.1630.68 ▼16.14
Add New Post /wp-admin/post-new.php5.47 ▼0.4274.08 ▼29.50
Media Library /wp-admin/upload.php3.23 ▼0.0033.63 ▼4.77
biol.me /wp-admin/options-general.php?page=biolme3.2031.53

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Biol.me - Multiple bio links
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲2014.72 ▲0.371.58 ▼0.4141.97 ▼0.90
Dashboard /wp-admin2,209 ▲325.57 ▼0.0583.05 ▼8.5042.14 ▼3.37
Posts /wp-admin/edit.php2,118 ▲181.99 ▼0.0037.97 ▼1.3338.90 ▲4.17
Add New Post /wp-admin/post-new.php1,556 ▲2722.89 ▼0.37636.77 ▼38.1653.74 ▼1.87
Media Library /wp-admin/upload.php1,417 ▲174.16 ▲0.01106.06 ▼18.2146.43 ▼3.89
biol.me /wp-admin/options-general.php?page=biolme9022.1326.5728.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=biolme
    • > User deprecated in wp-includes/functions.php+5453
    Function get_settings is deprecated since version 2.1.0! Use get_option() instead.

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/biol-me/public/partials/biolme-public-display.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/biol-me/admin/partials/biolme-admin-display.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/biol-me/admin/partials/biolme-admin-settings-display.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=biolme
    • > Network (severe)
    wp-content/plugins/biol-me/admin/css/biol-admin.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=biolme
    • > Network (severe)
    wp-content/plugins/biol-me/admin/js/biol-admin.js?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif).), #2 (This is the second screen shot)
You can look at the official readme.txt

biol-me/biolme.php 77% from 13 tests

The entry point to "Biol.me - Multiple bio links" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 169 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("biol-me.php" instead of "biolme.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected518 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP13171525456
PO File1161759
JavaScript12273
CSS1040

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.71
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods3085.71%
▷ Protected methods00.00%
▷ Private methods514.29%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected