89% link-finder

Code Review | Link Finder

WordPress plugin Link Finder scored 89% from 54 tests.

About plugin

  • Plugin page: link-finder
  • Plugin version: 2022.01.05
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 6.3.1
  • First release: Jun 11, 2020
  • Latest release: Feb 11, 2022
  • Number of updates: 44
  • Update frequency: every 13.9 days
  • Top authors: bvandevliet (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active / 3,700 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Link Finder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0843.55 ▲3.46
Dashboard /wp-admin3.38 ▲0.0852.03 ▼9.40
Posts /wp-admin/edit.php3.43 ▲0.0744.92 ▼8.82
Add New Post /wp-admin/post-new.php5.96 ▲0.0784.96 ▼23.30
Media Library /wp-admin/upload.php3.30 ▲0.0733.59 ▼1.11
Link Finder /wp-admin/tools.php?page=linkfinder3.3032.64

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Link Finder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.32 ▼0.984.60 ▲2.9042.90 ▼5.40
Dashboard /wp-admin2,213 ▲224.84 ▼1.0795.18 ▼9.6638.68 ▼9.12
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0234.48 ▼8.5935.08 ▼0.46
Add New Post /wp-admin/post-new.php1,536 ▲223.25 ▼0.09639.57 ▲23.4451.35 ▼19.27
Media Library /wp-admin/upload.php1,389 ▲74.18 ▼0.0193.42 ▼4.4642.01 ▼1.34
Link Finder /wp-admin/tools.php?page=linkfinder9321.7227.2729.94

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 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% 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
Attributes that require attention:
  • Screenshots: A description for screenshot #1 is required in link-finder/assets to your readme.txt
You can take inspiration from this readme.txt

link-finder/linkfinder.php 85% from 13 tests

The entry point to "Link Finder" version 2022.01.05 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("link-finder.php" instead of "linkfinder.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,125 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP782257438
JavaScript152109257
JSON200225
PO File13541110
CSS121195

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity5.25
▷ Minimum method complexity2.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions14
▷ Named functions214.29%
▷ Anonymous functions1285.71%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected