84% linkify-categories

Code Review | Linkify Categories

WordPress plugin Linkify Categories scored84%from 54 tests.

About plugin

  • Plugin page: linkify-categories
  • Plugin version: 2.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.3
  • WordPress version: 6.3.1
  • First release: Jun 12, 2009
  • Latest release: Aug 23, 2023
  • Number of updates: 25
  • Update frequency: every 208.0 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /8,578 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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.88ms] Passed 4 tests

This is a short check of server-side resources used by Linkify Categories
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.45 ▲1.86
Dashboard /wp-admin3.36 ▲0.0149.01 ▼11.62
Posts /wp-admin/edit.php3.41 ▲0.0545.68 ▼2.38
Add New Post /wp-admin/post-new.php5.94 ▲0.0580.95 ▼7.39
Media Library /wp-admin/upload.php3.29 ▲0.0535.84 ▲3.38

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_linkify_categories
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Linkify Categories
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.10 ▼0.611.64 ▼0.0245.87 ▲5.95
Dashboard /wp-admin2,195 ▲155.71 ▲0.0585.76 ▲0.2741.86 ▼3.59
Posts /wp-admin/edit.php2,103 ▼01.97 ▼0.0037.37 ▲0.0433.29 ▼2.78
Add New Post /wp-admin/post-new.php1,529 ▲123.38 ▲0.31641.66 ▼14.6554.21 ▼1.19
Media Library /wp-admin/upload.php1,403 ▲94.21 ▲0.0395.53 ▼4.7540.88 ▼0.20

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
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_linkify_categories
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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

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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/linkify-categories/tests/phpunit/bootstrap.php

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: template tag, categories, link, linkify, widget...

linkify-categories/linkify-categories.php Passed 13 tests

The main PHP script in "Linkify Categories" version 2.3.1 is automatically included on every request by WordPress
116 characters long description:
Turn a list of category IDs and/or slugs into a list of links to those categories. Includes widget and template tag.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected710 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP584138419
Markdown4830251
Bourne Shell16221
XML10014
JSON1005

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.36
Average class complexity18.50
▷ Minimum class complexity5.00
▷ Maximum class complexity32.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2388.46%
▷ Protected methods311.54%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin