84% custom-link-widget

Code Review | Custom Link Widget

WordPress plugin Custom Link Widget scored 84% from 54 tests.

About plugin

  • Plugin page: custom-link-widget
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.1
  • WordPress version: 5.8.1
  • First release: Apr 6, 2012
  • Latest release: Aug 12, 2012
  • Number of updates: 17
  • Update frequency: every 7.6 days
  • Top authors: pankajbiswas (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

3,000+ active / 33,662 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼140.91ms] Passed 4 tests

A check of server-side resources used by Custom Link Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0247.53 ▲12.47
Dashboard /wp-admin3.08 ▲0.0356.35 ▲6.98
Posts /wp-admin/edit.php3.13 ▲0.0347.65 ▼2.53
Add New Post /wp-admin/post-new.php5.44 ▲0.0189.67 ▼570.34
Media Library /wp-admin/upload.php3.02 ▲0.0238.22 ▲2.26

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
widget_iclw

Browser metrics Passed 4 tests

A check of browser resources used by Custom Link Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.25 ▲0.439.64 ▼0.8389.46 ▲38.88
Dashboard /wp-admin2,970 ▲366.06 ▲0.12165.46 ▲12.34127.63 ▲3.59
Posts /wp-admin/edit.php2,739 ▼02.82 ▼0.0173.13 ▲7.18100.69 ▼0.49
Add New Post /wp-admin/post-new.php1,498 ▼18518.81 ▲0.37373.28 ▼36.52117.68 ▲1.83
Media Library /wp-admin/upload.php1,807 ▼05.00 ▼0.02156.62 ▲6.13121.76 ▼4.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_iclw

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-link-widget/iCLW.php:10

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 93% 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
3 plugin tags: widget, widgets, link widget

custom-link-widget/iCLW.php 85% from 13 tests

Analyzing the main PHP file in "Custom Link Widget" version 1.1.1
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-link-widget.php" instead of "iCLW.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 284 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin76 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191176

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin