68% fast-link-shorten

Code Review | Fast Link Shorten Plugin

WordPress plugin Fast Link Shorten Plugin scored68%from 54 tests.

About plugin

  • Plugin page: fast-link-shorten
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 24, 2016
  • Latest release: Oct 24, 2016
  • Number of updates: 9
  • Update frequency: every 5.1 days
  • Top authors: GokhanKara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /808 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.92MB] [CPU: ▼31.72ms] Passed 4 tests

Server-side resources used by Fast Link Shorten Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.58 ▲3.46
Dashboard /wp-admin3.03 ▼0.3130.68 ▼27.94
Posts /wp-admin/edit.php3.03 ▼0.3226.31 ▼16.83
Add New Post /wp-admin/post-new.php3.03 ▼2.8522.69 ▼71.96
Media Library /wp-admin/upload.php3.03 ▼0.2020.48 ▼10.16
Fast Link Shorten /wp-admin/options-general.php?page=fastlinkshorten3.0322.81

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

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

Browser metrics Passed 4 tests

Fast Link Shorten Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.35 ▼0.211.76 ▼0.1045.42 ▲4.08
Dashboard /wp-admin2,202 ▲215.60 ▼0.1597.49 ▼2.9042.84 ▲1.50
Posts /wp-admin/edit.php2,101 ▲11.95 ▼0.0635.61 ▲0.9533.10 ▼4.12
Add New Post /wp-admin/post-new.php6,245 ▲4,71926.03 ▲2.90837.37 ▲193.9959.79 ▲12.48
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.1894.12 ▼3.3341.39 ▼2.62
Fast Link Shorten /wp-admin/options-general.php?page=fastlinkshorten1,4269.92266.7332.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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=fastlinkshorten
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/fast-link-shorten/index.php:13

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: bcvc shorten, fast link, link shorten, shorten

fast-link-shorten/index.php 92% from 13 tests

The main PHP script in "Fast Link Shorten Plugin" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("fast-link-shorten.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin116 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13120116

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.00
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.35MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/Screenshot_3.png17.76KB9.49KB▼ 46.57%
img/fast-link-shorten-app-icon.png26.66KB4.83KB▼ 81.88%
Screenshot/Screenshot_4.png57.34KB29.75KB▼ 48.11%
Screenshot/Screenshot_2.png51.07KB25.44KB▼ 50.19%
img/author_logo.png28.24KB3.09KB▼ 89.04%