100% absolute-relative-urls

Code Review | Absolute Relative URLs

WordPress plugin Absolute Relative URLs scored 100% from 54 tests.

About plugin

  • Plugin page: absolute-relative...
  • Plugin version: 1.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.7
  • WordPress version: 5.9.2
  • First release: Mar 11, 2016
  • Latest release: Apr 2, 2021
  • Number of updates: 28
  • Update frequency: every 66.0 days
  • Top authors: intuitart (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active / 18,923 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼290.33ms] Passed 4 tests

A check of server-side resources used by Absolute Relative URLs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1265.08 ▲14.06
Dashboard /wp-admin3.47 ▲0.0635.00 ▼27.13
Posts /wp-admin/edit.php3.70 ▲0.0558.35 ▲17.41
Add New Post /wp-admin/post-new.php6.94 ▼0.04102.85 ▼1,154.06
Media Library /wp-admin/upload.php3.35 ▲0.0537.45 ▲5.83

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Absolute Relative URLs
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7315.95 ▲0.306.07 ▼0.482.95 ▲0.58
Dashboard /wp-admin2,895 ▲426.14 ▼0.01128.35 ▲4.33239.03 ▲68.23
Posts /wp-admin/edit.php2,691 ▲13.36 ▼0.0163.41 ▲0.15146.21 ▲0.29
Add New Post /wp-admin/post-new.php1,719 ▲5821.52 ▲5.31505.72 ▲104.25176.74 ▲0.56
Media Library /wp-admin/upload.php1,695 ▼35.50 ▼0.03158.33 ▲18.50213.91 ▲22.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: website, absolute, relative, portable, url...

absolute-relative-urls/absolute-relative-urls.php Passed 13 tests

The main PHP file in "Absolute Relative URLs" ver. 1.6.2 adds more information about the plugin and also serves as the entry point for this plugin
80 characters long description:
Want to host your Wordpress site from a different domain? This plugin will help!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected173 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13885173

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity5.14
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin