84% biol-beautify-links

Code Review | BIOL - Beautify Links

WordPress plugin BIOL - Beautify Links scored84%from 54 tests.

About plugin

  • Plugin page: biol-beautify-links
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 23, 2020
  • Latest release: Jul 5, 2020
  • Number of updates: 41
  • Update frequency: every 0.3 days
  • Top authors: satnam9 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /622 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.46ms] Passed 4 tests

This is a short check of server-side resources used by BIOL - Beautify Links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0634.47 ▼3.52
Dashboard /wp-admin3.38 ▲0.0859.39 ▲11.24
Posts /wp-admin/edit.php3.49 ▲0.1444.46 ▲0.48
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.16 ▼4.75
Media Library /wp-admin/upload.php3.30 ▲0.0734.54 ▲1.96
Settings /wp-admin/admin.php?page=biol-settings3.2732.22

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
biol_beautify_link_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by BIOL - Beautify Links
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲9414.38 ▲0.032.07 ▲0.5338.01 ▼1.88
Dashboard /wp-admin2,224 ▲475.74 ▲0.1586.12 ▲1.0474.26 ▲28.40
Posts /wp-admin/edit.php2,143 ▲432.27 ▲0.2534.83 ▼2.1734.15 ▼2.95
Add New Post /wp-admin/post-new.php1,573 ▲4723.12 ▼0.09710.44 ▲34.9335.18 ▼20.84
Media Library /wp-admin/upload.php1,438 ▲414.35 ▲0.1999.52 ▼2.1281.48 ▲38.31
Settings /wp-admin/admin.php?page=biol-settings1,5723.0870.9037.38

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
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • biol_beautify_link_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/biol-beautify-links/main.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/biol-beautify-links/include/mcebutton.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/biol-beautify-links/include/settings.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
The official readme.txt is a good inspiration

biol-beautify-links/main.php 92% from 13 tests

"BIOL - Beautify Links" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("biol-beautify-links.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin537 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP311073431
JavaScript220106

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
include/js/img/icon.png2.73KB1.81KB▼ 33.82%
include/settingsicon.png1.92KB0.83KB▼ 56.92%