90% lc-shortlink

Code Review | LC Shortlink

WordPress plugin LC Shortlink scored 90% from 54 tests.

About plugin

  • Plugin page: lc-shortlink
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9.2
  • WordPress version: 6.3.1
  • First release: Mar 23, 2022
  • Latest release: Apr 7, 2022
  • Number of updates: 46
  • Update frequency: every 0.4 days
  • Top authors: loordubmary (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 569 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 gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.97ms] Passed 4 tests

A check of server-side resources used by LC Shortlink
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.81 ▼6.54
Dashboard /wp-admin3.39 ▲0.0943.64 ▼2.22
Posts /wp-admin/edit.php3.23 ▼0.1331.27 ▼15.86
Add New Post /wp-admin/post-new.php5.97 ▲0.0984.20 ▼12.23
Media Library /wp-admin/upload.php3.31 ▲0.0831.17 ▼5.25
Add New Link /wp-admin/post-new.php?post_type=lcshortlink3.3442.56
All Links /wp-admin/edit.php?post_type=lcshortlink3.3537.00

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

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

Browser metrics Passed 4 tests

Checking browser requirements for LC Shortlink
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9514.46 ▲0.101.78 ▼0.0342.15 ▼5.00
Dashboard /wp-admin2,233 ▲455.94 ▲0.1397.02 ▼5.9038.65 ▼6.21
Posts /wp-admin/edit.php2,119 ▲301.97 ▼0.0739.49 ▲5.1836.45 ▲2.37
Add New Post /wp-admin/post-new.php1,556 ▲2323.41 ▲0.07659.70 ▲4.2761.49 ▲12.14
Media Library /wp-admin/upload.php1,412 ▲214.44 ▲0.2295.40 ▼8.1443.13 ▼2.25
Add New Link /wp-admin/post-new.php?post_type=lcshortlink1,5812.5048.3458.65
All Links /wp-admin/edit.php?post_type=lcshortlink1,0722.0030.6929.74

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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 SRP test was a success

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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: short-link, light-weight, redirection, redirect-plugin, lc-shortlilnk...

lc-shortlink/lc-shortlink.php 92% from 13 tests

This is the main PHP file of "LC Shortlink" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 212 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin244 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24412244

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin