Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/relative-url-for-img-and-a-tags/relative-url-for-img-and-a-tags.php+23
Undefined index: path
Server metrics [RAM: ▼1.85MB] [CPU: ▼319.20ms] Passed 4 tests
This is a short check of server-side resources used by Relative URL for Img and A Tags
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.78 ▼1.05 | 6.11 ▼23.41 |
Dashboard /wp-admin | 1.80 ▼1.25 | 5.73 ▼43.11 |
Posts /wp-admin/edit.php | 1.80 ▼1.30 | 5.63 ▼38.12 |
Add New Post /wp-admin/post-new.php | 1.80 ▼3.63 | 5.22 ▼1,164.33 |
Media Library /wp-admin/upload.php | 1.80 ▼1.20 | 7.47 ▼31.23 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Relative URL for Img and A Tags
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,674 ▲68 | 15.91 ▲0.43 | 9.70 ▲0.41 | 55.98 ▲3.63 |
Dashboard /wp-admin | 2,931 ▲81 | 6.13 ▲0.28 | 147.51 ▲17.76 | 111.48 ▲6.49 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.68 ▼0.01 | 65.84 ▼0.00 | 94.73 ▼6.45 |
Add New Post /wp-admin/post-new.php | 1,656 ▲3 | 18.29 ▼0.44 | 399.38 ▲28.26 | 121.25 ▲9.49 |
Media Library /wp-admin/upload.php | 1,772 ▼0 | 5.00 ▼0.03 | 166.90 ▲3.12 | 119.48 ▼9.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/relative-url-for-img-and-a-tags/relative-url-for-img-and-a-tags.php+23
Undefined index: path
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/relative-url-for-img-and-a-tags/relative-url-for-img-and-a-tags.php:18
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: remove root url from image link tags, relative links, relative image source
relative-url-for-img-and-a-tags/relative-url-for-img-and-a-tags.php Passed 13 tests
"Relative URL for Img and A Tags" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
122 characters long description:
This plugin will filter the content of your posts and pages to remove the root of the domain from links and image sources.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin73 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 31 | 24 | 73 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 75.00% |
▷ Protected methods | 1 | 25.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin