Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.27MB] [CPU: ▼17.82ms] Passed 4 tests
Server-side resources used by Floating Table of Contents
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.33 ▼6.37 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.24 ▼6.04 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 47.45 ▼3.66 |
Add New Post /wp-admin/post-new.php | 4.65 ▼1.23 | 45.23 ▼55.22 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.18 ▲2.17 |
Table of Contents Plugin Menu /wp-admin/options-general.php?page=blockTOC/admin-page.php | 3.23 | 30.94 |
Server storage [IO: ▲14.50MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 1,709 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Floating Table of Contents
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲233 | 15.29 ▲1.02 | 31.39 ▲29.60 | 41.20 ▲2.76 |
Dashboard /wp-admin | 2,217 ▲35 | 5.86 ▲1.00 | 109.12 ▼10.56 | 40.77 ▼2.82 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.04 ▲0.00 | 39.04 ▼0.80 | 35.45 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,521 ▲2 | 17.67 ▼5.84 | 646.69 ▼26.51 | 35.92 ▼16.71 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.26 ▲0.01 | 95.61 ▼17.82 | 41.52 ▼5.76 |
Table of Contents Plugin Menu /wp-admin/options-general.php?page=blockTOC/admin-page.php | 1,376 | 3.93 | 33.47 | 41.75 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 22 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=blockTOC/admin-page.php
- > Notice in wp-content/plugins/floating-table-of-contents/src/admin-page.php+175
Trying to access array offset on value of type bool
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 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/floating-table-of-contents/src/admin-page.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=blockTOC/admin-page.php
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=blockTOC%2Fadmin-page.php 245 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=blockTOC/admin-page.php
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=blockTOC%2Fadmin-page.php 253 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=blockTOC/admin-page.php
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=blockTOC%2Fadmin-page.php 261 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=blockTOC/admin-page.php
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=blockTOC%2Fadmin-page.php 268 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=blockTOC/admin-page.php
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=blockTOC%2Fadmin-page.php 276 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=blockTOC/admin-page.php
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=blockTOC%2Fadmin-page.php 284 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=blockTOC/admin-page.php
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=blockTOC%2Fadmin-page.php 291 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=blockTOC/admin-page.php
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=blockTOC%2Fadmin-page.php 295 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=blockTOC/admin-page.php
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=blockTOC%2Fadmin-page.php 299 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2 in floating-table-of-contents/assets to your readme.txt
floating-table-of-contents/TOC_Plugin.php 92% from 13 tests
The main file in "Floating Table of Contents" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("floating-table-of-contents.php" instead of "TOC_Plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin129,297 lines of code in 1,691 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 60,839 |
YAML | 4 | 0 | 0 | 25,394 |
SVG | 1,615 | 0 | 12 | 16,003 |
JavaScript | 16 | 943 | 362 | 8,836 |
CSS | 16 | 3,712 | 66 | 8,299 |
Sass | 18 | 507 | 34 | 4,780 |
LESS | 18 | 504 | 55 | 4,738 |
PHP | 2 | 85 | 45 | 408 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/media/WideTransparentOriginal.png | 42.35KB | 20.15KB | ▼ 52.42% |