Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼606.72ms] Passed 4 tests
This is a short check of server-side resources used by WPi Home Url Shortcode - Use home_url in any post using shortcode [wpi_home_url]
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 54.93 ▲3.72 |
Dashboard /wp-admin | 3.41 ▲0.01 | 32.24 ▲0.23 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 34.83 ▼5.58 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 91.76 ▼2,421.32 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 24.45 ▼0.22 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WPi Home Url Shortcode - Use home_url in any post using shortcode [wpi_home_url]: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲51 | 15.85 ▲0.19 | 5.87 ▲0.08 | 2.74 ▲0.60 |
Dashboard /wp-admin | 2,895 ▲34 | 6.26 ▲0.10 | 116.33 ▼17.55 | 157.99 ▼7.08 |
Posts /wp-admin/edit.php | 2,691 ▲3 | 3.25 ▲0.02 | 65.23 ▼0.90 | 140.99 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,752 ▲41 | 21.55 ▲0.79 | 467.09 ▲5.96 | 156.05 ▼2.37 |
Media Library /wp-admin/upload.php | 1,698 ▼3 | 5.45 ▼0.07 | 149.13 ▼1.00 | 190.91 ▼0.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wpi-home-url-shortcode/wp-home-url-shortcode.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 ()
wpi-home-url-shortcode/wp-home-url-shortcode.php 77% from 13 tests
This is the main PHP file of "WPi Home Url Shortcode - Use home_url in any post using shortcode [wpi_home_url]" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path points to an invalid folder, "/locale/" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpi-home-url-shortcode.php" instead of "wp-home-url-shortcode.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin17 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 0 | 12 | 17 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin