84% indieweb

Code Review | IndieWeb

WordPress plugin IndieWeb scored84%from 54 tests.

About plugin

  • Plugin page: indieweb
  • Plugin version: 4.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Jan 31, 2014
  • Latest release: Nov 24, 2023
  • Number of updates: 75
  • Update frequency: every 47.8 days
  • Top authors: indieweb (53.33%)pfefferle (32%)dshanske (17.33%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /23,077 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.60MB] [CPU: ▼2.14ms] 75% from 4 tests

This is a short check of server-side resources used by IndieWeb
The following require your attention
  • CPU: You should keep total CPU usage under 500.00ms (currently 3,531.86ms on /wp-admin/admin.php?page=indieweb-installer)
PageMemory (MB)CPU Time (ms)
Home /4.08 ▲0.6242.90 ▲2.56
Dashboard /wp-admin3.91 ▲0.5653.82 ▼9.14
Posts /wp-admin/edit.php4.02 ▲0.6648.74 ▲2.09
Add New Post /wp-admin/post-new.php6.52 ▲0.6394.68 ▼4.05
Media Library /wp-admin/upload.php3.83 ▲0.6036.69 ▲2.95
Options /wp-admin/admin.php?page=iw_general_options3.8037.07
Getting Started /wp-admin/admin.php?page=indieweb3.8133.04
Extensions /wp-admin/admin.php?page=indieweb-installer3.863,531.86

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2,965 new files
Database: no new tables, 8 new options
New WordPress options
widget_relme_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_hcard_widget
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for IndieWeb
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲13214.31 ▼0.401.84 ▲0.1038.10 ▼5.26
Dashboard /wp-admin2,267 ▲905.65 ▲0.1191.62 ▼9.6484.57 ▲41.12
Posts /wp-admin/edit.php2,190 ▲902.00 ▲0.0539.01 ▼0.8138.49 ▲0.52
Add New Post /wp-admin/post-new.php1,604 ▲7823.05 ▼0.31696.57 ▲89.8462.84 ▲13.62
Media Library /wp-admin/upload.php1,484 ▲814.08 ▼0.1396.06 ▼0.9176.47 ▲32.55
Options /wp-admin/admin.php?page=iw_general_options9432.0326.0023.05
Getting Started /wp-admin/admin.php?page=indieweb1,0022.1427.9532.09
Extensions /wp-admin/admin.php?page=indieweb-installer1,2292.0226.8037.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_hcard_widget
    • widget_relme_widget

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 everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/indieweb/includes/getting-started.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/indieweb/includes/class-general-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/indieweb/indieweb.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/indieweb/templates/h-card.php:4
    • > PHP Notice
      Undefined variable: avatar in wp-content/plugins/indieweb/templates/h-card.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/indieweb/includes/class-integrations.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/indieweb/includes/class-hcard-user.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/indieweb/includes/class-relme-widget.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/indieweb/includes/class-hcard-author-widget.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: posse, indieweb, webmention, indieauth

indieweb/indieweb.php Passed 13 tests

The main PHP file in "IndieWeb" ver. 4.0.2 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
Interested in connecting your WordPress site to the IndieWeb?

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected7,805 lines of code in 2,959 files:
LanguageFilesBlank linesComment linesLines of code
PHP112212984,089
SVG2,940523,069
Markdown2670302
JavaScript24841218
CSS450127

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity15.38
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods67
▷ Static methods5480.60%
▷ Public methods67100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants4
▷ Global constants4100.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