90% absolute-relative-urls

Code Review | Absolute Relative URLs

WordPress plugin Absolute Relative URLs scored90%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: 6.3.1
  • 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

1,000+ active /21,406 total downloads


Plugin footprint 83% from 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.05MB] [CPU: ▼3.35ms] Passed 4 tests

A check of server-side resources used by Absolute Relative URLs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.56 ▼0.77
Dashboard /wp-admin3.36 ▲0.0646.47 ▼12.68
Posts /wp-admin/edit.php3.41 ▲0.0546.57 ▼0.78
Add New Post /wp-admin/post-new.php5.94 ▲0.0593.92 ▲5.60
Media Library /wp-admin/upload.php3.28 ▲0.0534.92 ▲0.84

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Absolute Relative URLs
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼0.971.65 ▲0.0239.42 ▼0.64
Dashboard /wp-admin2,206 ▲154.85 ▼0.24108.48 ▲3.1340.62 ▲2.95
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0239.70 ▲1.4935.69 ▲1.48
Add New Post /wp-admin/post-new.php1,533 ▲1423.16 ▲0.14581.70 ▼25.4750.10 ▼10.13
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0795.86 ▼16.5742.94 ▼4.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: portable, url, website, relative, seo...

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

"Absolute Relative URLs" version 1.6.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin173 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
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
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods114.29%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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
No PNG files were detected