84% webfinger

Code Review | WebFinger

WordPress plugin WebFinger scored84%from 54 tests.

About plugin

  • Plugin page: webfinger
  • Plugin version: 3.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.4
  • WordPress version: 6.3.1
  • First release: Apr 20, 2010
  • Latest release: Nov 12, 2023
  • Number of updates: 77
  • Update frequency: every 64.4 days
  • Top authors: pfefferle (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /10,483 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.01MB] [CPU: ▼7.38ms] Passed 4 tests

Server-side resources used by WebFinger
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.51 ▼3.96
Dashboard /wp-admin3.32 ▲0.0144.00 ▼6.01
Posts /wp-admin/edit.php3.37 ▲0.0150.28 ▲1.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.16 ▼16.85
Media Library /wp-admin/upload.php3.24 ▲0.0131.87 ▼2.69

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

WebFinger: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5314.67 ▲0.451.93 ▲0.2242.02 ▼1.61
Dashboard /wp-admin2,198 ▲215.61 ▲0.0586.77 ▼14.5540.17 ▼3.11
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0139.18 ▲3.8634.87 ▲2.79
Add New Post /wp-admin/post-new.php1,526 ▼023.34 ▲0.28683.68 ▼10.8657.68 ▲4.58
Media Library /wp-admin/upload.php1,403 ▲64.19 ▼0.01102.27 ▼19.5141.64 ▼5.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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)
Even though no errors were found, this is by no means an exhaustive test

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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webfinger/webfinger.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: well-known, activitypub, ostatus, webfinger, discovery...

webfinger/webfinger.php Passed 13 tests

The main PHP script in "WebFinger" version 3.2.7 is automatically included on every request by WordPress
23 characters long description:
WebFinger for WordPress

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
Success! There were no dangerous files found in this plugin488 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4116242488

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity33.00
▷ Minimum class complexity24.00
▷ Maximum class complexity42.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16100.00%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
Functions6
▷ Named functions6100.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 are no PNG files in this plugin