84% skip-to-content-button

Code Review | Skip To Content Button

WordPress plugin Skip To Content Button scored84%from 54 tests.

About plugin

  • Plugin page: skip-to-content-b...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.0-5.5
  • WordPress version: 6.3.1
  • First release: Oct 23, 2020
  • Latest release: Oct 23, 2020
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: twentyeighty (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /502 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.43ms] Passed 4 tests

A check of server-side resources used by Skip To Content Button
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0540.36 ▼3.33
Dashboard /wp-admin3.37 ▲0.0257.33 ▲2.36
Posts /wp-admin/edit.php3.48 ▲0.0849.57 ▼4.30
Add New Post /wp-admin/post-new.php5.95 ▲0.0291.23 ▼12.10
Media Library /wp-admin/upload.php3.29 ▲0.0237.52 ▼1.98
Skip to Content Button /wp-admin/options-general.php?page=skip-to-content-button3.2428.97

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Skip To Content Button
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.29 ▲0.342.03 ▲0.2751.92 ▲10.06
Dashboard /wp-admin2,199 ▲195.69 ▲0.0284.35 ▼12.4438.54 ▼5.14
Posts /wp-admin/edit.php2,104 ▲12.01 ▲0.0239.04 ▼0.3433.51 ▼2.39
Add New Post /wp-admin/post-new.php1,369 ▼16816.44 ▼1.82571.05 ▼54.4050.37 ▼7.29
Media Library /wp-admin/upload.php1,407 ▲74.23 ▲0.0497.21 ▼10.8541.86 ▼2.70
Skip to Content Button /wp-admin/options-general.php?page=skip-to-content-button8002.0023.8429.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% 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)
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=skip-to-content-button
    • > Notice in wp-content/plugins/skip-to-content-button/skip-to-content-button.php+65
    Trying to access array offset on value of type bool

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === skip-to-content-button === )
The official readme.txt might help

skip-to-content-button/skip-to-content-button.php 92% from 13 tests

"Skip To Content Button" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected51 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2151051

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin