78% wegfinder

Code Review | wegfinder

WordPress plugin wegfinder scored78%from 54 tests.

About plugin

  • Plugin page: wegfinder
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.1
  • WordPress version: 6.3.1
  • First release: Mar 9, 2019
  • Latest release: Mar 11, 2019
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: wegfinder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /650 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼5.79ms] Passed 4 tests

Server-side resources used by wegfinder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1841.17 ▼4.93
Dashboard /wp-admin3.49 ▲0.1951.94 ▼3.94
Posts /wp-admin/edit.php3.61 ▲0.2552.61 ▼1.08
Add New Post /wp-admin/post-new.php6.09 ▲0.2096.13 ▼13.22
Media Library /wp-admin/upload.php3.42 ▲0.1939.74 ▲2.78
Design /wp-admin/admin.php?page=wegfinder-settings3.3838.91
Add New /wp-admin/admin.php?page=wegfinder-new3.3835.30
All Destinations /wp-admin/admin.php?page=wegfinder-list3.3937.24
wegfinder /wp-admin/admin.php?page=wegfinder3.3934.43

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 36 new files
Database: 1 new table, 8 new options
New tables
wp_wegfinder
New WordPress options
db_upgraded
wegfinder_settings
widget_theysaidso_widget
widget_recent-posts
wegfinder_db_version
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by wegfinder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8714.34 ▼0.011.68 ▲0.0942.52 ▲3.76
Dashboard /wp-admin2,237 ▲665.53 ▼0.1493.56 ▼0.8482.04 ▲38.99
Posts /wp-admin/edit.php2,143 ▲432.03 ▲0.0438.49 ▼1.6034.26 ▼3.47
Add New Post /wp-admin/post-new.php1,592 ▲6623.18 ▼0.59695.15 ▲25.8139.22 ▼7.69
Media Library /wp-admin/upload.php1,436 ▲394.14 ▼0.04102.11 ▼3.6770.61 ▲22.46
Design /wp-admin/admin.php?page=wegfinder-settings1,0042.0128.5448.84
Add New /wp-admin/admin.php?page=wegfinder-new9632.0025.6822.93
All Destinations /wp-admin/admin.php?page=wegfinder-list8902.0528.3527.06
wegfinder /wp-admin/admin.php?page=wegfinder8902.0527.5727.08

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wegfinder-settings
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/wegfinder/public/partials/wegfinder-public-display.php
    • > /wp-content/plugins/wegfinder/admin/partials/wegfinder-admin-display.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
You can take inspiration from this readme.txt

wegfinder/wegfinder.php 92% from 13 tests

The entry point to "wegfinder" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 178 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,063 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP12289266771
PO File5290320709
JavaScript411821454
CSS2266123
SVG2006

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity13.00
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods58
▷ Static methods610.34%
▷ Public methods4068.97%
▷ Protected methods00.00%
▷ Private methods1831.03%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
No PNG files were detected