10% bitt-link-shorter

Code Review | Bitt Link Shortener

WordPress plugin Bitt Link Shortener scored 10% from 54 tests.

About plugin

  • Plugin page: bitt-link-shorter
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8.1
  • WordPress version: 5.8.1
  • First release: Oct 18, 2018
  • Latest release: Sep 22, 2021
  • Number of updates: 51
  • Update frequency: every 23.5 days
  • Top authors: mughees.hafeez (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,396 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/bitt-link-shorter/bitt-link-shorter.php+33
    Undefined variable: wpdb

Server metrics [RAM: ▲0.06MB] [CPU: ▼139.69ms] Passed 4 tests

Analyzing server-side resources used by Bitt Link Shortener
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1735.25 ▲10.99
Dashboard /wp-admin3.12 ▲0.0747.39 ▲1.86
Posts /wp-admin/edit.php3.18 ▲0.0745.27 ▼3.28
Add New Post /wp-admin/post-new.php5.48 ▲0.0588.82 ▼564.03
Media Library /wp-admin/upload.php3.07 ▲0.0736.69 ▲6.69

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: 1 new table, 1 new option
New tables
wpbls_bitt_links
New WordPress options
wpbls_install

Browser metrics Passed 4 tests

A check of browser resources used by Bitt Link Shortener
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11216.07 ▲0.137.96 ▼3.1250.28 ▼3.02
Dashboard /wp-admin3,001 ▲676.77 ▲0.82171.44 ▲13.32111.61 ▼1.82
Posts /wp-admin/edit.php2,765 ▲262.80 ▲0.1172.18 ▲6.3593.64 ▼5.01
Add New Post /wp-admin/post-new.php1,586 ▼9718.46 ▼0.23377.07 ▼26.20134.50 ▲14.82
Media Library /wp-admin/upload.php1,839 ▲295.47 ▲0.35145.51 ▼15.87126.34 ▲1.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wpbls_bitt_links
  • Zombie WordPress options were found after uninstall: 2 options
    • wpbls_uninstall
    • wpbls_install

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/bitt-link-shorter/bitt-link-shorter.php

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 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-3.png)
  • Tags: There are too many tags (14 tag instead of maximum 10)
You can take inspiration from this readme.txt

bitt-link-shorter/bitt-link-shorter.php Passed 13 tests

This is the main PHP file of "Bitt Link Shortener" version 2.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
49 characters long description:
Get free link shortner plugin for your wordpress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected593 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3138200278
JavaScript25244241
CSS2101174

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
8 PNG files occupy 0.20MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png71.05KB20.48KB▼ 71.17%
assets/plugins/datatable/css/DataTables-1.10.16/images/sort_desc.png0.15KB0.25KB0.00%
screenshot-3.png68.12KB20.88KB▼ 69.34%
assets/plugins/datatable/css/DataTables-1.10.16/images/sort_asc_disabled.png0.14KB0.25KB0.00%
assets/plugins/datatable/css/DataTables-1.10.16/images/sort_asc.png0.16KB0.25KB0.00%