84% well-known-uris

Code Review | /well-known-uris/

WordPress plugin /well-known-uris/ scored84%from 54 tests.

About plugin

  • Plugin page: well-known-uris
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 3, 2016
  • Latest release: Nov 3, 2016
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: mrose17 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,967 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
Install script ran successfully

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

Analyzing server-side resources used by /well-known-uris/
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.39 ▼7.56
Dashboard /wp-admin3.38 ▲0.0748.86 ▼7.90
Posts /wp-admin/edit.php3.49 ▲0.1354.70 ▲3.07
Add New Post /wp-admin/post-new.php5.96 ▲0.0798.55 ▼19.71
Media Library /wp-admin/upload.php3.30 ▲0.0740.17 ▲0.64
Well-Known URIs /wp-admin/options-general.php?page=well-known-admin3.2732.18

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for /well-known-uris/
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.21 ▼0.171.49 ▼0.3937.52 ▼4.85
Dashboard /wp-admin2,199 ▲245.59 ▼0.0299.10 ▼1.5943.62 ▼0.87
Posts /wp-admin/edit.php2,107 ▲71.97 ▼0.0235.47 ▼0.9232.92 ▼3.11
Add New Post /wp-admin/post-new.php1,540 ▲1418.35 ▼4.83670.57 ▼24.8368.23 ▲13.86
Media Library /wp-admin/upload.php1,407 ▲104.22 ▲0.03100.89 ▼6.2541.60 ▼4.25
Well-Known URIs /wp-admin/options-general.php?page=well-known-admin8022.0328.6638.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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 | 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/well-known-uris/plugin.php:72

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: well-known-uris, discovery, well-known

well-known-uris/plugin.php 92% from 13 tests

The main PHP script in "/well-known-uris/" version 1.0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("well-known-uris.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected220 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15742220

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity18.00
▷ Minimum class complexity2.00
▷ Maximum class complexity34.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods321.43%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin