10% bitt-link-shorter

Code Review | Bitt Link Shortener

WordPress plugin Bitt Link Shortener scored10%from 54 tests.

About plugin

  • Plugin page: bitt-link-shorter
  • Plugin version: 2.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 18, 2018
  • Latest release: Aug 25, 2023
  • Number of updates: 53
  • Update frequency: every 35.9 days
  • Top authors: mughees.hafeez (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,959 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: ▼5.99ms] 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 /3.53 ▲0.0636.47 ▼4.94
Dashboard /wp-admin3.37 ▲0.0344.88 ▼12.93
Posts /wp-admin/edit.php3.49 ▲0.1344.98 ▼3.29
Add New Post /wp-admin/post-new.php5.97 ▲0.0892.00 ▼2.79
Media Library /wp-admin/upload.php3.30 ▲0.0736.39 ▲2.56

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, 7 new options
New tables
wpbls_bitt_links
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_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 /2,814 ▲4313.22 ▼1.064.23 ▲1.9440.10 ▼3.19
Dashboard /wp-admin2,223 ▲434.98 ▼0.7096.29 ▲9.5140.72 ▲1.74
Posts /wp-admin/edit.php2,130 ▲482.37 ▲0.3639.28 ▲2.9633.06 ▼3.26
Add New Post /wp-admin/post-new.php6,271 ▲4,74526.16 ▲2.44798.99 ▲113.2655.35 ▼0.20
Media Library /wp-admin/upload.php1,425 ▲284.53 ▲0.3595.87 ▼6.0041.78 ▼0.48

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: 8 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • wpbls_uninstall
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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.2, 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
assets/plugins/datatable/css/DataTables-1.10.16/images/sort_asc.png0.16KB0.25KB0.00%
assets/plugins/datatable/css/DataTables-1.10.16/images/sort_both.png0.20KB0.29KB0.00%
screenshot-3.png68.12KB20.88KB▼ 69.34%
screenshot-1.png71.05KB20.48KB▼ 71.17%
assets/plugins/datatable/css/DataTables-1.10.16/images/sort_asc_disabled.png0.14KB0.25KB0.00%