87% skip-to

Code Review | Skip To

WordPress plugin Skip To scored 87% from 54 tests.

About plugin

  • Plugin page: skip-to
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jun 19, 2013
  • Latest release: Apr 21, 2016
  • Number of updates: 35
  • Update frequency: every 29.6 days
  • Top authors: Prem Nawaz Khan (82.86%)marckocher (20%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,708 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0343.22 ▲1.73
Dashboard /wp-admin3.09 ▲0.0353.97 ▼0.59
Posts /wp-admin/edit.php3.14 ▲0.0355.07 ▲4.90
Add New Post /wp-admin/post-new.php5.44 ▲0.01100.51 ▼672.30
Media Library /wp-admin/upload.php3.03 ▲0.0335.72 ▼4.91
SkipTo /wp-admin/options-general.php?page=SkipId2.9833.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,870 ▲27416.00 ▲0.3511.82 ▲0.9951.96 ▲3.88
Dashboard /wp-admin3,046 ▲1126.24 ▲0.27175.75 ▲8.13119.18 ▲9.09
Posts /wp-admin/edit.php2,774 ▲352.73 ▲0.0170.74 ▼8.2392.65 ▼3.00
Add New Post /wp-admin/post-new.php1,694 ▲11318.73 ▼1.63425.44 ▲4.38115.09 ▼2.33
Media Library /wp-admin/upload.php1,857 ▲505.03 ▼0.00168.51 ▼5.12130.88 ▲4.59
SkipTo /wp-admin/options-general.php?page=SkipId1,3302.3760.9782.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

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.)
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript311858688
PHP11910180

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 code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-1.png635.75KB192.68KB▼ 69.69%