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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.19ms] Passed 4 tests
A check of server-side resources used by Table Of Contents Block
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 39.26 ▼3.05 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.76 ▼6.94 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 49.07 ▲4.69 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 80.80 ▼13.18 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.44 ▼1.58 |
Server storage [IO: ▲4.83MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Table Of Contents Block
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲53 | 14.72 ▲0.36 | 1.87 ▲0.14 | 43.60 ▼1.24 |
Dashboard /wp-admin | 2,186 ▲6 | 5.53 ▼0.09 | 85.99 ▼11.08 | 40.84 ▼3.30 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▲0.02 | 40.09 ▼0.88 | 37.52 ▼9.34 |
Add New Post /wp-admin/post-new.php | 1,666 ▲140 | 24.98 ▲1.94 | 640.21 ▼27.65 | 35.95 ▼14.42 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.19 ▲0.01 | 93.20 ▼10.84 | 41.97 ▼3.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/table-of-contents-block/includes/admin-enqueue.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/table-of-contents-block/table-of-contents-block.php:25
- > PHP Fatal error
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 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
6 plugin tags: gutenberg, toc, seo, schema, table of contents...
table-of-contents-block/table-of-contents-block.php Passed 13 tests
The main PHP file in "Table Of Contents Block" ver. 1.3.5 adds more information about the plugin and also serves as the entry point for this plugin
74 characters long description:
Automatically Add Table of Contents Block for your WordPress Posts & Pages
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin17,659 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 12 | 11,462 |
CSS | 6 | 1,503 | 48 | 5,075 |
PHP | 11 | 145 | 205 | 1,011 |
JavaScript | 7 | 13 | 12 | 92 |
JSON | 3 | 0 | 0 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 33.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 5.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 42 | |
▷ Static methods | 18 | 42.86% |
▷ Public methods | 38 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 9.52% |
Functions | 7 | |
▷ Named functions | 1 | 14.29% |
▷ Anonymous functions | 6 | 85.71% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
There are no PNG files in this plugin