Benchmarks
Plugin footprint 82% 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: ▲3.56MB] [CPU: ▲15.81ms] Passed 4 tests
A check of server-side resources used by TOP Table Of Contents
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.44 ▲2.97 | 59.26 ▲16.40 |
Dashboard /wp-admin | 6.30 ▲2.99 | 61.49 ▲12.14 |
Posts /wp-admin/edit.php | 9.10 ▲5.74 | 83.85 ▲36.83 |
Add New Post /wp-admin/post-new.php | 11.25 ▲5.36 | 107.93 ▲14.35 |
Media Library /wp-admin/upload.php | 6.16 ▲2.93 | 54.12 ▲20.34 |
Server storage [IO: ▲3.86MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 375 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_boomdevs-toc-shortcode-widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
boomdevs-toc |
Browser metrics 75% from 4 tests
This is an overview of browser requirements for TOP Table Of Contents
Please improve the following
- Script duration: Total JavaScript execution time should be lower than 1,500.00ms (currently 2,012.38ms on /wp-admin/admin.php?page=boomdevs-toc-settings#tab=title)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,015 ▲253 | 13.41 ▼0.94 | 9.22 ▲7.46 | 36.36 ▼9.14 |
Dashboard /wp-admin | 2,318 ▲144 | 5.64 ▼0.01 | 94.86 ▼4.33 | 42.55 ▼4.54 |
Posts /wp-admin/edit.php | 2,420 ▲320 | 4.06 ▲2.04 | 79.37 ▲44.64 | 35.78 ▲1.98 |
Add New Post /wp-admin/post-new.php | 6,555 ▲5,020 | 28.77 ▲5.50 | 934.27 ▲227.16 | 38.47 ▼17.09 |
Media Library /wp-admin/upload.php | 1,520 ▲120 | 4.21 ▲0.04 | 89.62 ▼25.32 | 41.57 ▼7.26 |
Title /wp-admin/admin.php?page=boomdevs-toc-settings#tab=title | 12,842 | 54.47 | 2,012.38 | 112.21 |
Sticky sidebar /wp-admin/admin.php?page=boomdevs-toc-settings#tab=sticky-sidebar | 6,907 | 51.68 | 1,671.08 | 141.55 |
Auto insert /wp-admin/admin.php?page=boomdevs-toc-settings#tab=auto-insert | 7,219 | 53.41 | 1,617.15 | 99.26 |
Sub headings /wp-admin/admin.php?page=boomdevs-toc-settings#tab=sub-headings | 7,760 | 60.44 | 1,583.55 | 123.81 |
Floating /wp-admin/admin.php?page=boomdevs-toc-settings#tab=floating | 7,630 | 58.49 | 1,673.45 | 117.83 |
Headings /wp-admin/admin.php?page=boomdevs-toc-settings#tab=headings | 12,809 | 48.63 | 1,910.91 | 112.84 |
General /wp-admin/admin.php?page=boomdevs-toc-settings#tab=general | 7,164 | 52.18 | 1,627.76 | 95.01 |
Progress bar /wp-admin/admin.php?page=boomdevs-toc-settings#tab=progress-bar | 7,757 | 57.41 | 1,548.63 | 92.18 |
Free Vs Pro /wp-admin/admin.php?page=boomdevs-toc-settings#tab=free-vs-pro | 6,991 | 53.08 | 1,548.33 | 129.78 |
Pre-made themes /wp-admin/admin.php?page=boomdevs-toc-settings#tab=pre-made-themes | 7,790 | 55.11 | 1,705.53 | 88.32 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- boomdevs-toc
- widget_recent-comments
- db_upgraded
- widget_boomdevs-toc-shortcode-widget
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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 following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/top-table-of-contents/vendor/masterminds/html5/bin/entities.php
- > /wp-content/plugins/top-table-of-contents/public/partials/boomdevs-toc-public-display.php
- > /wp-content/plugins/top-table-of-contents/admin/partials/boomdevs-toc-admin-display.php
- 61× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\ServiceProvider' not found in wp-content/plugins/top-table-of-contents/vendor/cocur/slugify/src/Bridge/Laravel/SlugifyServiceProvider.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Cocur\\Slugify\\RuleProvider\\RuleProviderInterface' not found in wp-content/plugins/top-table-of-contents/vendor/cocur/slugify/src/RuleProvider/FileRuleProvider.php:21
- > PHP Fatal error
Uncaught Error: Class 'Knp\\Menu\\Renderer\\ListRenderer' not found in wp-content/plugins/top-table-of-contents/vendor/caseyamcl/toc/src/OrderedListRenderer.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Knp\\Menu\\Factory\\ExtensionInterface' not found in wp-content/plugins/top-table-of-contents/vendor/knplabs/knp-menu/src/Knp/Menu/Factory/CoreExtension.php:10
- > PHP Fatal error
Trait 'TOC\\HtmlHelper' not found in wp-content/plugins/top-table-of-contents/vendor/caseyamcl/toc/src/TocGenerator.php on line 35
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/top-table-of-contents/vendor/caseyamcl/toc/src/TocTwigExtension.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/top-table-of-contents/addons/boomdevs-toc-elementor-widgets.php:9
- > PHP Warning
Use of undefined constant BOOMDEVS_TOC_PATH - assumed 'BOOMDEVS_TOC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/top-table-of-contents/includes/class-boomdevs-toc-settings.php on line 2
- > PHP Fatal error
Uncaught Error: Interface 'Knp\\Menu\\Renderer\\RendererProviderInterface' not found in wp-content/plugins/top-table-of-contents/vendor/knplabs/knp-menu/src/Knp/Menu/Renderer/ArrayAccessProvider.php:8
- > PHP Warning
require_once(BOOMDEVS_TOC_PATHincludes/class-boomdevs-toc-settings.php): failed to open stream: No such file or directory in wp-content/plugins/top-table-of-contents/public/class-boomdevs-toc-public.php on line 3
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #21, #22, #23, #24, #25, #3, #4, #5, #6, #7, #8, #9 in top-table-of-contents/assets to your readme.txt
top-table-of-contents/boomdevs-toc.php 77% from 13 tests
The main PHP script in "TOP Table Of Contents" version 1.3.11 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("top-table-of-contents.php" instead of "boomdevs-toc.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 149 characters long)
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
Success! There were no dangerous files found in this plugin77,189 lines of code in 313 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 203 | 5,648 | 6,561 | 36,558 |
JSON | 11 | 14 | 0 | 12,467 |
JavaScript | 11 | 1,441 | 636 | 7,311 |
Sass | 32 | 1,076 | 8 | 6,740 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
CSS | 9 | 420 | 556 | 5,548 |
Markdown | 14 | 614 | 0 | 1,694 |
YAML | 5 | 26 | 0 | 156 |
XML | 1 | 5 | 11 | 99 |
Twig | 3 | 13 | 8 | 92 |
SVG | 4 | 0 | 0 | 24 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 16.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 4.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 16 | |
Traits | 1 | |
Classes | 146 | |
▷ Abstract classes | 3 | 2.05% |
▷ Concrete classes | 143 | 97.95% |
▷ Final classes | 0 | 0.00% |
Methods | 895 | |
▷ Static methods | 82 | 9.16% |
▷ Public methods | 760 | 84.92% |
▷ Protected methods | 81 | 9.05% |
▷ Private methods | 54 | 6.03% |
Functions | 45 | |
▷ Named functions | 31 | 68.89% |
▷ Anonymous functions | 14 | 31.11% |
Constants | 69 | |
▷ Global constants | 6 | 8.70% |
▷ Class constants | 63 | 91.30% |
▷ Public constants | 62 | 98.41% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.19MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/premade_layout_preview_one.png | 10.78KB | 6.24KB | ▼ 42.13% |
admin/img/money-back-logo.png | 6.89KB | 4.25KB | ▼ 38.34% |
admin/img/premade_layout_preview_two.png | 10.67KB | 6.21KB | ▼ 41.80% |
admin/img/John.png | 16.63KB | 6.67KB | ▼ 59.91% |
admin/img/premade_layout_preview_four.png | 39.33KB | 18.95KB | ▼ 51.82% |