90% wp-relative-url

Code Review | Relative URLs

WordPress plugin Relative URLs scored90%from 54 tests.

About plugin

  • Plugin page: wp-relative-url
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.3-5.7
  • WordPress version: 6.3.1
  • First release: May 9, 2021
  • Latest release: May 9, 2021
  • Number of updates: 3
  • Update frequency: every 97.4 days
  • Top authors: gpepe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,369 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.15MB] [CPU: ▼7.44ms] Passed 4 tests

An overview of server-side resources used by Relative URLs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1336.81 ▼4.74
Dashboard /wp-admin3.47 ▲0.1747.32 ▼7.52
Posts /wp-admin/edit.php3.50 ▲0.1547.34 ▼4.49
Add New Post /wp-admin/post-new.php6.14 ▲0.2682.08 ▼7.08
Media Library /wp-admin/upload.php3.41 ▲0.1829.13 ▼10.40

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Relative URLs
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.61 ▼0.782.03 ▼0.1642.07 ▼0.24
Dashboard /wp-admin2,203 ▲155.90 ▲0.06107.26 ▼6.7342.10 ▲0.24
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0239.30 ▼3.6535.28 ▼1.11
Add New Post /wp-admin/post-new.php1,552 ▲2418.54 ▲0.47625.25 ▲1.8460.38 ▼10.94
Media Library /wp-admin/upload.php1,385 ▼64.21 ▲0.0295.15 ▼10.7743.76 ▼1.77

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: relative url, seo, https, staging, relative link

wp-relative-url/wp-relative-url.php 92% from 13 tests

The entry point to "Relative URLs" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin14 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP263014

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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