Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Netf_Toc::activate() should not be called statically
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.29ms] Passed 4 tests
Server-side resources used by Icon Table of Contents and Menus
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.60 ▼1.14 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.27 ▲0.38 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.33 ▼2.63 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 99.80 ▼1.77 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.42 ▲1.83 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Icon Table of Contents and Menus: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲112 | 14.06 ▼0.59 | 6.52 ▲4.33 | 44.44 ▼2.24 |
Dashboard /wp-admin | 2,206 ▲18 | 5.89 ▲0.03 | 107.43 ▲1.49 | 43.51 ▼1.41 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.02 | 40.32 ▲3.61 | 34.20 ▼3.76 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.16 ▲5.73 | 603.69 ▼88.38 | 64.16 ▲7.42 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.03 | 101.88 ▼2.88 | 46.13 ▼6.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Netf_Toc::deactivate() should not be called statically
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/icon-table-of-contents-and-menus/templates/toc_nav.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/icon-table-of-contents-and-menus/icon-table-of-contents-and-menus.php:198
- > PHP Notice
Undefined variable: netf_toc_output in wp-content/plugins/icon-table-of-contents-and-menus/templates/toc_nav.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: toc, table of contents, menu, tocs, menus
icon-table-of-contents-and-menus/icon-table-of-contents-and-menus.php Passed 13 tests
The entry point to "Icon Table of Contents and Menus" version 1.2 is a PHP file that has certain tags in its header comment area
67 characters long description:
A WordPress plugin for adding an expandable table of contents (toc)
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
Everything looks great! No dangerous files found in this plugin259 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 17 | 42 | 161 |
CSS | 1 | 12 | 35 | 77 |
JavaScript | 1 | 1 | 0 | 21 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo-navigation.png | 3.32KB | 0.11KB | ▼ 96.74% |