10% ice-bio-url-shortener

Code Review | ice.bio URL Shortener

WordPress plugin ice.bio URL Shortener scored10%from 54 tests.

About plugin

  • Plugin page: ice-bio-url-short...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 6, 2023
  • Latest release: Sep 12, 2023
  • Number of updates: 14
  • Update frequency: every 7.0 days
  • Top authors: iceZone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /782 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
These installer errors require your attention
  • The plugin did not install without errors
    • > User notice in wp-includes/functions.php+5905
    Function add_shortcode was called incorrectly. Invalid shortcode name: Empty name given. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)

Server metrics [RAM: ▼1.92MB] [CPU: ▼60.29ms] Passed 4 tests

This is a short check of server-side resources used by ice.bio URL Shortener
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.51 ▼37.98
Dashboard /wp-admin2.10 ▼1.256.44 ▼56.85
Posts /wp-admin/edit.php2.10 ▼1.267.28 ▼44.01
Add New Post /wp-admin/post-new.php2.10 ▼3.796.57 ▼102.30
Media Library /wp-admin/upload.php2.10 ▼1.136.14 ▼26.61
ice.bio URL Shortener /wp-admin/tools.php?page=icebio-plugin-settings2.106.46

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for ice.bio URL Shortener
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.60 ▼0.621.60 ▼1.0142.74 ▼0.47
Dashboard /wp-admin2,225 ▲224.90 ▼0.95108.45 ▼1.1337.61 ▼4.18
Posts /wp-admin/edit.php2,107 ▲102.00 ▼0.0435.28 ▼2.5131.74 ▼4.61
Add New Post /wp-admin/post-new.php6,233 ▲4,69318.74 ▼4.48920.81 ▲233.5755.28 ▼5.68
Media Library /wp-admin/upload.php1,401 ▲14.22 ▼0.01109.63 ▲4.3945.64 ▼2.65
ice.bio URL Shortener /wp-admin/tools.php?page=icebio-plugin-settings8262.0328.3130.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function add_shortcode was called incorrectly. Invalid shortcode name: Empty name given. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/tools.php?page=icebio-plugin-settings
    • > User notice in wp-includes/functions.php+5905
    Function add_shortcode was called incorrectly. Invalid shortcode name: Empty name given. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: share links, url shortener, link shortening, track links, link compression...

ice-bio-url-shortener/link-shortener-shortcode.php 92% from 13 tests

"ice.bio URL Shortener" version 3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ice-bio-url-shortener.php" instead of "link-shortener-shortcode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin190 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34827190

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
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
PNG images were not found in this plugin