84% wayfinder

Code Review | Wayfinder

WordPress plugin Wayfinder scored 84% from 54 tests.

About plugin

  • Plugin page: wayfinder
  • Plugin version: 1.1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Jul 15, 2021
  • Latest release: Nov 26, 2022
  • Number of updates: 19
  • Update frequency: every 26.3 days
  • Top authors: themolitor (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

700+ active / 6,225 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.04ms] Passed 4 tests

Server-side resources used by Wayfinder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0646.79 ▲0.53
Dashboard /wp-admin3.36 ▲0.0645.85 ▼6.32
Posts /wp-admin/edit.php3.42 ▲0.0648.63 ▲0.24
Add New Post /wp-admin/post-new.php5.94 ▲0.0695.59 ▲1.99
Media Library /wp-admin/upload.php3.29 ▲0.0634.70 ▲1.40
Wayfinder /wp-admin/options-general.php?page=wayfinder3.2530.19

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
wayfinder_option_name
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Wayfinder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.27 ▼1.481.71 ▼0.2038.31 ▼9.38
Dashboard /wp-admin2,212 ▲245.77 ▼0.0995.07 ▼3.1639.58 ▼3.36
Posts /wp-admin/edit.php2,095 ▲62.02 ▲0.0139.53 ▲4.9134.76 ▼1.56
Add New Post /wp-admin/post-new.php1,529 ▼418.52 ▼4.67614.34 ▼68.6054.33 ▼10.51
Media Library /wp-admin/upload.php1,397 ▲94.20 ▲0.0297.30 ▼8.5743.87 ▼0.21
Wayfinder /wp-admin/options-general.php?page=wayfinder8052.0323.6326.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • wayfinder_option_name

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wayfinder/index.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: Please describe screenshot #3 in wayfinder/assets to your readme.txt
The official readme.txt is a good inspiration

wayfinder/index.php 92% from 13 tests

"Wayfinder" version 1.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wayfinder.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected495 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16925254
CSS11926241

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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