89% linker

Code Review | Linker

WordPress plugin Linker scored89%from 54 tests.

About plugin

  • Plugin page: linker
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Apr 20, 2014
  • Latest release: Jul 23, 2023
  • Number of updates: 47
  • Update frequency: every 71.9 days
  • Top authors: KingYes (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

2,000+ active /30,516 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.42ms] Passed 4 tests

This is a short check of server-side resources used by Linker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.25 ▼1.63
Dashboard /wp-admin3.35 ▲0.0545.39 ▼4.80
Posts /wp-admin/edit.php3.41 ▲0.0546.21 ▲1.71
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.27 ▼16.96
Media Library /wp-admin/upload.php3.27 ▲0.0537.14 ▲2.97
Linker /wp-admin/edit.php?post_type=linker3.3239.71
Add New /wp-admin/post-new.php?post_type=linker3.3144.12

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Linker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲13513.21 ▼1.191.88 ▲0.1244.29 ▲0.64
Dashboard /wp-admin2,267 ▲814.90 ▼0.04110.80 ▼3.7842.07 ▼0.23
Posts /wp-admin/edit.php2,135 ▲492.02 ▲0.0040.22 ▲4.6535.44 ▲2.00
Add New Post /wp-admin/post-new.php1,543 ▲1023.14 ▼0.24671.34 ▼20.7655.14 ▲2.28
Media Library /wp-admin/upload.php1,415 ▲304.19 ▲0.0197.21 ▼10.8743.06 ▲0.45
Linker /wp-admin/edit.php?post_type=linker1,1582.0035.9830.17
Add New /wp-admin/post-new.php?post_type=linker1,5242.5250.0847.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (All Links), #2 (New Link)
  • Tags: You are using too many tags: 35 tag instead of maximum 10
You can look at the official readme.txt

linker/linker.php Passed 13 tests

"Linker" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
80 characters long description:
Manage, create and track outbound links by custom pretty links with your domain.

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
Success! There were no dangerous files found in this plugin586 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP47685293
PO File3105125261
CSS15017
JSON10015

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods22
▷ Static methods29.09%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin