84% friends-link-widget

Code Review | Friends Link Widget

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

About plugin

  • Plugin page: friends-link-widget
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.7.3
  • WordPress version: 6.3.1
  • First release: Dec 6, 2013
  • Latest release: Mar 14, 2017
  • Number of updates: 30
  • Update frequency: every 39.8 days
  • Top authors: vinoth06 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 18,632 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.93ms] Passed 4 tests

An overview of server-side resources used by Friends Link Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.34 ▼1.83
Dashboard /wp-admin3.37 ▲0.0742.92 ▼7.29
Posts /wp-admin/edit.php3.42 ▲0.0747.30 ▲1.78
Add New Post /wp-admin/post-new.php5.95 ▲0.0784.79 ▼8.36
Media Library /wp-admin/upload.php3.29 ▲0.0735.08 ▲4.08

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_buffercode_fl_widget_info
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Friends Link Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.62 ▼1.034.73 ▲2.9441.29 ▼1.84
Dashboard /wp-admin2,206 ▲155.07 ▼0.83100.44 ▼1.9637.88 ▼6.15
Posts /wp-admin/edit.php2,068 ▼212.01 ▼0.0538.88 ▲2.2835.56 ▲2.82
Add New Post /wp-admin/post-new.php1,535 ▲2123.08 ▲5.61653.33 ▼35.3257.83 ▲6.18
Media Library /wp-admin/upload.php1,388 ▼04.23 ▼0.0296.27 ▼2.8142.03 ▼2.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_buffercode_fl_widget_info
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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_action() in wp-content/plugins/friends-link-widget/friends-link-widget.php:12

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 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
8 plugin tags: url widget, link exchange, friends widget, link widget, widget...

friends-link-widget/friends-link-widget.php Passed 13 tests

Analyzing the main PHP file in "Friends Link Widget" version 1.7
73 characters long description:
Simple method to add your friends website url to your site through widget

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
There were no executable files found in this plugin220 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1489220

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.83
Average class complexity105.00
▷ Minimum class complexity105.00
▷ Maximum class complexity105.00
Average method complexity27.00
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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
No PNG images were found in this plugin