78% skip-to-timestamp

Code Review | Skip to Timestamp

WordPress plugin Skip to Timestamp scored78%from 54 tests.

About plugin

  • Plugin page: skip-to-timestamp
  • Plugin version: 1.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Sep 10, 2014
  • Latest release: Mar 30, 2018
  • Number of updates: 17
  • Update frequency: every 76.3 days
  • Top authors: doytch (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active /3,588 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.05ms] Passed 4 tests

Analyzing server-side resources used by Skip to Timestamp
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.84 ▼1.03
Dashboard /wp-admin3.32 ▲0.0246.10 ▼1.52
Posts /wp-admin/edit.php3.37 ▲0.0247.03 ▲0.32
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.57 ▲2.44
Media Library /wp-admin/upload.php3.24 ▲0.0234.80 ▲3.20
Skip to Timestamp /wp-admin/options-general.php?page=skiptotimestamp3.1927.10

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
qed_stt_settings

Browser metrics Passed 4 tests

A check of browser resources used by Skip to Timestamp
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲10914.05 ▼0.269.29 ▲7.5345.82 ▲1.85
Dashboard /wp-admin2,213 ▲255.85 ▼0.0398.84 ▼9.0938.50 ▼1.40
Posts /wp-admin/edit.php2,093 ▲12.04 ▲0.0140.99 ▼0.6735.87 ▼1.78
Add New Post /wp-admin/post-new.php6,244 ▲4,71126.10 ▲3.04903.02 ▲241.8774.57 ▲18.97
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.0196.30 ▼7.6842.75 ▼1.94
Skip to Timestamp /wp-admin/options-general.php?page=skiptotimestamp8332.3022.4431.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • qed_stt_settings

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=skiptotimestamp
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=skiptotimestamp
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/skip-to-timestamp/skiptotimestamp.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === skip-to-timestamp === )
You can take inspiration from this readme.txt

skip-to-timestamp/skiptotimestamp.php 92% from 13 tests

The entry point to "Skip to Timestamp" version 1.4.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("skip-to-timestamp.php" instead of "skiptotimestamp.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
No dangerous file extensions were detected355 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13644250
JavaScript112469
Markdown113036

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected