84% link-widget-title

Code Review | Link Widget Title

WordPress plugin Link Widget Title scored84%from 54 tests.

About plugin

  • Plugin page: link-widget-title
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 21, 2019
  • Latest release: Nov 14, 2022
  • Number of updates: 13
  • Update frequency: every 102.6 days
  • Top authors: allurewebsolutions (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

5,000+ active /6,772 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Link Widget Title
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.86 ▼0.86
Dashboard /wp-admin3.32 ▲0.0247.97 ▼3.88
Posts /wp-admin/edit.php3.37 ▲0.0246.85 ▲0.21
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.46 ▼8.72
Media Library /wp-admin/upload.php3.24 ▲0.0234.81 ▲2.87

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Link Widget Title: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16613.95 ▼0.358.72 ▲6.9144.46 ▼0.04
Dashboard /wp-admin2,210 ▲185.86 ▲0.95108.82 ▼12.0242.52 ▼3.20
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0136.06 ▼2.5932.53 ▲0.94
Add New Post /wp-admin/post-new.php1,527 ▲1318.33 ▲0.77591.68 ▼86.5649.98 ▲1.71
Media Library /wp-admin/upload.php1,395 ▲74.19 ▲0.0097.12 ▼11.3543.39 ▼5.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/link-widget-title/admin/partials/link-widget-title-admin-display.php
    • > /wp-content/plugins/link-widget-title/public/partials/link-widget-title-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === link-widget-title === )
Please take inspiration from this readme.txt

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

The primary PHP file in "Link Widget Title" version 1.0.2 is used by WordPress to initiate all plugin functionality
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected248 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12131578228
Markdown110014
JavaScript24546
CSS2080

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.29
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin