Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼169.02ms] Passed 4 tests
A check of server-side resources used by Skip To
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 43.22 ▲1.73 |
Dashboard /wp-admin | 3.09 ▲0.03 | 53.97 ▼0.59 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 55.07 ▲4.90 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 100.51 ▼672.30 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 35.72 ▼4.91 |
SkipTo /wp-admin/options-general.php?page=SkipId | 2.98 | 33.06 |
Server storage [IO: ▲0.77MB] [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: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Skip To: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,870 ▲274 | 16.00 ▲0.35 | 11.82 ▲0.99 | 51.96 ▲3.88 |
Dashboard /wp-admin | 3,046 ▲112 | 6.24 ▲0.27 | 175.75 ▲8.13 | 119.18 ▲9.09 |
Posts /wp-admin/edit.php | 2,774 ▲35 | 2.73 ▲0.01 | 70.74 ▼8.23 | 92.65 ▼3.00 |
Add New Post /wp-admin/post-new.php | 1,694 ▲113 | 18.73 ▼1.63 | 425.44 ▲4.38 | 115.09 ▼2.33 |
Media Library /wp-admin/upload.php | 1,857 ▲50 | 5.03 ▼0.00 | 168.51 ▼5.12 | 130.88 ▲4.59 |
SkipTo /wp-admin/options-general.php?page=SkipId | 1,330 | 2.37 | 60.97 | 82.38 |
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 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=SkipId
- > Notice in wp-content/plugins/skip-to/skipTo.php+101
Undefined variable: str_replacement
- > GET request to /wp-admin/options-general.php?page=SkipId
- > Notice in wp-content/plugins/skip-to/skipTo.php+109
Undefined index: ids
- > GET request to /wp-admin/options-general.php?page=SkipId
- > Notice in wp-content/plugins/skip-to/skipTo.php+110
Undefined index: customClass
- > GET request to /wp-admin/options-general.php?page=SkipId
- > Notice in wp-content/plugins/skip-to/skipTo.php+111
Undefined index: attachElement
- > GET request to /wp-admin/options-general.php?page=SkipId
- > Notice in wp-content/plugins/skip-to/skipTo.php+122
Undefined variable: hFld
- > GET request to /wp-admin/options-general.php?page=SkipId
- > Notice in wp-content/plugins/skip-to/skipTo.php+139
Undefined variable: lFld
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skip-to/skipTo.php:25
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Contributors: Plugin contributors field is missing
- Screenshots: These screenshots have no corresponding images in /assets: #1 (SkipTo expanded on sample site.), #2 (Settings page in wp-admin to customize SkipTo.)
skip-to/skipTo.php 92% from 13 tests
This is the main PHP file of "Skip To" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("skip-to.php" instead of "skipTo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin868 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 118 | 58 | 688 |
PHP | 1 | 19 | 10 | 180 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 3 | |
▷ Named functions | 3 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.62MB with 0.43MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 635.75KB | 192.68KB | ▼ 69.69% |