Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.82MB] [CPU: ▼169.84ms] Passed 4 tests
An overview of server-side resources used by Tracking URL
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 33.82 ▲11.61 |
Dashboard /wp-admin | 2.83 ▼0.22 | 26.62 ▼20.37 |
Posts /wp-admin/edit.php | 2.83 ▼0.28 | 22.25 ▼23.21 |
Add New Post /wp-admin/post-new.php | 2.83 ▼2.60 | 22.46 ▼625.19 |
Media Library /wp-admin/upload.php | 2.83 ▼0.17 | 22.05 ▼10.60 |
Tracking URL /wp-admin/options-general.php?page=tracking-url | 2.83 | 18.79 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tracking URL
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.93 ▲0.03 | 11.99 ▼0.38 | 48.37 ▼0.02 |
Dashboard /wp-admin | 2,975 ▲41 | 5.95 ▼0.16 | 146.13 ▲3.89 | 110.59 ▲6.32 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▼0.02 | 65.27 ▼3.35 | 98.65 ▲4.71 |
Add New Post /wp-admin/post-new.php | 1,503 ▼180 | 18.39 ▼0.30 | 366.67 ▼62.25 | 107.01 ▼6.09 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.03 ▲0.00 | 159.75 ▲8.32 | 113.09 ▼1.49 |
Tracking URL /wp-admin/options-general.php?page=tracking-url | 1,045 | 2.05 | 64.79 | 76.11 |
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
Please fix the following items
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/tracking-url/tracking-url.php+136
Invalid argument supplied for foreach()
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=tracking-url
- > Warning in wp-content/plugins/tracking-url/tracking-url.php+136
Invalid argument supplied for foreach()
- > GET request to /wp-admin/options-general.php?page=tracking-url
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=tracking-url
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=tracking-url
- > Notice in wp-content/plugins/tracking-url/tracking-url.php+169
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tracking-url
- > Notice in wp-content/plugins/tracking-url/tracking-url.php+171
Trying to access array offset on value of type null
SRP 50% from 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
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 add_filter() in wp-content/plugins/tracking-url/tracking-url.php:207
- > 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
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: tracking, marketing, google analytics, sharing, social media
tracking-url/tracking-url.php Passed 13 tests
The main PHP file in "Tracking URL" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
67 characters long description:
Displays tracking URLs for sharing in Social Networks or where ever
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin141 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 100 | 96 |
PO File | 1 | 12 | 12 | 45 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.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 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin