10% short-url-fe

Code Review | Short URL FE

WordPress plugin Short URL FE scored 10% from 54 tests.

About plugin

  • Plugin page: short-url-fe
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Feb 25, 2022
  • Latest release: Feb 25, 2022
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: jmferri (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 232 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/short-url-fe/short-url-fe.php+172
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.32MB] [CPU: ▼13.63ms] Passed 4 tests

Analyzing server-side resources used by Short URL FE
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0234.53 ▼6.49
Dashboard /wp-admin3.32 ▲0.0145.30 ▼4.77
Posts /wp-admin/edit.php3.37 ▲0.0148.94 ▲3.72
Add New Post /wp-admin/post-new.php4.61 ▼1.2843.01 ▼44.80
Media Library /wp-admin/upload.php3.24 ▲0.0134.23 ▲1.55
Short URL FE /wp-admin/options-general.php?page=short-url-fe/short-url-fe.php3.2131.77

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
shorturlfe_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Short URL FE: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲8813.56 ▼0.821.92 ▲0.1637.21 ▼10.08
Dashboard /wp-admin2,212 ▲244.84 ▼0.97101.19 ▼6.1237.42 ▼4.40
Posts /wp-admin/edit.php2,095 ▲62.01 ▲0.0136.04 ▲2.6633.99 ▼3.62
Add New Post /wp-admin/post-new.php1,533 ▼023.03 ▼0.13640.45 ▼42.6058.88 ▲2.67
Media Library /wp-admin/upload.php1,394 ▲94.22 ▲0.0397.55 ▼1.7841.83 ▼2.34
Short URL FE /wp-admin/options-general.php?page=short-url-fe/short-url-fe.php1,0332.0624.8833.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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 trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/short-url-fe/short-url-fe.php:122

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: shortlink, short link, shorturl, short url, post

short-url-fe/short-url-fe.php 92% from 13 tests

This is the main PHP file of "Short URL FE" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 167 characters long)

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
Good job! No executable or dangerous file extensions detected412 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP132104235
PO File1303191
CSS22065
JavaScript13521

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.27
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%
Functions13
▷ Named functions13100.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
3 PNG files occupy 0.16MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png47.61KB33.67KB▼ 29.28%
screenshot-1.png46.79KB33.33KB▼ 28.76%
screenshot-3.png66.53KB38.63KB▼ 41.94%