67% link-designer-lite

Code Review | Link Designer - Free Link Designer Plugin for WordPress

WordPress plugin Link Designer - Free Link Designer Plugin for WordPress scored 67% from 54 tests.

About plugin

  • Plugin page: link-designer-lite
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.5
  • WordPress version: 5.8.1
  • First release: May 4, 2018
  • Latest release: Aug 10, 2018
  • Number of updates: 7
  • Update frequency: every 14.1 days
  • Top authors: 8degreethemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 914 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼148.24ms] Passed 4 tests

A check of server-side resources used by Link Designer - Free Link Designer Plugin for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.1038.14 ▲6.19
Dashboard /wp-admin3.23 ▲0.1740.71 ▼10.03
Posts /wp-admin/edit.php3.25 ▲0.1436.62 ▼8.16
Add New Post /wp-admin/post-new.php5.07 ▼0.3678.31 ▼573.30
Media Library /wp-admin/upload.php3.17 ▲0.1731.10 ▼1.47
Link Designer Lite /wp-admin/tools.php?page=edld-info3.1529.71

Server storage [IO: ▲0.45MB] [DB: ▲0.03MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 1 new option
New WordPress options
edld_font_list

Browser metrics Passed 4 tests

An overview of browser requirements for Link Designer - Free Link Designer Plugin for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /9,492 ▲5,88618.43 ▲2.8813.31 ▲5.3650.00 ▲4.09
Dashboard /wp-admin8,647 ▲5,7107.42 ▲1.24202.02 ▲58.81121.50 ▲12.70
Posts /wp-admin/edit.php8,454 ▲5,7153.62 ▲0.93133.12 ▲65.51117.56 ▲20.81
Add New Post /wp-admin/post-new.php6,002 ▲4,50417.73 ▼1.15390.48 ▲11.29118.86 ▲9.75
Media Library /wp-admin/upload.php7,432 ▲5,6225.65 ▲0.62169.36 ▲25.53156.90 ▲40.57
Link Designer Lite /wp-admin/tools.php?page=edld-info7,8365.68146.50121.89

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 1 option in the database
    • edld_font_list

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/tools.php?page=edld-info
    • > Notice in wp-content/plugins/link-designer-lite/includes/backend/edld-shortcode-popup.php+104
    Undefined variable: edld_link_color
    • > GET request to /wp-admin/tools.php?page=edld-info
    • > Notice in wp-content/plugins/link-designer-lite/includes/backend/edld-shortcode-popup.php+108
    Undefined variable: edld_link_active_color
    • > GET request to /wp-admin/tools.php?page=edld-info
    • > Notice in wp-content/plugins/link-designer-lite/includes/backend/edld-shortcode-popup.php+112
    Undefined variable: edld_link_hover_color
    • > GET request to /wp-admin/tools.php?page=edld-info
    • > Notice in wp-content/plugins/link-designer-lite/includes/backend/edld-shortcode-popup.php+117
    Undefined variable: edld_link_background_color
    • > GET request to /wp-admin/tools.php?page=edld-info
    • > Notice in wp-content/plugins/link-designer-lite/includes/backend/edld-shortcode-popup.php+121
    Undefined variable: edld_active_background_color
    • > GET request to /wp-admin/tools.php?page=edld-info
    • > Notice in wp-content/plugins/link-designer-lite/includes/backend/edld-shortcode-popup.php+125
    Undefined variable: edld_hover_background_color

SRP 0% 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
The following issues need your attention
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/link-designer-lite/includes/backend/edld-how-to.php
    • > /wp-content/plugins/link-designer-lite/links-designer-lite.php
    • > /wp-content/plugins/link-designer-lite/includes/backend/edld-info.php
    • > /wp-content/plugins/link-designer-lite/includes/backend/edld-shortcode-popup.php
    • > /wp-content/plugins/link-designer-lite/includes/frontend/shortcode.php
    • > /wp-content/plugins/link-designer-lite/includes/backend/edld-about.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/link-designer-lite/includes/backend/edld-google-fonts.php:747

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/tools.php?page=edld-info
    • > Javascript (severe) in unknown
    /wp-content/plugins/link-designer-lite/js/wp-color-picker-alpha.js?ver=1.0.1 10:459 Uncaught ReferenceError: wpColorPickerL10n is not defined

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: button generator, wordpress link, button, wordpress button, links

link-designer-lite/links-designer-lite.php 92% from 13 tests

"Link Designer - Free Link Designer Plugin for WordPress" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("link-designer-lite.php" instead of "links-designer-lite.php")

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 detected3,431 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP881951,765
CSS2178811,116
JavaScript476201373
PO File17682177

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.18
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-sets/facebook.png5.54KB1.67KB▼ 69.89%
images/icon-sets/youtube.png7.11KB2.79KB▼ 60.71%
images/icon-sets/twitter.png6.65KB2.51KB▼ 62.26%
images/icon-sets/pinterest.png7.76KB3.29KB▼ 57.57%
images/icon-sets/googlePlus.png6.98KB2.73KB▼ 60.91%